Difference between revisions of "2009 AIME II Problems/Problem 9"
m (→Solution 1) |
Heliootrope (talk | contribs) (added solution 3) |
||
Line 46: | Line 46: | ||
Therefore <math>m-n = 334 + 501 + 167 - 2 = 1000</math>, and the answer is <math>1000\bmod 1000 = \boxed{000}</math>. | Therefore <math>m-n = 334 + 501 + 167 - 2 = 1000</math>, and the answer is <math>1000\bmod 1000 = \boxed{000}</math>. | ||
+ | |||
+ | === Solution 3 === | ||
+ | Perform a similar operation as in Solution 2, but only on <math>y</math>: <math>4x+3y+2z=2009</math> if and only if <math>4x+3(y-3)+2z=2000</math>. The value <math>m-n</math> is thus the additional solutions we have for this equation as opposed to the second. | ||
+ | |||
+ | The second equation <math>4x+3y+2z=2000</math> requires <math>y</math> to be even, so the largest solution for <math>y</math> would be <math>3y=1992</math> and the smallest <math>3y=6</math>. Now let <math>y'=y-3</math>. Note that we can make <math>3y'=3(y-3)=1992</math> without problems, and likewise with all the solutions in between; so the only additional solutions will be below the smallest. Accordingly, <math>y'</math> can equal <math>0</math> or <math>-6</math> when <math>y=3</math> or <math>y=1</math>. | ||
+ | |||
+ | So there are only two equations to consider: <math>4x+0+2z=2000</math> and <math>4x-6+2z=2000</math>, or <math>2x+z=1000</math> and <math>2x+z=1003</math>. | ||
+ | |||
+ | If <math>2x+z=1000</math>, <math>x</math> must be between <math>1</math> and <math>499</math> to obtain positive integer solutions because <math>z=0</math> when <math>x=500</math>; there is exactly one valid <math>z</math> for each <math>x</math>. | ||
+ | |||
+ | If <math>2x+z=1003</math>, <math>x</math> must be between <math>1</math> and <math>501</math> to obtain positive integer solutions; there is exactly one valid <math>z</math> for each <math>x</math>. | ||
+ | |||
+ | Therefore <math>m-n = 499 + 501 = 1000; 1000 \bmod 1000 = \boxed{000}</math>. | ||
== See Also == | == See Also == | ||
{{AIME box|year=2009|n=II|num-b=8|num-a=10}} | {{AIME box|year=2009|n=II|num-b=8|num-a=10}} |
Revision as of 11:42, 31 March 2013
Problem
Let be the number of solutions in positive integers to the equation , and let be the number of solutions in positive integers to the equation . Find the remainder when is divided by .
Solution
Solution 1
Brute force. It is actually reasonably easy to compute and exactly.
First, note that if , then must be odd. Let . We get , which simplifies to . For any pair of positive integers such that we have exactly one such that the equality holds. Hence we need to count the pairs .
For a fixed , can be at most . Hence the number of solutions is
Similarly, we can compute that , hence .
Solution 2
We can avoid computing and , instead we will compute directly.
Note that if and only if . Hence there is an almost 1-to-1 correspondence between the positive integer solutions of the two equations. The only exceptions are the solutions of the first equation in which at least one of the variables is equal to . The value is the number of such solutions.
If , we get the equation . The variable must be odd, and it must be between and , inclusive. For each such there is exactly one valid . Hence in this case there are valid solutions.
If , we get the equation , or equivalently . The variable must be between and , inclusive, and for each such there is exactly one valid . Hence in this case there are valid solutions.
If , we get the equation . The variable must be odd, thus let . We get , or equivalently, . Again, we see that must be odd, thus let . We get , which simplifies to . Now, we see that must be between and , inclusive, and for each such we have exactly one valid . Hence in this case there are valid solutions.
Finally, we must note that there are two special solutions: one with , and one with . We counted each of them twice, hence we have to subtract two from the total.
Therefore , and the answer is .
Solution 3
Perform a similar operation as in Solution 2, but only on : if and only if . The value is thus the additional solutions we have for this equation as opposed to the second.
The second equation requires to be even, so the largest solution for would be and the smallest . Now let . Note that we can make without problems, and likewise with all the solutions in between; so the only additional solutions will be below the smallest. Accordingly, can equal or when or .
So there are only two equations to consider: and , or and .
If , must be between and to obtain positive integer solutions because when ; there is exactly one valid for each .
If , must be between and to obtain positive integer solutions; there is exactly one valid for each .
Therefore .
See Also
2009 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 8 |
Followed by Problem 10 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |