2009 AIME II Problem 9

Below is the professionally curated solution for Problem 9 of the 2009 AIME II, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2009 AIME II solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:Diophantine Equationbijectioninclusion-exclusion

Difficulty rating: 2840

9.

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 mnm - n is divided by 1000.1000.

Solution:

If (x,y,z)(x, y, z) is a positive solution of 4x+3y+2z=2009,4x + 3y + 2z = 2009, then (x1,y1,z1)(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 mnm - 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, 0y666,0 \le y \le 666, giving 334334 solutions. If y=0:y = 0: 2x+z=10002x + z = 1000 with 0x5000 \le x \le 500 gives 501.501. If z=0:z = 0: 4x+3y=20004x + 3y = 2000 forces y0(mod4),y \equiv 0 \pmod 4, 0y664,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 mn=334+501+1672=1000.m - n = 334 + 501 + 167 - 2 = 1000.

The remainder upon division by 10001000 is 0.0.

← Problem 8Full ExamProblem 10

Problem 9 in Other Years