JEE Main 2025 · 4 April · evening · Numerical answer · +4 / −1
Let m and n,(m<n), be two 2-digit numbers. Then the total numbers of pairs (m, n), such that gcd(m, n)=6, is __________ .
Answer and solution
Answer 64
Solution
Maths sir · 4 steps
Pull the 6 out of both numbers: then you only need to count coprime pairs from 2 to 16.
- Factor out 6. Write m = 6a and n = 6b. Then gcd(m, n) = 6 exactly when gcd(a, b) = 1, and m < n means a < b.
- Allowed values. Two-digit means 10 ≤ 6a ≤ 99, so 2 ≤ a ≤ 16. The same holds for b. Note that a = 1 is not allowed, because m = 6 has only one digit.
- Count for each b. For a fixed b, the numbers a < b coprime to b number φ(b), and this count includes a = 1. Removing a = 1 leaves φ(b) - 1 choices, for b = 3 to 16.
Σ_(b=3)¹⁶(φ(b)-1) = (2+2+4+2+6+4+6+4+10+4+12+6+8+8) - 14 = 78 - 14
- So. The number of pairs (m, n) is 78 - 14 = 64.
The common slip: 78. Counting φ(b) for each b without removing a = 1 gives 78. That extra pair uses m = 6, which is not a two-digit number.
The idea to keep. For gcd(m, n) = d, write m = da and n = db, then count coprime pairs (a, b) in the new range. Euler's φ counts them quickly for each b.
Answer from the NTA final answer key. Solution by PrepWiser.