AoPSWiki
Want to learn how to tackle those tough AMC/AIME/Olympiad counting and probability problems? Check out Art of Problem Solving's NEW Intermediate Counting & Probability by David Patrick.
Personal tools

2007 AMC 12A Problems/Problem 22

From AoPSWiki

The following problem is from both the 2007 AMC 12A #22 and 2007 AMC 10A #25, so both problems redirect to this page.

Problem

For each positive integer , let denote the sum of the digits of For how many values of is

\mathrm{(A)}\ 1 \qquad \mathrm{(B)}\ 2 \qquad \mathrm{(C)}\ 3 \qquad \mathrm{(D)}\ 4 \qquad \mathrm{(E)}\ 5

Contents

Solution

Solution 1

For the sake of notation let . Obviously . Then the maximum value of is when , and the sum becomes . So the minimum bound is . We do casework upon the tens digit:

Case 1: . Easy to directly disprove.

Case 2: . , and if and otherwise.

Subcase a: T(n) = 1970 + u + 17 + u + 8 + u = 1995 + 3u = 2007 \Longrightarrow u = 4. This exceeds our bounds, so no solution here.
Subcase b: T(n) = 1970 + u + 17 + u + u - 1 = 1986 + 3u = 2007 \Longrightarrow u = 7. First solution.

Case 3: . , and if and otherwise.

Subcase a: T(n) = 1980 + u + 18 + u + 9 + u = 2007 + 3u = 2007 \Longrightarrow u = 0. Second solution.
Subcase b: T(n) = 1980 + u + 18 + u + u = 1998 + 3u = 2007 \Longrightarrow u = 3. Third solution.

Case 4: . But , and the these clearly sum to .

Case 5: . So and , and 2000 + u + 2 + u + 2 + u = 2004 + 3u = 2007 \Longrightarrow u = 1. Fourth solution.

In total we have solutions, which are and .

Solution 2

Clearly, . We can break this up into three cases:

Case 1:

Inspection gives .

Case 2: , ,

If you set up an equation, it reduces to

which has as its only solution satisfying the constraints , .

Case 3: , ,

This reduces to
. The only two solutions satisfying the constraints for this equation are , and , .

The solutions are thus and the answer is .

See also

2007 AMC 12A (Problems)
Preceded by
Problem 21
Followed by
Problem 23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
2007 AMC 10A (Problems)
Preceded by
Problem 24
Followed by
Last question
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Preparing for MATHCOUNTS or the AMC contests, and having a tough time with number theory problems? Read Art of Problem Solving's Introduction to Number Theory by Mathew Crawford.
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us