The number of five-digit numbers, greater than 40000 and divisible by 5, which can be formed using the digits 0, 1, 3, 5, 7 and 9 without repetition, is equal to
- Option A: 132
- Option B: 120
- Option C: 72
- Option D: 96
Solution
Core idea. When one digit is wanted in two restricted places, split the cases on it.
Concept refresher. The number of arrangements of out of different objects is
and restricted places are filled before the free ones.
Picture the situation. The number has five different digits from 0, 1, 3, 5, 7, 9. To be divisible by 5 it ends in 0 or 5. To exceed 40000 its first digit must be 5, 7 or 9. The digit 5 is wanted in both roles, so the two endings are counted separately.
Approach. Count the numbers for each ending and add.
Step 1: Ending in 0
The first digit must be 5, 7 or 9, and the three middle places take three of the remaining 4 digits in ways, giving .
Step 2: Ending in 5
The first digit must be 7 or 9, and the middle places take three of the remaining 4 digits, 0 included, in 24 ways, giving . The total is .
Answer. (B) 120
Sanity check. The first digit cannot be 0, 1 or 3, since the number must exceed 40000; this is why only 5, 7 and 9 appear there.
Why the other options are wrong
- (A) The value 132 is 12 more than the sum of the two cases, 72 and 48.
- (C) The value 72 counts only the numbers ending in 0; those ending in 5 add 48.
- (D) The value 96 would follow if the ending 5 gave 24 numbers; the first digit can be 7 or 9, which gives 48.
Key takeaway
The trap. A digit used at the end is no longer available at the front.
How toppers think. They fill the last place, then the first, then the middle places.
Remember. Endings 0 and 5 separately.
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 ›