Skip to main content

2017 AIME II Problem 6

Problem 6 of 15IntermediateAlgebraNumber Theory

Find the sum of all positive integers nn such that n2+85n+2017\sqrt{n^2 + 85n + 2017} is an integer.

Your answer

Integer from 0 to 999
Show solution

Solution

Suppose n2+85n+2017=m2n^2 + 85n + 2017 = m^2 for a positive integer m.m. Multiplying by 44 and completing the square gives (2n+85)2+843=4m2,(2n + 85)^2 + 843 = 4m^2, so (2m−2n−85)(2m+2n+85)=843=3⋅281, \begin{aligned} &(2m - 2n - 85)(2m + 2n + 85) \\ &= 843 = 3 \cdot 281, \end{aligned} where 281281 is prime. Both factors are positive with the second one larger, so either 2m−2n−85=12m - 2n - 85 = 1 and 2m+2n+85=843,2m + 2n + 85 = 843, or 2m−2n−85=32m - 2n - 85 = 3 and 2m+2n+85=281.2m + 2n + 85 = 281. The first system gives m=211m = 211 and n=168,n = 168, and indeed 1682+85⋅168+2017168^2 + 85 \cdot 168 + 2017 =44521=2112.= 44521 = 211^2. The second gives m=71m = 71 and n=27,n = 27, with 272+85⋅27+201727^2 + 85 \cdot 27 + 2017 =5041=712.= 5041 = 71^2. The requested sum is 168+27=195.168 + 27 = 195.
AoPS wiki

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

More practice