QlarIITy

MathematicsJEE Main 2023 · 15 AprilSingle correct

The total number of three-digit numbers, divisible by 3, which can be formed using the digits 1, 3, 5, 8, if repetition of digits is allowed, is

  1. Option A: 21
  2. Option B: 20
  3. Option C: 22
  4. Option D: 18
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Three remainders add to a multiple of 3 only when all are equal or all are different.

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 chosen from 1, 3, 5 and 8, and digits may repeat. On division by 3 these digits leave remainders 1, 0, 2 and 2. The digit sum is a multiple of 3 when the three remainders are all the same or are 0, 1 and 2 in some order.

Approach. Count the numbers with all remainders equal and those with all remainders different, and add.

  1. Step 1: Remainders

    On division by 3 the digit 3 leaves remainder 0, the digit 1 leaves 1, and the digits 5 and 8 leave 2. Three remainders add to a multiple of 3 only if all are equal or all are different.

  2. Step 2: Count

    Equal remainders give 333, 111 and the 23=82^3 = 8 numbers made of 5 and 8. Different remainders give 3!=63! = 6 orders with 2 choices for the digit of remainder 2, which is 12. The total is 1+1+8+12=221 + 1 + 8 + 12 = 22.

Answer. (C) 22

Sanity check. Of the 43=644^3 = 64 numbers about one third should be divisible by 3, and 22 is close to one third of 64.

Why the other options are wrong

  • (A) The value 21 leaves out one of the two numbers 111 and 333.
  • (B) The value 20 is 8 plus 12; it leaves out both 111 and 333.
  • (D) The value 18 would follow from counting only 4 numbers made of 5 and 8; there are 23=82^3 = 8.

Key takeaway

The trap. With repetition, numbers such as 111 and 333 also count.

How toppers think. They expect about one third of all the numbers and compare.

Remember. All equal or all different remainders.

More on Fundamental Principle of Counting