Exercise 1959Number theory › Diophantine equationsOlympiadAdded 4 Nov 2026
When is n⁴ + n³ + n² + n + 1 a perfect square?
#bounding between squares#Diophantine equations
Statement
Find all positive integers such that is a perfect square.
Hint
Multiply by to complete a square: compare with and .
Show solutionHide solution
Solution
Answer. only ().
Idea. Trap strictly between two consecutive squares of the same parity, leaving a single possible intermediate square, then solve for .
Bounds. We have
and
so . Hence
Parity. If then is an even square strictly between the squares of and , so . Squaring,
and comparing with gives , i.e. .
Conclusion. .
Check. ✓. (Compare: gives , gives , gives .)
Lesson. To solve "polynomial = square", sandwich the polynomial (suitably scaled) between two consecutive squares and treat the few possible intermediate values.