Skip to main content

2009 AIME II Problem 9

Problem 9 of 15IntermediateNumber TheoryCombinatorics

Let mm be the number of solutions in positive integers to the equation 4x+3y+2z=2009,4x + 3y + 2z = 2009, and let nn be the number of solutions in positive integers to the equation 4x+3y+2z=2000.4x + 3y + 2z = 2000. Find the remainder when m−nm - n is divided by 1000.1000.

Your answer

Integer from 0 to 999
Show solution

Solution

If (x,y,z)(x, y, z) is a positive solution of 4x+3y+2z=2009,4x + 3y + 2z = 2009, then (x−1,y−1,z−1)(x - 1, y - 1, z - 1) is a nonnegative solution of 4x+3y+2z=2000,4x + 3y + 2z = 2000, and conversely, since 4+3+2=9.4 + 3 + 2 = 9. So mm equals the number of nonnegative solutions of 4x+3y+2z=2000,4x + 3y + 2z = 2000, and m−nm - n counts the nonnegative solutions of that equation in which at least one variable is 0.0. If x=0:x = 0: 3y+2z=20003y + 2z = 2000 forces yy even, 0≤y≤666,0 \le y \le 666, giving 334334 solutions. If y=0:y = 0: 2x+z=10002x + z = 1000 with 0≤x≤5000 \le x \le 500 gives 501.501. If z=0:z = 0: 4x+3y=20004x + 3y = 2000 forces y≡0(mod4),y \equiv 0 \pmod 4, 0≤y≤664,0 \le y \le 664, giving 167.167. The solutions (0,0,1000)(0, 0, 1000) and (500,0,0)(500, 0, 0) are each counted twice, so m−n=334+501+167−2=1000. \begin{aligned} m - n &= 334 + 501 + 167 - 2 \\ &= 1000. \end{aligned} The remainder upon division by 10001000 is 0.0.
AoPS wiki

Tagged: Diophantine Equation · bijection · inclusion-exclusion

More practice