Placement AptitudeVery hardCAT · Goldman Sachs OA
Two different numbers are chosen from 1, 2, …, 50. In how many ways can they be chosen so that their product is a perfect square?
- A. 21
- B. 36
- C. 44
- D. 52
Correct answer: C. 44
ab is a square exactly when a and b have the same square-free part. Group 1..50 by it: k = 1 (7 squares) → C(7, 2) = 21; k = 2 (2, 8, 18, 32, 50) → 10; k = 3 (3, 12, 27, 48) → 6; k = 5 (5, 20, 45) → 3; k = 6, 7, 10, 11 (two numbers each) → 1 each. Total 21 + 10 + 6 + 3 + 4 = 44. 21 counts only pairs of squares.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A fair die is rolled until each of the three even faces 2, 4 and 6 has appeared at least once. What is the expected number of rolls?
- Three fair dice are rolled. What is the probability that all three numbers are different AND their sum is 10?
- How many 6-digit numbers contain the digit 7 exactly twice?
- 8 identical coins are given to 4 children so that exactly one child gets nothing. In how many ways can this be done?
- In how many ways can 3 different numbers be chosen from 1, 2, …, 15 so that their sum is 24?
- A token moves from (0, 0) to (4, 4) by unit steps right or up. How many paths touch the line y = x only at the start and the end?