Skip to main content

2008 AIME I Problem 4

Problem 4 of 15EasierAlgebraNumber Theory

There exist unique positive integers xx and yy that satisfy the equation x2+84x+2008=y2.x^2 + 84x + 2008 = y^2. Find x+y.x + y.

Your answer

Integer from 0 to 999
Show solution

Solution

Completing the square, x2+84x+2008x^2 + 84x + 2008 =(x+42)2+244,= (x + 42)^2 + 244, so y2−(x+42)2=244,y^2 - (x + 42)^2 = 244, which factors as (y−x−42)⋅(y+x+42)=244=22⋅61. \begin{aligned} &(y - x - 42) \\ &\quad {}\cdot (y + x + 42) \\ &= 244 \\ &= 2^2 \cdot 61. \end{aligned} The two factors have the same parity, and their product is even, so both are even: y−x−42=2y - x - 42 = 2 and y+x+42=122.y + x + 42 = 122. Adding gives y=62,y = 62, and then x=18;x = 18; indeed 182+84⋅18+200818^2 + 84 \cdot 18 + 2008 =3844= 3844 =622.= 62^2. Therefore x+y=18+62=80.x + y = 18 + 62 = 80.
AoPS wiki

Tagged: Diophantine Equation · completing the square · difference of squares

More practice