The number of 3-digit numbers, formed using the digits 2, 3, 4, 5 and 7 , when the repetition of digits is not allowed, and which are not divisible by 3 , is equal to__________
Solution
Core idea. Divisibility by 3 depends only on which digits are used, not on their order.
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. Each number uses three different digits out of five. Whether it is divisible by 3 depends only on the set of digits chosen, since the digit sum does not change when the digits are reordered. So it is enough to find the sets of three digits with a sum divisible by 3 and remove all their arrangements.
Approach. Count all the numbers, count those divisible by 3 through the remainders of the digits, and subtract.
Step 1: All numbers
Three different digits out of the five can be chosen and arranged in ways.
Step 2: Divisible by 3
The digit 3 leaves remainder 0, the digits 4 and 7 leave 1, and the digits 2 and 5 leave 2. With no repeats, a sum divisible by 3 needs one digit of each remainder, giving sets and numbers.
Step 3: Not divisible by 3
Removing these from all the numbers leaves that are not divisible by 3.
Answer. 36
Sanity check. The four sets are 2, 3, 4; then 2, 3, 7; then 3, 4, 5; then 3, 5, 7, with sums 9, 12, 12 and 15.
Common wrong answers
- 24: Counting the numbers that are divisible by 3 gives 24; the question asks for those that are not.
- 42: Missing one of the four sets with a digit sum divisible by 3 gives 42.
Key takeaway
The trap. The question asks for the numbers that are not divisible by 3.
How toppers think. They sort the digits by remainder and count sets, not individual numbers.
Remember. Digit sum divisible by 3.
More on Permutations
- The number of 4 -letter words, with or without meaning, each consisting of two vowels and two consonants…
- The number of ways, of forming a queue of 4 boys and 3 girls such that all the girls are not together, is:
- Three persons enter in a lift at the ground floor. The lift will go up to 10^th floor. The number of ways…
- All 55 on Permutations ›