QlarIITy

MathematicsJEE Main 2022 · 26 JuneInteger

If the probability that a randomly chosen 6-digit number formed by using digits 1 and 8 only is a multiple of 21 is pp, then 96p96p 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 change of a digit by seven does not affect the remainder on division by seven.

Concept refresher. A number is divisible by 3 exactly when the sum ss of its digits is divisible by 3, because

10k=9m+110^k = 9m + 1

for some integer mm, so each digit contributes itself to the remainder.

Picture the situation. A 6-digit number with digits 1 and 8 only is fixed by the places of its eights, so there are 26=642^6 = 64 such numbers. It is a multiple of 21 when it is a multiple of both 3 and 7. The digit sum handles 3, and a comparison with 111111 handles 7.

Approach. Test divisibility by 7 for all such numbers at once, then count those divisible by 3.

  1. Step 1: Divisibility by 7

    Changing a digit 1 into 8 adds 7×10k7 \times 10^k, a multiple of 7. So every such number leaves the same remainder as 111111=7×15873111111 = 7 \times 15873, and all 64 numbers are multiples of 7.

  2. Step 2: Divisibility by 3

    With mm eights the digit sum is (6−m)+8m=6+7m(6 - m) + 8m = 6 + 7m, which is a multiple of 3 exactly when mm is 0, 3 or 6. That gives 6C0+6C3+6C6=22{}^{6}C_{0} + {}^{6}C_{3} + {}^{6}C_{6} = 22 numbers.

  3. Step 3: The value

    Dividing by the 64 numbers in all gives p=2264=1132p = \dfrac{22}{64} = \dfrac{11}{32}, so the value asked is 96p=3396p = 33.

Answer. 33

Sanity check. Example: 111888=21×5328111888 = 21 \times 5328, with three eights.

Common wrong answers

  • 30: Taking only three eights gives 20 numbers and 96p=3096p = 30; the numbers 111111 and 888888 also qualify.

Key takeaway

The trap. The cases of no eight and of six eights are easy to forget.

How toppers think. They reduce the test by 7 to a single number, the one made of ones.

Remember. 111111=7×15873111111 = 7 \times 15873

More on Sample Space & Events