QlarIITy

MathematicsJEE Main 2022 · 29 JuneInteger

The total number of four digit numbers such that each of the first three digits is divisible by the last digit, 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. A condition tying digits to the last digit is handled one last digit at a time.

Concept refresher. A digit xx is divisible by dd when

x=dkx = dk

for a whole number kk; in particular zero is divisible by every non-zero dd.

Picture the situation. Let the last digit be dd. Division by zero has no meaning, so dd runs from 1 to 9. The first digit must be a multiple of dd from 1 to 9, and the second and third digits multiples of dd from 0 to 9, where 0 counts as a multiple. A larger dd leaves fewer choices.

Approach. Count the numbers for each last digit and add.

  1. Step 1: Last digit 1 or 2

    For d=1d = 1 every digit works, giving 9×10×10=9009 \times 10 \times 10 = 900. For d=2d = 2 the first digit is 2, 4, 6 or 8 and the middle digits are 0, 2, 4, 6 or 8, giving 4×5×5=1004 \times 5 \times 5 = 100.

  2. Step 2: Last digit 3 or 4

    For d=3d = 3 the first digit is 3, 6 or 9 and the middle digits are 0, 3, 6 or 9, giving 3×4×4=483 \times 4 \times 4 = 48. For d=4d = 4 the choices are 4 or 8 and 0, 4 or 8, giving 2×3×3=182 \times 3 \times 3 = 18.

  3. Step 3: Last digit 5 to 9

    The first digit must be dd itself and each middle digit 0 or dd, giving 4 numbers for each of the five values, 20 in all. The total is 900+100+48+18+20=1086900 + 100 + 48 + 18 + 20 = 1086.

Answer. 1086

Sanity check. For the last digit 5 the four numbers are 5005, 5055, 5505 and 5555, which confirms the count of 4.

Common wrong answers

  • 833: Not counting 0 as divisible by the last digit gives 729, 64, 27, 8 and 5 for the cases, which add to 833.
  • 1066: Stopping at the last digit 4 and leaving out the last digits 5 to 9 gives 1066.

Key takeaway

The trap. Zero is a multiple of every non-zero digit, but it cannot be the first digit.

How toppers think. They group the last digits 5 to 9, which all behave alike.

Remember. Zero is divisible by every non-zero number.

More on Fundamental Principle of Counting