Placement AptitudeVery hardCAT · Product company OA

How many ordered pairs (a, b), with a and b each from 1 to 20, have no common factor other than 1?

  1. A. 128
  2. B. 255
  3. C. 243
  4. D. 145

Correct answer: B. 255

For each b, the a ≤ b coprime to b number φ(b), and Σ φ(b) for b = 1 to 20 is 128. These are the pairs with a ≤ b; doubling and removing the double-counted (1, 1) gives 2 × 128 − 1 = 255. 128 counts only a ≤ b; 243 is the rough estimate 400 × 6/π²; 145 counts the pairs that are NOT coprime.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic