2003 AMC 10B Problem 13
Let denote the sum of the digits of the positive integer . For example, and . For how many two-digit values of is ?
Show solution without answering
Key insight
A two-digit number's digits add to at most 18, and only 3 and 12 in that range have digit sum 3. Count both cases.
Solution
- Work from the outside in. Let be the digit sum of . The question needs the digit sum of to be .
- How big can get? The biggest two-digit number is , with digit sum . So is between and .
- Which numbers from to have digit sum ? Among to , only . Among to , the digit sum is plus the last digit, which is only for . So or .
- Two-digit numbers with digit sum : . That is numbers.
- Two-digit numbers with digit sum : the tens digit must be at least (otherwise the units digit would need to be more than ). So we get . That is numbers.
- Total: .
The answer is .
Why this works
Taking a digit sum makes a number much smaller, so the inner digit sum can only be a few values. Finding the largest it can be (here ) turns a confusing "digit sum of a digit sum" condition into two short lists. Listing by tens digit makes sure no number is missed.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
For a two-digit , the digit sum lies between and . We need with . Single-digit works only for ; two-digit from to has digit sum , which equals only for .
Now count two-digit with each digit sum.
- Digit sum : tens digit with units : . That is numbers.
- Digit sum : tens digit from to with units from down to : . That is numbers.
Total: .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 8: Base Numbers
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.2)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site. Also appeared as 2003 12B #8.