2017 AIME II Problem 6
Problem 6 of 15IntermediateAlgebraNumber Theory
Find the sum of all positive integers such that is an integer.
Your answer
Integer from 0 to 999
Show solution
Solution
Suppose for a positive integer Multiplying by and completing the square gives so where is prime. Both factors are positive with the second one larger, so either and or and
The first system gives and and indeed The second gives and with
The requested sum is
Tagged: Diophantine Equation · completing the square · difference of squares