Let equal the sum of the digits of positive integer . For example, . For a particular positive integer , . Which of the following could be the value of ?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Adding 1 to a number ending in k nines changes the digit sum by 1 - 9k, so S(n+1) is 1275 minus a multiple of 9; only 1239 fits.
Solution
Suppose ends in exactly nines (). Adding turns those nines into zeros and increases the next digit by , so
Hence . The digit sum of is , so , and must leave remainder when divided by .
Check the choices by their own digit sums: ; ; ; ; . Only is .
It is attainable: , so take ending in exactly four nines with the remaining digits summing to (for example followed by eights, then ). Then .
The answer is .
Why this works
A digit sum is congruent to the number itself mod , so no matter how many carries occur; carries only subtract multiples of . Divisibility-by-9 invariants like this one are the fastest way to eliminate answer choices in digit problems.
Alternative approach
Skip the carry analysis: since for every , . Test the five choices mod ; only survives.
The trap
Assuming S(n+1) = S(n) + 1 = 1275 (not a choice) and then guessing, without accounting for carries.
Common mistakes
- Assuming S(n+1) = S(n) + 1 = 1275 (not a choice) and then guessing, without accounting for carries.
- Picking because "looks like a carry," when each carry removes exactly .
Techniques
Use the answer choices (mod checks, size, form) to eliminate or select · Use an invariant, parity, or coloring argument