Difference between revisions of "2007 AMC 12A Problems/Problem 22"
(→Solution 6) |
Math shisa (talk | contribs) m (→Solution 3 (Fastest casework)) |
||
(17 intermediate revisions by 5 users not shown) | |||
Line 6: | Line 6: | ||
== Solution 1 == | == Solution 1 == | ||
− | For the sake of notation let <math>T(n) = n + S(n) + S(S(n))</math>. Obviously <math>n<2007</math>. Then the maximum value of <math>S(n) + S(S(n))</math> is when <math>n = 1999</math>, and the sum becomes <math>28 + 10 = 38</math>. So the minimum bound is <math>1969</math>. We do [[casework]] upon the tens digit: | + | For the sake of notation, let <math>T(n) = n + S(n) + S(S(n))</math>. Obviously <math>n<2007</math>. Then the maximum value of <math>S(n) + S(S(n))</math> is when <math>n = 1999</math>, and the sum becomes <math>28 + 10 = 38</math>. So the minimum bound is <math>2007-38=1969</math>. We do [[casework]] upon the tens digit: |
Case 1: <math>196u \Longrightarrow u = 9</math>. Easy to directly disprove. | Case 1: <math>196u \Longrightarrow u = 9</math>. Easy to directly disprove. | ||
Line 33: | Line 33: | ||
:Inspection gives <math>n = 2001</math>. | :Inspection gives <math>n = 2001</math>. | ||
− | Case 2: <math>n < 2000</math>, <math>n = 19xy | + | Case 2: <math>n < 2000</math>, <math>n = \overline{19xy}</math> |
:If you set up an equation, it reduces to | :If you set up an equation, it reduces to | ||
Line 41: | Line 41: | ||
:which has as its only solution satisfying the constraints <math>x = 8</math>, <math>y = 0</math>. | :which has as its only solution satisfying the constraints <math>x = 8</math>, <math>y = 0</math>. | ||
− | Case 3: <math>n < 2000</math>, <math>n = 19xy</math>, <math>x + y \geq 10</math> | + | Case 3: <math>n < 2000</math>, <math>n = \overline{19xy}</math>, <math>x + y \geq 10</math> |
:This reduces to | :This reduces to | ||
Line 49: | Line 49: | ||
The solutions are thus <math>1977, 1980, 1983, 2001</math> and the answer is <math>\mathrm{(D)}\ 4</math>. | The solutions are thus <math>1977, 1980, 1983, 2001</math> and the answer is <math>\mathrm{(D)}\ 4</math>. | ||
− | == Solution 3 == | + | == Solution 3 (Fastest casework)== |
+ | It is well-known that <math>n \equiv S(n)\equiv S(S(n)) \pmod{9}.</math> Substituting, we have that <cmath>n+n+n \equiv 2007 \pmod{9} \implies n \equiv 0 \pmod{3}.</cmath> Since <math>n \leq 2007,</math> we must have that <math>\max S(n)=1+9+9+9=28.</math> Now, we list out the possible values for <math>S(n)</math> in a table, noting that it is a multiple of <math>3</math> because <math>n</math> is a multiple of <math>3.</math> | ||
+ | |||
+ | <center> | ||
+ | <math>\begin{tabular}{c|c c c c c c c c c c} | ||
+ | S(n) & 0 & 3 & 6 & 9 & 12 & 15 & 18 & 21 & 24 & 27 \\ | ||
+ | \end{tabular}</math> | ||
+ | </center> | ||
+ | |||
+ | Then, we compute the corresponding values of <math>S(S(n)).</math> | ||
+ | |||
+ | <center> | ||
+ | <math>\begin{tabular}{c|c c c c c c c c c c} | ||
+ | S(n) & 0 & 3 & 6 & 9 & 12 & 15 & 18 & 21 & 24 & 27 \\ | ||
+ | \hline | ||
+ | S(S(n)) & 0 & 3 & 6 & 9 & 3 & 6 & 9 & 3 & 6 & 9 \\ | ||
+ | \end{tabular}</math> | ||
+ | </center> | ||
+ | |||
+ | Finally, we may compute the corresponding values of <math>n</math> using the fact that <math>n=2007-S(n)-S(S(n)).</math> | ||
+ | |||
+ | <center> | ||
+ | <math>\begin{tabular}{c|c c c c c c c c c c} | ||
+ | n & 2007 & 2001 & 1995 & 1989 & 1992 & 1986 & 1980 & 1983 & 1977 & 1971 \\ | ||
+ | \hline | ||
+ | S(n) & 0 & 3 & 6 & 9 & 12 & 15 & 18 & 21 & 24 & 27 \\ | ||
+ | \hline | ||
+ | S(S(n)) & 0 & 3 & 6 & 9 & 3 & 6 & 9 & 3 & 6 & 9 \\ | ||
+ | \end{tabular}</math> | ||
+ | </center> | ||
+ | |||
+ | Notice how all conditions are designed to be satisfied except whether <math>S(n)</math> is accurate with respect to <math>n.</math> So, the only thing that remains is to check this. We may eliminate, for example, when <math>n=2007</math> we have <math>S(n)=9</math> while the table states that it is <math>0.</math> Proceeding similarly, we obtain the following table. | ||
+ | |||
+ | <center> | ||
+ | <math>\begin{tabular}{c|c c c c c c c c c c} | ||
+ | n & \cancel{2007} & \boxed{2001} & \cancel{1995} & \cancel{1989} & \cancel{1992} & \cancel{1986} & \boxed{1980} & \boxed{1983} & \boxed{1977} & \cancel{1971} \\ | ||
+ | \hline | ||
+ | S(n) & 0 & 3 & 6 & 9 & 12 & 15 & 18 & 21 & 24 & 27 \\ | ||
+ | \hline | ||
+ | S(S(n)) & 0 & 3 & 6 & 9 & 3 & 6 & 9 & 3 & 6 & 9 \\ | ||
+ | \end{tabular}</math> | ||
+ | </center> | ||
+ | |||
+ | It follows that there are <math>\boxed{4}\implies \textbf{(D)}</math> possible values for <math>n.</math> ~samrocksnature | ||
+ | |||
+ | == Solution 4 == | ||
As in Solution 1, we note that <math>S(n)\leq 28</math> and <math>S(S(n))\leq 10</math>. <br/> | As in Solution 1, we note that <math>S(n)\leq 28</math> and <math>S(S(n))\leq 10</math>. <br/> | ||
Obviously, <math>n\equiv S(n)\equiv S(S(n)) \pmod 9</math>. <br/> | Obviously, <math>n\equiv S(n)\equiv S(S(n)) \pmod 9</math>. <br/> | ||
Line 61: | Line 106: | ||
This happens for <math>n_{?}\in \{ 1977, 1980, 1983, 2001 \}</math>. | This happens for <math>n_{?}\in \{ 1977, 1980, 1983, 2001 \}</math>. | ||
− | ==Solution | + | ==Solution 5== |
Claim. The only positive integers <math>n</math> that satisfy the condition are perfect multiples of <math>3</math>. | Claim. The only positive integers <math>n</math> that satisfy the condition are perfect multiples of <math>3</math>. | ||
Line 109: | Line 154: | ||
~Refined by HamstPan38825 | ~Refined by HamstPan38825 | ||
− | ==Solution | + | ==Solution 6 (Rigorous)== |
Let the number of digits of <math>n</math> be <math>m</math>. If <math>m = 5</math>, <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 <math>2007</math>, unless <math>m = 4</math> (i.e. <math>n</math> has <math>4</math> digits). | Let the number of digits of <math>n</math> be <math>m</math>. If <math>m = 5</math>, <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 <math>2007</math>, unless <math>m = 4</math> (i.e. <math>n</math> has <math>4</math> digits). | ||
Line 126: | Line 171: | ||
− | Now that we have expressed the tens digit, we can express the ones digit as <math> | + | Now that we have expressed the tens digit, we can express the ones digit as <math>S(n) -10</math> times the above expression, or |
Line 211: | Line 256: | ||
Note: Although this solution takes a while to read (as well as to write) the actual time it takes to think through the process above is very short in comparison to the solution length. | Note: Although this solution takes a while to read (as well as to write) the actual time it takes to think through the process above is very short in comparison to the solution length. | ||
− | + | ~edits by vadava_lx | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Latest revision as of 22:08, 28 July 2024
- 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 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: ,
- 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 (Fastest casework)
It is well-known that Substituting, we have that Since we must have that Now, we list out the possible values for in a table, noting that it is a multiple of because is a multiple of
Then, we compute the corresponding values of
Finally, we may compute the corresponding values of using the fact that
Notice how all conditions are designed to be satisfied except whether is accurate with respect to So, the only thing that remains is to check this. We may eliminate, for example, when we have while the table states that it is Proceeding similarly, we obtain the following table.
It follows that there are possible values for ~samrocksnature
Solution 4
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 5
Claim. The only positive integers that satisfy the condition are perfect multiples of .
Proof of claim: We examine the positive integers mod . Here are the cases.
Case 1. . Now, we examine modulo . Case 1.1. The tens digit of is different from the tens digit of the largest multiple of under . (In other words, this means we will carry when adding from the perfect multiple of under .) Observe that when we carry, i.e. Add onto to obtain , the units digit decreases by while the tens digit increases by . This means that the sum of the digits decreases by in total, and we have , so the "mod 9" of the sum increases by . This means that, regardless of whether the sum carries or not, the modulo 9 of the sum of the digits always increases by .
Case 1.2. The tens digits are the same, which is trivial since the units digit just increases by which means that the sum is also equivalent to .
This means that and similarly letting the next , . Summing these, we have . Clearly, no integers of this form will satisfy the condition because is a perfect multiple of .
Case 2. .
In this case, we apply exactly the same argument. There is at most one carry, which means that the sum of the digits will always be congruent to mod . Then we can apply similar arguments to get and , so adding gives .
It is trivial to see that for , for , we must have . Only when is a multiple of , which means that must be a multiple of .
Now, we find the integers. Again, consider two cases: Integers that are direct multiples of and integers that are multiples of but not .
Case 1. is a multiple of . An integer of the form will not work since the least such integer is which already exceeds our bounds. Thus, we need only consider the integers of the form . The valid sums of the digits of are and in this case.
Case 1.1. The sum of the digits is . This means that , so . Clearly this number satisfies our constraints.
Case 1.2. The sum of the digits is . This means that , ,so . Since the sum of the digits of is not , this does not work.
This means that there is integer in this case.
Case 2. is a multiple of , not . . Case 2.1. Integers of the form . Then or ; it is trivial to see that exceeds our bounds, so and .
Case 2.2. Integers of the form . Then and we consider each case separately.
Case 2.2.1. Integers with . That means which clearly does not work.
Case 2.2.2. Integers with . That means which also does not work
Case 2.2.3. Integers with . That means which is valid.
Case 2.2.4. Integers with . That means which is also valid.
We have considered every case, so there are integers that satisfy the given condition.
~Refined by HamstPan38825
Solution 6 (Rigorous)
Let the number of digits of be . If , 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 , unless (i.e. has digits).
Then, let be a four digit number in the form . Then .
is the sum of the digits of . We can represent as the sum of the tens digit and the ones digit of . The tens digit in the form of a decimal is
.
To remove the decimal portion, we can simply take the floor of the expression,
.
Now that we have expressed the tens digit, we can express the ones digit as times the above expression, or
.
Adding the two expressions yields the value of
.
Combining this expression to the ones for and yields
.
Setting this equal to and rearranging a bit yields
.
(The reason for this slightly weird arrangement will soon become evident)
Now we examine the possible values of . If , is already too large. must also be greater than , or would be a -digit number. Therefore, . Now we examine by case.
If , then and must both be (otherwise would already be greater than ). Substituting these values into the equation yields
.
Sure enough, .
Now we move onto the case where . Then our initial equation simplifies to
Since and can each be at most , we substitute that value to find the lower bound of . Doing so yields
.
The floor expression is at least , so the right-hand side is at least . Solving for , we see that . Again, we substitute for and the equation becomes
.
Just like we did for , we can find the lower bound of by assuming and solving:
The right hand side is for and for . Solving for c yields . Looking back at the previous equation, the floor expression is for and for . Thus, the right-hand side is for and for . We can solve these two scenarios as systems of equations/inequalities:
and
Solving yields three pairs ; ; and . Checking the numbers , , and ; we find that all three work. Therefore there are a total of possibilities for .
Note: Although this solution takes a while to read (as well as to write) the actual time it takes to think through the process above is very short in comparison to the solution length.
~edits by vadava_lx
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 |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.