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?

  1. A. 21
  2. B. 36
  3. C. 44
  4. 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.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic