QlarIITy

MathematicsJEE Main 2023 · 30 JanuaryInteger

Number of 4-digit numbers (the repetition of digits is allowed) which are made using the digits 1, 2, 3 and 5 , and are divisible by 15 , is equal to

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 15 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 four digits from 1, 2, 3 and 5, with repetition. Divisibility by 5 forces the last digit to be 5, since 0 is not available. Divisibility by 3 is a condition on the digit sum, which is handled through the remainders of the digits on division by 3.

Approach. Fix the last digit, then count the first three digits by their remainders.

  1. Step 1: The last digit

    To be divisible by 5 with these digits the number must end in 5, which leaves remainder 2 on division by 3.

  2. Step 2: Remainders

    The digit 3 leaves remainder 0, the digit 1 leaves 1, and the digits 2 and 5 leave 2. The first three digits must have remainders adding to 1 or 4, so the patterns are (0,0,1)(0, 0, 1), (1,1,2)(1, 1, 2) and (0,2,2)(0, 2, 2), each in 3 orders.

  3. Step 3: Count

    The pattern (0,0,1)(0, 0, 1) gives 3 numbers; (1,1,2)(1, 1, 2) gives 3×2=63 \times 2 = 6; and (0,2,2)(0, 2, 2) gives 3×2×2=123 \times 2 \times 2 = 12. The total is 3+6+12=213 + 6 + 12 = 21.

Answer. 21

Sanity check. Of the 43=644^3 = 64 numbers ending in 5 about one third should be divisible by 3, and the count found is close to a third of 64.

Common wrong answers

  • 22: Requiring the first three digits alone to add to a multiple of 3, forgetting the 5 at the end, gives 22.

Key takeaway

The trap. The forced last digit also contributes to the digit sum.

How toppers think. They work with remainders and count patterns, not individual numbers.

Remember. Last digit 5, digit sum divisible by 3.

More on Fundamental Principle of Counting