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
- Option A: 21
- Option B: 20
- Option C: 22
- Option D: 18
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 on division by 3, this means
for a whole number .
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.
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.
Step 2: Count
Equal remainders give 333, 111 and the numbers made of 5 and 8. Different remainders give orders with 2 choices for the digit of remainder 2, which is 12. The total is .
Answer. (C) 22
Sanity check. Of the 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 .
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.