2017 AIME II Problem 6

Attempt Problem 6 of the 2017 AIME II below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2017 AIME II solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

6.

Find the sum of all positive integers nn such that n2+85n+2017\sqrt{n^2 + 85n + 2017} is an integer.
Answer: 195
Concepts:Diophantine Equationcompleting the squaredifference of squares
Small hint:
Set n2+85n+2017=m2n^2 + 85n + 2017 = m^2 and multiply by 44 so the left side becomes (2n+85)2+843(2n + 85)^2 + 843
Big hint:
Factor 4m2−(2n+85)24m^2 - (2n + 85)^2 as a difference of squares; 843=3⋅281843 = 3 \cdot 281 has only two factorizations
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.