Difference between revisions of "2007 AMC 12A Problems/Problem 22"
m (removed toc) |
|||
| Line 70: | Line 70: | ||
Remark: this may seem time consuming, but in reality, calculating <math>n+S(n)+S(S(n))</math> for <math>16</math> values is actually very quick, so this solution would only take approximately 3-5 minutes, helpful in a contest. | Remark: this may seem time consuming, but in reality, calculating <math>n+S(n)+S(S(n))</math> for <math>16</math> values is actually very quick, so this solution would only take approximately 3-5 minutes, helpful in a contest. | ||
| + | |||
| + | ==Solution 5 (Rigorous)== | ||
| + | Let the number of digits of the <math>n</math> be <math>m</math>. If <math>m</math> is 5, <math>n</math> will already be greater than <math>2007</math>. Notice that <math>S(n)</math> is always at most <math>9m</math>. Then if <math>m = 3</math>, <math>n</math> will be at most <math>999</math>, <math>S(n)</math> will be at most <math>27</math>, and <math>S(S(n))</math> will be even smaller than <math>27</math>. Clearly we cannot reach a sum of 2007, unless <math>m = 4</math> (i.e. <math>n</math> has <math>4</math> digits). | ||
| + | |||
| + | Let <math>n</math> be a <math>4</math>-digit number in the form <math>1000a + 100b + 10c + d</math>. Then <math>S(n) = a + b + c + d</math> | ||
== See also == | == See also == | ||
Revision as of 13:16, 21 July 2020
- The following problem is from both the 2007 AMC 12A #22 and 2007 AMC 10A #25, so both problems redirect to this page.
Contents
Problem
For each positive integer
, let
denote the sum of the digits of
For how many values of
is
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:
. This exceeds our bounds, so no solution here. - Subcase b:
. First solution.
Case 3:
.
, and
if
and
otherwise.
- Subcase a:
. Second solution. - Subcase b:
. Third solution.
Case 4:
. But
, and
clearly sum to
.
Case 5:
. So
and
(recall that
), and
. Fourth solution.
In total we have
solutions, which are
and
.
Solution 2
Clearly,
. We can break this into three cases:
Case 1:
- Inspection gives
.
Case 2:
,
(not to be confused with
),
- 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
.
Solution 3
As in Solution 1, we note that
and
.
Obviously,
.
As
, this means that
, or equivalently that
.
Thus
. For each possible
we get three possible
.
(E. g., if
, then
is a number such that
and
, therefore
.)
For each of these nine possibilities we compute
as
and check whether
.
We'll find out that out of the 9 cases, in 4 the value
has the correct sum of digits.
This happens for
.
Solution 4
- This solution is not a good solution, but is viable for in contest situations
Clearly
. Thus,
Now we need a bound for
. It is clear that the maximum for
(from
) which means the maximum for
is
. This means that
.
- Warning: This is where you will cringe badly
Now check all multiples of
from
to
and we find that only
work, so our answer is
.
Remark: this may seem time consuming, but in reality, calculating
for
values is actually very quick, so this solution would only take approximately 3-5 minutes, helpful in a contest.
Solution 5 (Rigorous)
Let the number of digits of the
be
. If
is 5,
will already be greater than
. Notice that
is always at most
. Then if
,
will be at most
,
will be at most
, and
will be even smaller than
. Clearly we cannot reach a sum of 2007, unless
(i.e.
has
digits).
Let
be a
-digit number in the form
. Then
See also
| 2007 AMC 12A (Problems • Answer Key • Resources) | |
| 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 | |
| All AMC 12 Problems and Solutions | |
| 2007 AMC 10A (Problems • Answer Key • Resources) | ||
| 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 | ||
| All AMC 10 Problems and Solutions | ||
These problems are copyrighted © by the Mathematical Association of America, as part of the American Mathematics Competitions.