UPSC CSAT 2022 Q18: Counting Odd-Digit Numbers Divisible by 5 — Solved
How many 3-digit natural numbers (without repetition of digits) are there such that each digit is odd and the number is divisible by 5?
- 8
- 12
- 16
- 24
Answer: (b) 12
Solution
- List the odd digits. They are 1, 3, 5, 7 and 9, so there are 5 of them.
- Use the divisibility rule for 5. A number is divisible by 5 only if its units digit is 0 or 5. Zero is even, so it is not allowed. The units digit must be 5. That gives 1 choice.
- Fill the hundreds place. The digit 5 is already used, and digits cannot repeat. The choices left are 1, 3, 7 and 9. That gives 4 choices.
- Fill the tens place. One more odd digit is now used, so 3 choices remain.
- Multiply the choices for the three places: 4 × 3 × 1 = 12.
- Check by listing. With 5 fixed in the units place, the first two digits come from {1, 3, 7, 9}: 135, 175, 195, 315, 375, 395, 715, 735, 795, 915, 935, 975. That is 12 numbers.
Answer: 12
Option-wise explanation
- a: incorrect — 8 is too small. It would need only 2 choices for the tens digit, as if two digits were used up instead of one. The listing gives 12 valid numbers, so 8 misses 4 of them.
- b: correct — The units digit has to be 5, so there is 1 choice. The hundreds digit then has 4 choices from 1, 3, 7, 9, and the tens digit has 3. 4 × 3 × 1 = 12.
- c: incorrect — 16 = 4 × 4. You get it by letting the hundreds and tens digits repeat each other while still keeping 5 out of both places. This breaks the 'without repetition' condition.
- d: incorrect — 24 = 4 × 3 × 2. You get it by treating all three places as free choices from the four non-5 odd digits and forgetting that the units digit is fixed. The trap is ignoring the divisibility condition.
How to eliminate
Fix the strictest place first. Divisible by 5 and odd means the number ends in 5. That leaves the four digits 1, 3, 7, 9 for the other two places, so the count is 4 × 3 = 12. You do not need to look at the other options. To check, notice that each starting digit (1, 3, 7 or 9) can be followed by 3 tens digits, so the answer has to be a multiple of 4 and at most 4 × 4 = 16. That rules out 24 at once. About 20–30 seconds. Attempt this one first.
Know more
Filling places in a fixed order (the fundamental counting principle)
When you count numbers with digit conditions:
- Fill the most restricted place first. This is usually the units digit (because of a divisibility rule) or the leading digit (it cannot be 0).
- Then fill the remaining places. Each time you place a digit, the pool shrinks by one if repetition is not allowed.
- Multiply the number of choices for all the places.
- If one place can take more than one value and each value changes the choices left for the other places, split into cases and add them.
| Condition | Units digit must be |
|---|---|
| Divisible by 2 | 0, 2, 4, 6, 8 |
| Divisible by 5 | 0 or 5 |
| Divisible by 10 | 0 |
| Odd number | 1, 3, 5, 7, 9 |
Worked variant. How many 3-digit numbers with distinct digits can be made from {0, 1, 2, 3, 4, 5} that are divisible by 5?
- Case 1, units digit 0: the hundreds digit has 5 choices (1 to 5) and the tens digit has 4. 5 × 4 = 20.
- Case 2, units digit 5: the hundreds digit cannot be 0 or 5, so it has 4 choices. The tens digit has 4 choices, because 0 is allowed again. 4 × 4 = 16.
- Total: 20 + 16 = 36.
You need two cases because putting 0 in the units place takes away the leading-zero problem. Putting 5 there does not. In the 2022 question, zero was not allowed at all, so one case was enough.