JEE Main 2023 · 29 January · evening · Numerical answer · +4 / −0
The total number of 4-digit numbers whose greatest common divisor with 54 is 2, is __________.
Answer and solution
Answer 3000
Solution
Maths sir · 4 steps
Factorise 54 first: the number must be even but must not be a multiple of 3.
- Factorise 54. 54 = 2 × 3³. The only primes that can be shared with 54 are 2 and 3. Since 54 has just one factor of 2, the common part can hold at most one 2.
- Condition on n. For gcd(n, 54) = 2, the number n must be even and must not be divisible by 3. Being divisible by 4 does no harm, because 54 has only one 2.
required count = (even 4-digit numbers) - (4-digit multiples of 6)
- Count each. The 4-digit numbers run from 1000 to 9999, which is 9000 numbers, and half of them, 4500, are even. Multiples of 6 run from 1002 to 9996, which gives (9996 - 1002)/6 + 1 = 1500.
- So. 4500 - 1500 = 3000.
The common slip: 4500. Counting all even 4-digit numbers without removing the multiples of 3 gives 4500, not 3000.
The idea to keep. For a gcd condition, factorise the fixed number into primes. Then for each prime, decide whether n must or must not be divisible by it, and count by subtracting the unwanted multiples.
Answer from the NTA final answer key. Solution by PrepWiser.