QlarIITy

MathematicsJEE Main 2025 · 4 AprilInteger

Let mm and nn, (m<n)(m < n) be two 2-digit numbers. Then the total numbers of pairs (m,n)(m, n), such that gcd⁡(m,n)=6\gcd(m, n) = 6, is ________

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Dividing by the common divisor turns the condition into having no common factor.

Concept refresher. If the greatest common divisor of mm and nn is gg, then m=gam = ga and n=gbn = gb where aa and bb have no common factor:

gcd⁡(a,b)=1\gcd(a, b) = 1

Picture the situation. Both numbers are multiples of 6, say m=6am = 6a and n=6bn = 6b with a<ba < b. Their greatest common divisor is exactly 6 when aa and bb share no factor. Two-digit multiples of 6 run from 12 to 96, so aa and bb lie between 2 and 16.

Approach. Reduce to pairs of multipliers with no common factor and count them for each smaller multiplier.

  1. Step 1: Reduce the problem

    Write m=6am = 6a and n=6bn = 6b. Then gcd⁡(m,n)=6\gcd(m, n) = 6 exactly when gcd⁡(a,b)=1\gcd(a, b) = 1, and the two-digit condition gives 2≤a<b≤162 \leq a < b \leq 16.

  2. Step 2: Count for each multiplier

    For a=2,3,…,15a = 2, 3, \ldots, 15, the numbers bb from a+1a + 1 to 16 with no factor in common with aa number 7, 9, 6, 9, 3, 8, 4, 5, 2, 5, 1, 3, 1 and 1.

  3. Step 3: Add

    Adding these fourteen counts gives 64 pairs (a,b)(a, b), and each gives exactly one pair (m,n)(m, n).

Answer. 64

Sanity check. With Euler totients: the pairs a<b≤16a < b \leq 16 with no common factor number ϕ(2)+ϕ(3)+…+ϕ(16)=79\phi(2) + \phi(3) + \ldots + \phi(16) = 79, and removing the 15 pairs with a=1a = 1 leaves 64.

Common wrong answers

  • 79: Allowing a=1a = 1, that is m=6m = 6, which is not a two-digit number, adds 15 pairs and gives 79.
  • 105: Counting all pairs of two-digit multiples of 6, without the condition on common factors, gives 15C2=105{}^{15}C_2 = 105.

Key takeaway

The trap. The smallest two-digit multiple of 6 is 12, so the multipliers start at 2.

How toppers think. They cross-check the count with a sum of totients.

Remember. gcd⁡(a,b)=1\gcd(a, b) = 1

More on Combinations