AMC 10 · 2007 · #22

Grade 4 number-theory
digit-sumcaseworkmodular-arithmeticbound-inequality-then-enumerate caseworkbound-inequality-then-enumerate ↑ Prerequisites: digit-sum
📏 Long solution 💡 4 insights
📘 View easy version →
Problem
A number plus its digit sum plus that sum's digit sum equals 2007. Count how many numbers do this.

Pick an answer.

(A)
1
(B)
2
(C)
3
(D)
4
(E)
5
How to solve
Strategy Extreme Principle

There are infinitely many positive integers, so Tool #14 (Extreme Principle) first traps n in a tiny window: the two extra terms S(n)+S(S(n)) can never be large, so n must sit just below 2007. That leaves only a few dozen candidates. Tool #16 (Change Focus) then looks at the problem through remainders when dividing by 9; the digit-sum rule forces n to be a multiple of 3, cutting the candidates by two thirds. Finally Tool #2 (Make a Systematic List) walks the surviving multiples of 3 in order, computing n + S(n) + S(S(n)) for each and counting the hits.

1STEP 1

Trap n in a small window

Bounding the extra terms traps the number in a short window.

S(n)+S(S(n)) ≤ 28+10 = 38 → n = 2007 - S(n) - S(S(n)) ≥ 1969, so 1969 ≤ n ≤ 2006
2STEP 2

Keep only multiples of 3

A remainder rule keeps only the multiples of three.

n ≡ S(n) ≡ S(S(n)) ≡ r (mod 9) → 3r ≡ 2007 ≡ 0 (mod 9) → 3 ∣ r → 3 ∣ n
3STEP 3

Test each surviving candidate

Testing the survivors finds the ones that hit the target.

1977, 1980, 1983, 2001 → 2007 (all others miss)
4STEP 4

Count the hits

Counting them gives 4, choice (D).

n ∈ {1977, 1980, 1983, 2001} → 4 values → (D)
Answer
4
Spot-check the four winners by hand. 1977: digits sum to 1+9+7+7 = 24, and 2+4 = 6, giving 1977+24+6 = 2007. 2001: digits sum to 3, and S(3)=3, giving 2001+3+3 = 2007. Both check out. The four solutions land in two natural clusters (1977–1983 and the lone 2001), consistent with the digit sums jumping around as n crosses from the 1900s into the 2000s. Four is one of the offered choices and matches the multiple-of-3 pattern, so (D) is consistent.
💡Key takeaway

Because digit sums are tiny, n must sit just below 2007; checking that short list of multiples of 3 leaves exactly four winners.

  • Trap n in a small window
  • Keep only multiples of 3
  • Test each surviving candidate
  • Count the hits