QlarIITy

MathematicsJEE Main 2023 · 13 AprilInteger

Total numbers of 3-digit numbers that are divisible by 6 and can be formed by using the digits 1, 2, 3, 4, 5 with repetition, 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. Divisibility by 6 joins a last-digit condition with a digit-sum condition.

Concept refresher. A number is divisible by 3 exactly when its digit sum is. If the digits leave remainders r1,r2,…r_1, r_2, \ldots on division by 3, this means

r1+r2+…=3kr_1 + r_2 + \ldots = 3k

for a whole number kk.

Picture the situation. The number has three digits from 1 to 5 and digits may repeat. To be divisible by 6 it must end in an even digit, 2 or 4, and its digit sum must be divisible by 3. The digit-sum condition is handled by sorting the digits according to their remainders on division by 3.

Approach. Fix each even last digit and count the first two digits by their remainders.

  1. Step 1: The last digit

    For the number to be even its last digit must be 2 or 4. The digit 3 leaves remainder 0 on division by 3, the digits 1 and 4 leave 1, and the digits 2 and 5 leave 2.

  2. Step 2: Last digit 2

    The first two digits need remainders adding to 1 or 4: the patterns (0,1)(0, 1) and (1,0)(1, 0) give 2 pairs each and (2,2)(2, 2) gives 4, in all 8.

  3. Step 3: Last digit 4

    The first two digits need remainders adding to 2: the patterns (0,2)(0, 2) and (2,0)(2, 0) give 2 pairs each and (1,1)(1, 1) gives 4, in all 8. The total is 8+8=168 + 8 = 16.

Answer. 16

Sanity check. The numbers ending in 2 are 132, 312, 342, 432, 222, 252, 522 and 552, which is 8, and each is a multiple of 6.

Common wrong answers

  • 50: Checking only that the number is even gives 5×5×2=505 \times 5 \times 2 = 50.
  • 41: Checking only divisibility by 3 gives 41; the last digit must also be even.

Key takeaway

The trap. A number can pass the digit-sum test and still be odd.

How toppers think. They sort the digits by remainder and count patterns, not numbers.

Remember. Even last digit, digit sum divisible by 3.

More on Fundamental Principle of Counting