AMC 10 Step by Step

2003 AMC 10B Problem 13

P11-15~3 minPrint

Let ♣(x)\clubsuit(x) denote the sum of the digits of the positive integer xx . For example, ♣(8)=8\clubsuit(8)=8 and ♣(123)=1+2+3=6\clubsuit(123)=1+2+3=6 . For how many two-digit values of xx is ♣(♣(x))=3\clubsuit(\clubsuit(x))=3 ?

Log in to save your progress.
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

  1. Work from the outside in. Let ss be the digit sum of xx. The question needs the digit sum of ss to be 33.
  2. How big can ss get? The biggest two-digit number is 9999, with digit sum 9+9=189 + 9 = 18. So ss is between 11 and 1818.
  3. Which numbers from 11 to 1818 have digit sum 33? Among 11 to 99, only 33. Among 1010 to 1818, the digit sum is 11 plus the last digit, which is 33 only for 1212. So s=3s = 3 or s=12s = 12.
  4. Two-digit numbers with digit sum 33: 12,21,3012, 21, 30. That is 33 numbers.
  5. Two-digit numbers with digit sum 1212: the tens digit must be at least 33 (otherwise the units digit would need to be more than 99). So we get 39,48,57,66,75,84,9339, 48, 57, 66, 75, 84, 93. That is 77 numbers.
  6. Total: 3+7=103 + 7 = 10.

The answer is (E) 10\boxed{\textbf{(E)}\ 10}.

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 1818) 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 xx, the digit sum s=♣(x)s = \clubsuit(x) lies between 11 and 9+9=189 + 9 = 18. We need ♣(s)=3\clubsuit(s) = 3 with 1≤s≤181 \le s \le 18. Single-digit ss works only for s=3s = 3; two-digit ss from 1010 to 1818 has digit sum 1+(units digit)1 + (\text{units digit}), which equals 33 only for s=12s = 12.

Now count two-digit xx with each digit sum.

  • Digit sum 33: tens digit 1,2,31, 2, 3 with units 2,1,02, 1, 0: 12,21,3012, 21, 30. That is 33 numbers.
  • Digit sum 1212: tens digit tt from 33 to 99 with units 12−t12 - t from 99 down to 33: 39,48,57,66,75,84,9339, 48, 57, 66, 75, 84, 93. That is 77 numbers.

Total: 3+7=103 + 7 = 10.

The answer is (E) 10\boxed{\textbf{(E)}\ 10}.

Review in the AoPS books

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.