Skip to main content

1999 AIME Problem 3

Problem 3 of 15EasierAlgebraNumber Theory

Find the sum of all positive integers nn for which n2−19n+99n^2 - 19n + 99 is a perfect square.

Your answer

Integer from 0 to 999
Show solution

Solution

Suppose n2−19n+99=k2.n^2 - 19n + 99 = k^2. Multiplying by 44 and completing the square gives (2n−19)2+35=(2k)2,(2n - 19)^2 + 35 = (2k)^2, so (2k−(2n−19))⋅(2k+(2n−19))=35. \begin{aligned} &\bigl(2k - (2n - 19)\bigr) \\ &\quad {}\cdot \bigl(2k + (2n - 19)\bigr) \\ &= 35. \end{aligned} The two factors sum to 4k>0,4k \gt 0, so both are positive: the factor pairs are (1,35),(1, 35), (5,7),(5, 7), (7,5),(7, 5), and (35,1).(35, 1). Subtracting the first factor from the second gives 2(2n−19)=34,2(2n - 19) = 34, 2,2, −2,-2, or −34,-34, so n=18,n = 18, 10,10, 9,9, or 1.1. Each indeed makes the expression a perfect square (81,81, 9,9, 9,9, 8181), and the sum is 18+10+9+1=38.18 + 10 + 9 + 1 = 38.
AoPS wiki

Tagged: perfect square · completing the square · difference of squares

More practice