Difference between revisions of "2009 AIME II Problems/Problem 9"
(New page: == Problem == Let <math>m</math> be the number of solutions in positive integers to the equation <math>4x+3y+2z=2009</math>, and let <math>n</math> be the number of solutions in positive i...) |
(→Solution) |
||
Line 31: | Line 31: | ||
Similarly, we can compute that <math>n=82834</math>, hence <math>(m-n)\bmod 1000 = 1000\bmod 1000 = \boxed{000}</math>. | Similarly, we can compute that <math>n=82834</math>, hence <math>(m-n)\bmod 1000 = 1000\bmod 1000 = \boxed{000}</math>. | ||
− | === Solution === | + | === Solution 2 === |
We can avoid computing <math>m</math> and <math>n</math>, instead we will compute <math>m-n</math> directly. | We can avoid computing <math>m</math> and <math>n</math>, instead we will compute <math>m-n</math> directly. |
Revision as of 22:11, 7 April 2009
Contents
[hide]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
. 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
.
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 |