Difference between revisions of "2004 AIME II Problems/Problem 14"
I like pie (talk | contribs) m |
(solution and note) |
||
Line 1: | Line 1: | ||
== Problem == | == Problem == | ||
− | Consider a string of <math> n </math> <math> 7 </math>'s, <math> 7777\cdots77, </math> into which <math> + </math> signs are inserted to produce an arithmetic expression. For example, <math> 7+77+777+7+7=875 </math> could be obtained from eight <math> 7 </math>'s in this way. For how many values of <math> n </math> is it possible to insert <math> + </math> signs so that the resulting expression has value <math> 7000 </math>? | + | Consider a string of <math> n </math> <math> 7 </math>'s, <math> 7777\cdots77, </math> into which <math> + </math> signs are inserted to produce an arithmetic [[expression]]. For example, <math> 7+77+777+7+7=875 </math> could be obtained from eight <math> 7 </math>'s in this way. For how many values of <math> n </math> is it possible to insert <math> + </math> signs so that the resulting expression has value <math> 7000 </math>? |
== Solution == | == Solution == | ||
− | {{solution} | + | Suppose we require <math>a</math> <math>7</math>s, <math>b</math> <math>77</math>s, and <math>c</math> <math>777</math>s to sum up to <math>7000</math> (<math>a,b,c \ge 0</math>). Then <math>7a + 77b + 777c = 7000</math>, or dividing by <math>7</math>, <math>a + 11b + 111c = 1000</math>. Then the question is asking for the number of values of <math>n = a + 2b + 3c</math>. |
+ | |||
+ | Manipulating our equation, we have <math>a + 2b + 3c = n = 1000 - 9(b + 12c) \Longrightarrow 0 < 9(b+12c) < 1000</math>. Thus the number of potential values of <math>n</math> is the number of multiples of <math>9</math> from <math>0</math> to <math>1000</math>, or <math>112</math>. | ||
+ | |||
+ | |||
+ | However, we forgot to consider the condition that <math>a \ge 0</math>. For a solution set <math>(b,c): n=1000-9(b+12c)</math>, it is possible that <math>a = n-2b-3c < 0</math> (for example, suppose we counted the solution set <math>(b,c) = (1,9) \Longrightarrow n = 19</math>, but substituting into our original equation we find that <math>a = -10</math>, so it is invalid). In particular, this invalidates the values of <math>n</math> for which their only expressions in terms of <math>(b,c)</math> fall into the inequality <math>9b + 108c < 1000 < 11b + 111c</math>. | ||
+ | |||
+ | For <math>1000 - n = 9k \le 9(7 \cdot 12 + 11) = 855</math>, we can express <math>k</math> in terms of <math>(b,c): n \equiv b \pmod{12}, 0 \le b \le 11</math> and <math>c = \frac{n-b}{12} \le 7</math> (in other words, we take the greatest possible value of <math>c</math>, and then "fill in" the remainder by incrementing <math>b</math>). Then <math>11b + 111c \le 855 + 2b + 3c \le 855 + 2(11) + 3(7) = 898 < 1000</math>, so these values work. | ||
+ | |||
+ | Similarily, for <math>855 \le 9k \le 9(8 \cdot 12 + 10) = 954</math>, we can let <math>(b,c) = (k-8 \cdot 12,8)</math>, and the inequality <math>11b + 111c \le 954 + 2b + 3c \le 954 + 2(10) + 3(8) = 998 < 1000</math>. However, for <math>9k \ge 963 \Longrightarrow n \le 37</math>, we can no longer apply this approach. | ||
+ | |||
+ | So we now have to examine the numbers on an individual basis. For <math>9k = 972</math>, <math>(b,c) = (0,9)</math> works. For <math>9k = 963, 981, 990, 999 \Longrightarrow n = 37, 19, 10, 1</math>, we find (using that respectively, <math>b = 11,9,10,11 + 12p</math> for integers <math>p</math>) that their is no way to satisfy the inequality <math>11b + 111c < 1000</math>. | ||
+ | |||
+ | Thus, the answer is <math>112 - 4 = \boxed{108}</math>. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | A note: Above, we formulated the solution in a forward manner (the last four paragraphs are devoted to showing that all the solutions we found worked except for the four cases pointed out; in a contest setting, we wouldn't need to be nearly as rigorous). A more natural manner of attacking the problem is to think of the process in reverse, namely seeing that <math>n \equiv 1 \pmod{9}</math>, and noting that small values of <math>n</math> would not work. | ||
+ | |||
+ | Looking at the number <math>7000</math>, we obviously see the maximum number of <math>7's</math>: a string of <math>1000 \ 7's</math>. Then, we see that the minimum is <math>28 \ 7's: \ 777*9 + 1 = 7000</math>. The next step is to see by what interval the value of <math>n</math> increases. Since <math>777</math> is <math>3 \ 7's, \ 77*10 + 7 is 21 \ 7's</math>, we can convert a <math>777</math> into <math>77's</math> and <math>7's</math> and add <math>18</math> to the value of <math>n</math>. Since we have <math>9 \ 777's</math> to work with, this gives us <math>28,46,64,82,100,118,136,154,172,190 ( = 28 + 18n | 1\leq n\leq 9)</math> as values for <math>n</math>. Since <math>77</math> can be converted into <math>7*11</math>, we can add <math>9</math> to <math>n</math> by converting <math>77</math> into <math>7's</math>. Our <math>n = 190</math>, which has <math>0 \ 777's \ 90 \ 77's \ 10 7's</math>. We therefore can add <math>9</math> to <math>n \ 90</math> times by doing this. All values of <math>n</math> not covered by this can be dealt with with the <math>n = 46 \ (8 \ 777's \ 10 \ 77's \ 2 \ 7's)</math> up to <math>190</math>. | ||
== See also == | == See also == | ||
{{AIME box|year=2004|n=II|num-b=13|num-a=15}} | {{AIME box|year=2004|n=II|num-b=13|num-a=15}} | ||
+ | |||
+ | [[Category:Intermediate Number Theory Problems]] |
Revision as of 21:25, 28 July 2008
Problem
Consider a string of 's, into which signs are inserted to produce an arithmetic expression. For example, could be obtained from eight 's in this way. For how many values of is it possible to insert signs so that the resulting expression has value ?
Solution
Suppose we require s, s, and s to sum up to (). Then , or dividing by , . Then the question is asking for the number of values of .
Manipulating our equation, we have . Thus the number of potential values of is the number of multiples of from to , or .
However, we forgot to consider the condition that . For a solution set , it is possible that (for example, suppose we counted the solution set , but substituting into our original equation we find that , so it is invalid). In particular, this invalidates the values of for which their only expressions in terms of fall into the inequality .
For , we can express in terms of and (in other words, we take the greatest possible value of , and then "fill in" the remainder by incrementing ). Then , so these values work.
Similarily, for , we can let , and the inequality . However, for , we can no longer apply this approach.
So we now have to examine the numbers on an individual basis. For , works. For , we find (using that respectively, for integers ) that their is no way to satisfy the inequality .
Thus, the answer is .
A note: Above, we formulated the solution in a forward manner (the last four paragraphs are devoted to showing that all the solutions we found worked except for the four cases pointed out; in a contest setting, we wouldn't need to be nearly as rigorous). A more natural manner of attacking the problem is to think of the process in reverse, namely seeing that , and noting that small values of would not work.
Looking at the number , we obviously see the maximum number of : a string of . Then, we see that the minimum is . The next step is to see by what interval the value of increases. Since is , we can convert a into and and add to the value of . Since we have to work with, this gives us as values for . Since can be converted into , we can add to by converting into . Our , which has . We therefore can add to times by doing this. All values of not covered by this can be dealt with with the up to .
See also
2004 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 13 |
Followed by Problem 15 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |