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?
- A. 128
- B. 255
- C. 243
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- All 120 five-digit numbers formed by arranging 1, 2, 3, 4, 5 (no repetition) are listed in increasing order. What is the position of 35142?
- 10 identical chocolates are shared among 4 children so that every child gets at least 1 and nobody gets more than 4. In how many ways can…
- What is the sum of all the 4-digit numbers that can be formed from the digits 1, 2, 3, 4, 5 if no digit is repeated?
- Three of the eight corners of a cube are chosen at random. What is the probability that all three lie on one face of the cube?
- How many solutions in non-negative integers does x + y + z = 10 have in which x, y and z are all different?
- Three different numbers are chosen at random from 1, 2, …, 20. What is the probability that their product is divisible by 4?