返回题库

AIME 2009 II · 第 9 题

AIME 2009 II — Problem 9

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let mm be the number of solutions in positive integers to the equation 4x+3y+2z=20094x+3y+2z=2009, and let nn be the number of solutions in positive integers to the equation 4x+3y+2z=20004x+3y+2z=2000. Find the remainder when mnm-n is divided by 10001000.

解析

Solution

Solution 1

It is actually reasonably easy to compute mm and nn exactly.

First, note that if 4x+3y+2z=20094x+3y+2z=2009, then yy must be odd. Let y=2y1y=2y'-1. We get 4x+6y3+2z=20094x + 6y' - 3 + 2z = 2009, which simplifies to 2x+3y+z=10062x + 3y' + z = 1006. For any pair of positive integers (x,y)(x,y') such that 2x+3y<10062x + 3y' < 1006 we have exactly one zz such that the equality holds. Hence we need to count the pairs (x,y)(x,y').

For a fixed yy', xx can be at most 10053y2\left\lfloor \dfrac{1005-3y'}2 \right\rfloor. Hence the number of solutions is

m=y=133410053y2=501+499+498+496++6+4+3+1=1000+994++10+4=83834\begin{aligned} m & = \sum_{y'=1}^{334} \left\lfloor \dfrac{1005-3y'}2 \right\rfloor \\ & = 501 + 499 + 498 + 496 + \cdots + 6 + 4 + 3 + 1 \\ & = 1000 + 994 + \cdots + 10 + 4 \\ & = 83834 \end{aligned} Similarly, we can compute that n=82834n=82834, hence mn=1000000(mod1000)m-n = 1000 \equiv \boxed{000} \pmod{1000}.

Solution 2

We can avoid computing mm and nn, instead we will compute mnm-n directly.

Note that 4x+3y+2z=20094x+3y+2z=2009 if and only if 4(x1)+3(y1)+2(z1)=20004(x-1)+3(y-1)+2(z-1)=2000. 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 11. The value mnm-n is the number of such solutions.

If x=1x=1, we get the equation 3y+2z=20053y+2z=2005. The variable yy must be odd, and it must be between 11 and 667667, inclusive. For each such yy there is exactly one valid zz. Hence in this case there are 334334 valid solutions.

If y=1y=1, we get the equation 4x+2z=20064x+2z=2006, or equivalently 2x+z=10032x+z=1003. The variable xx must be between 11 and 501501, inclusive, and for each such xx there is exactly one valid zz. Hence in this case there are 501501 valid solutions.

If z=1z=1, we get the equation 4x+3y=20074x+3y=2007. The variable yy must be odd, thus let y=2u1y=2u-1. We get 4x+6u=20104x+6u=2010, or equivalently, 2x+3u=10052x+3u=1005. Again, we see that uu must be odd, thus let u=2v1u=2v-1. We get 2x+6v=10082x+6v=1008, which simplifies to x+3v=504x+3v=504. Now, we see that vv must be between 11 and 167167, inclusive, and for each such vv we have exactly one valid xx. Hence in this case there are 167167 valid solutions.

Finally, we must note that there are two special solutions: one with x=y=1x=y=1, and one with y=z=1y=z=1. We counted each of them twice, hence we have to subtract two from the total.

Therefore mn=334+501+1672=1000m-n = 334 + 501 + 167 - 2 = 1000, and the answer is 1000mod1000=0001000\bmod 1000 = \boxed{000}.

Solution 3

In this solution we will perform a similar operation as in Solution 2, but only on yy: 4x+3y+2z=20094x+3y+2z=2009 if and only if 4x+3(y3)+2z=20004x+3(y-3)+2z=2000. There is a one-to-one correspondence between the solutions of these two equations. Let y=y3y'=y-3 and require yy' to be positive as well. Then the second equation becomes 4x+3y+2z=20004x+3y'+2z=2000. Notice that there are several "extra" solutions in the first equation that cannot be included in the second equation (since that would make yy' non-positive). The value mnm-n is therefore the number of "extra" solutions.

Since y=y3y'=y-3, in order for yy' to be non-positive 1y31 \leq y \leq 3. However, equation (1) requires y to be odd, so we have two cases to consider: y=1y=1 and y=3y=3. This results in the two equations 4x+3+2z=20094x+3+2z=2009 and 4x+9+2z=20094x+9+2z=2009.

4x+3+2z=20094x+3+2z=2009 simplifies to 2x+z=10032x+z=1003. There is exactly one valid zz for each xx; xx must be between 11 and 501501 (inclusive) to obtain positive integer solutions. Therefore, there are 501501 solutions in this case.

4x+9+2z=20094x+9+2z=2009 simplifies to 2x+z=10002x+z=1000. There is exactly one valid zz for each xx; xx must be between 11 and 499499 (inclusive) to obtain positive integer solutions. Therefore, there are 499499 solutions in this case.

Thus, mn=501+499=1000;1000000(mod1000)m-n = 501 + 499 = 1000; 1000 \equiv \boxed{000} \pmod{1000}.