Clear Notion Academy

JEE Advanced 2018 Mathematics PYQ: The number of 5 digit numbers which are divisible by 4, with digits from the set…

Question

The number of 5 digit numbers which are divisible by 4, with digits from the set {1,2,3,4,5}\{1,2,3,4,5\} and the repetition of digits is allowed, is ______.

Answer

Answer: 625

Hint

A number is divisible by 44 exactly when its last two digits form a number divisible by 44. Enumerate which two-digit endings from {1,2,3,4,5}2\{1,2,3,4,5\}^2 qualify, then freely choose the remaining three digits.

Solution

Deconstruction\textbf{Deconstruction}: We need 5-digit strings over the digit set {1,2,3,4,5}\{1,2,3,4,5\} (repetition allowed) that represent numbers divisible by 4. Strategy\textbf{Strategy}: Divisibility by 4 depends only on the last two digits. Count valid last-two-digit endings from the allowed digit set, then multiply by the free choices for the first three digits. Execution\textbf{Execution}: For digits d4,d5∈{1,2,3,4,5}d_4,d_5\in\{1,2,3,4,5\}, the two-digit number 10d4+d510d_4+d_5 must be divisible by 4. Checking each d4d_4: for d4=1d_4=1, need d5d_5 with 10+d5≡0(mod4)10+d_5\equiv0\pmod4, i.e. d5=2d_5=2 (giving 12); for d4=2d_4=2, d5=4d_5=4 (24); for d4=3d_4=3, d5=2d_5=2 (32); for d4=4d_4=4, d5=4d_5=4 (44); for d4=5d_4=5, d5=2d_5=2 (52). Each of the 5 choices of d4d_4 has exactly one valid d5d_5, giving 55 valid endings: 12,24,32,44,5212,24,32,44,52. The first three digits d1,d2,d3d_1,d_2,d_3 can each independently be any of the 5 digits: 53=1255^3=125 combinations. Total =125×5=625=125\times5=625. Verification\textbf{Verification}: Direct check that each ending is divisible by 4: 12/4=312/4=3, 24/4=624/4=6, 32/4=832/4=8, 44/4=1144/4=11, 52/4=1352/4=13 — all exact. As a sanity check on the counting method, exactly 1/41/4 of all two-digit endings should qualify "on average"; here 55 out of 2525 possible endings is exactly 1/51/5, close to but not exactly 1/41/4 because the digit set {1,...,5}\{1,...,5\} isn't a full residue system mod 4 — consistent with getting exactly one qualifying d5d_5 per d4d_4 rather than a clean quarter. Final Answer\textbf{Final Answer}: 625625.

More questions from JEE Advanced 2018 Mathematics PYQ

Practise the full set: JEE Advanced Mathematics PYQs 2018