UPSC CSAT 2023 Q10: Least Number-to-Digit-Sum Ratio — Solved

D is a 3-digit number such that the ratio of the number to the sum of its digits is least. What is the difference between the digit at the hundred's place and the digit at the unit's place of D?

  1. 0
  2. 7
  3. 8
  4. 9

Answer: (c) 8

Solution

  1. Write D = 100a + 10b + c, where a is the hundreds digit (1 to 9), and b and c are the tens and units digits (0 to 9). The digit sum is S = a + b + c.
  2. We want the smallest value of D/S. Split off a whole part. Compute D − 10S: D − 10S = (100a + 10b + c) − (10a + 10b + 10c) = 90a − 9c.

  3. So D/S = 10 + (90a − 9c)/S.

  4. Can the extra part be zero or negative? That needs 90a ≤ 9c, which means c ≥ 10a. But c ≤ 9 and a ≥ 1, so this is impossible. The extra part is always positive, and D/S is always more than 10.
  5. To make (90a − 9c)/S as small as possible, make the top small and the bottom large. - Top: 90a − 9c is smallest when a = 1 and c = 9. It gives 90 − 81 = 9. - Bottom: with a = 1 and c = 9, S = 10 + b. This is largest when b = 9, so S = 19.

  6. With a = 1, b = 9, c = 9: D = 199 and D/S = 10 + 9/19 = 199/19 ≈ 10.47.

  7. Check that a larger hundreds digit cannot win. With a = 2 the top is at least 180 − 81 = 99, and S is at most 2 + 9 + 9 = 20. The extra part is then at least 99/20 = 4.95. That is much more than 9/19 ≈ 0.47. Larger a is worse still.
  8. Check the closest rivals: - 189: 189/18 = 10.5 - 198: 198/18 = 11 - 109: 109/10 = 10.9 - 999: 999/27 = 37 All are larger than 199/19 ≈ 10.47. So D = 199.

  9. Hundreds digit = 1 and units digit = 9. Difference = 9 − 1 = 8.

Answer: 8

Option-wise explanation

  • a: incorrect — A difference of 0 needs equal hundreds and units digits, such as 111 (ratio 37) or 999 (ratio 37). The trap is thinking 'all 9s' gives the largest digit sum and so the smallest ratio. It ignores the fact that a large hundreds digit makes the number grow far faster than the digit sum.
  • b: incorrect — A difference of 7 fits 198 (digits 1 and 8). Its ratio is 198/18 = 11, more than 199/19 ≈ 10.47. The slip is putting the 9 in the tens place instead of the units place. The units digit adds 1 to D for every 1 it adds to S, so it should take the largest value.
  • c: correct — The minimum is at D = 199. Here D/S = 199/19 = 10 + 9/19 ≈ 10.47, which no other 3-digit number beats. The hundreds digit is 1 and the units digit is 9, so the difference is 9 − 1 = 8.
  • d: incorrect — A difference of 9 needs a 9 and a 0 at the two ends, such as 900 (ratio 100), 990 (ratio 55) or 909 (ratio 50.5). These are near the largest ratios, not the smallest. This option catches anyone who reads 'least ratio' as 'largest digits everywhere' or works out the maximum by mistake.

How to eliminate

Reason in one line: the hundreds digit inflates the number 100 times but adds only 1 to the digit sum, so keep it at 1. The units digit adds the same amount to the number and to the sum, so make it 9. Then a high tens digit helps too, giving 199. That fixes the hundreds digit at 1 and the units digit at 9, so the difference is 8.

Quick sanity check against the options: a difference of 0 means equal end digits (111 or 999, ratio 37), and a difference of 9 means a 9 and a 0 at the ends (900, 990, ratio 50 or more). Both are far worse. Between 198 (difference 7, ratio 11) and 199 (difference 8, ratio ≈ 10.47), 199 wins.

Time: about 45–60 seconds once you see that the hundreds digit must be 1. Attempt it in the first pass.

Know more

Minimising a number ÷ its digit sum

Each digit's place value is how much it adds to the number. In the digit sum, every digit counts only once. So the ratio is pulled up by the big place values and pulled down by the small ones.

The neat trick: subtract the ratio's floor times the digit sum and look at what is left.

  • 3-digit: D − 10S = 90a − 9c, so D/S = 10 + (90a − 9c)/S. Set a = 1 and c = 9, then maximise S (b = 9). This gives 199.
  • 2-digit: N − S = 9a, so N/S = 1 + 9a/(a + b). Set a = 1 and b = 9. This gives 19, with ratio 19/10.
Digits Minimiser Ratio
2 19 1.9
3 199 ≈ 10.47
4 1999 1999/28 ≈ 71.4

Pattern: smallest possible leading digit (1), then all 9s.

Worked variant. Which 2-digit number has the least ratio of number to digit sum? Use N/S = 1 + 9a/(a + b). The leading digit a must be at least 1. Taking a = 1 gives 1 + 9/(1 + b), which is smallest when b = 9: 1 + 9/10 = 1.9. Check: 29 gives 29/11 ≈ 2.64, which is larger. Answer: 19.

The reverse question, the largest ratio, comes from 100, 200, …, 900. Each has ratio 100, because the digit sum stays tiny.