The number has the property that its units digit is the sum of its other digits, that is . How many integers less than but greater than share this property?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
For 1bcd the condition is d = 1 + b + c with b + c <= 8, giving 45 pairs; the only extra number in the 2000s is 2002.
Solution
Write the number as with and the condition , which requires .
Thousands digit . Numbers to : we need , so , and each such pair determines uniquely. For each sum from to there are pairs, so the count is
(The pair gives , which is greater than and allowed.)
Thousands digit . Only to are in range, so and . With , : works. With , gives , which is excluded. That is more.
Total: .
The answer is .
Why this works
Once the leading digit is fixed, the units digit is determined by the middle two, so the problem is counting pairs with a bounded sum: a triangular number. The upper limit is a deliberate edge: it forces a separate check of the short s range.
The trap
Forgetting the 2000-2012 range (answering 45), or allowing b + c = 9, which would make the units digit 10.
Common mistakes
- Forgetting the 2000-2012 range (answering 45), or allowing b + c = 9, which would make the units digit 10.
- Including itself, or counting (units digit ) as valid.
Techniques
Split into exhaustive cases and handle each · Set up the equation/formula and compute; no special trick needed