UPSC CSAT 2022 Q5: Divisibility Puzzle with Digit Placement — Solved
An Identity Card has the number ABCDEFG, not necessarily in that order, where each letter represents a distinct digit (1, 2, 4, 5, 7, 8, 9 only). The number is divisible by 9. After deleting the first digit from the right, the resulting number is divisible by 6. After deleting two digits from the right of original number, the resulting number is divisible by 5. After deleting three digits from the right of original number, the resulting number is divisible by 4. After deleting four digits from the right of original number, the resulting number is divisible by 3. After deleting five digits from the right of original number, the resulting number is divisible by 2. Which of the following is a possible value for the sum of the middle three digits of the number?
- 8
- 9
- 11
- 12
Answer: (a) 8
Solution
-
Write down what is given. The number has 7 places. Number them P1 to P7 from the left. The digits used are 1, 2, 4, 5, 7, 8 and 9, each used once. Each "delete k digits from the right" condition is a rule about the first (7 − k) digits: - First 2 digits (P1P2) divisible by 2. - First 3 digits divisible by 3. - First 4 digits divisible by 4. - First 5 digits divisible by 5. - First 6 digits divisible by 6. - All 7 digits divisible by 9.
-
Divisibility by 9 is automatic. 1 + 2 + 4 + 5 + 7 + 8 + 9 = 36, and 36 is divisible by 9. This condition holds for every arrangement, so it gives no information.
-
Divisible by 5 gives P5 = 5. A number is divisible by 5 only if it ends in 0 or 5. There is no 0, so the fifth digit is 5.
-
Divisible by 6 gives P7 = 9. The first six digits must be divisible by 3. Their sum is 36 − P7. Since 36 is a multiple of 3, P7 must also be a multiple of 3. Among 1, 2, 4, 5, 7, 8, 9, only 9 qualifies. So P7 = 9.
-
Find the even places. Divisibility by 2, 4 and 6 means the 2nd, 4th and 6th digits of the number must each be even. So P2, P4 and P6 are even. The only even digits are 2, 4 and 8, so these three digits fill P2, P4 and P6.
-
Fill the odd places. The odd digits left are 1, 5, 7 and 9. P5 = 5 and P7 = 9, so P1 and P3 are 1 and 7 in some order.
-
Divisible by 3 fixes P2. P1 + P2 + P3 = 1 + 7 + P2 = 8 + P2. Try each even digit: - P2 = 2 gives 10, which is not divisible by 3. - P2 = 4 gives 12, which is divisible by 3. ✓ - P2 = 8 gives 16, which is not divisible by 3. So P2 = 4.
-
Divisible by 4 fixes P4. A number is divisible by 4 if its last two digits are. Here those are P3P4. P3 is 1 or 7 and P4 is 2 or 8: - 12 ÷ 4 = 3 ✓ - 18 ÷ 4 = 4.5 ✗ - 72 ÷ 4 = 18 ✓ - 78 ÷ 4 = 19.5 ✗ So P4 = 2. That leaves P6 = 8.
-
List the numbers. Two arrangements remain: - P3 = 1, P1 = 7: 7412589 - P3 = 7, P1 = 1: 1472589 Check 7412589: 74 is even. 7 + 4 + 1 = 12 is divisible by 3. 12 is divisible by 4. 74125 ends in 5. 741258 is even and its digit sum is 27. The total digit sum is 36. Every condition holds. Checking 1472589 the same way also works.
-
Sum of the middle three digits (P3, P4, P5).
- 7412589: 1 + 2 + 5 = 8
- 1472589: 7 + 2 + 5 = 14 The possible sums are 8 and 14. Only 8 is among the options.
Answer: 8
Option-wise explanation
- a: correct — The number 7412589 meets every condition, and its middle digits are 1, 2 and 5, which add up to 8. The only other valid number is 1472589, which gives 14, and 14 is not an option.
- b: incorrect — The middle digits are always P3 + 2 + 5, where P3 is 1 or 7. To get 9, P3 would have to be 2, but 2 is already the fourth digit and P3 must be odd.
- c: incorrect — A sum of 11 needs P3 = 4. But 4 is forced into the second place by the divisible-by-3 condition, and P3 must be odd. You could reach 11 by forgetting the divisible-by-3 step and using an unchecked arrangement.
- d: incorrect — A sum of 12 needs P3 = 5. But 5 is fixed at the fifth place by the divisible-by-5 condition. The trap is placing 5 without noticing it has already been used.
How to eliminate
Work from the strongest condition first. There is no 0, so the fifth digit must be 5. The digit sum is 36, so the divisible-by-6 condition forces the last digit to be 9. Places 2, 4 and 6 must be even, so they take 2, 4 and 8. That means the middle three digits always add up to (1 or 7) + (an even digit) + 5. Now test P3P4 for divisibility by 4: only 12 and 72 work, so P4 = 2. The middle sum is therefore 1 + 2 + 5 = 8 or 7 + 2 + 5 = 14. Only 8 is offered, so you can mark it without building the full number. Time: about 90–120 seconds once you notice that 5 and 9 are forced. This is a good question to attempt in the first round, because each step settles one digit.
Know more
Prefix divisibility puzzles (digit placement)
In these puzzles, every left-hand block of the number (its first k digits) must pass a divisibility test. Settle the conditions in this order:
- Forced conditions first. Divisibility by 5 with no 0 available fixes a digit as 5. A test on the full number, such as 9 or 3, often holds for every arrangement, so check the digit sum before spending time on it.
- Parity next. Divisibility by 2, 4, 6 or 8 makes that place even. Count the even digits. If there are exactly as many as there are even places, those places are filled.
- Small tests last. Use the 3-sum and last-two-digits-for-4 tests to settle what remains.
| Divisor | Test on the block |
|---|---|
| 2 | Last digit even |
| 3 | Digit sum divisible by 3 |
| 4 | Last two digits divisible by 4 |
| 5 | Last digit 0 or 5 |
| 6 | Even and divisible by 3 |
| 9 | Digit sum divisible by 9 |
Worked variant. Use the digits 1, 2 and 3 once each. The first two digits must be divisible by 2, and the whole number must be divisible by 3.
- The digit sum is 6, so divisibility by 3 always holds.
- The second digit must be even, so it is 2.
- That gives 123 or 321. Both work.
Habit to build: before trying arrangements, add up all the digits. That one sum often settles the condition on the full number or on the number with its last digit removed.