I have the following problem from USAMO 2006:
"For an integer $m$, let $p(m)$ be the greatest prime divisor of $m$. By convention, we set $p(\pm 1)=1$ and $p(0)=\infty$. Find all polynomials $f$ with integer coefficients such that the sequence $\{ p(f(n^2))-2n) \}_{n\ge 0}$ is bounded above. (In particular, this requires $f(n^2)\neq 0$ for $n\ge 0$.)"
One solution for the above question is given here:
https://artofproblemsolving.com/wiki/index.php?title=2006_USAMO_Problems/Problem_3"
In this solution, the author makes the following statement:
"A theorem of T. Nagell implies that...." and has continued proving the given statement. Can anybody help me with what theorem of Nagel being referred to here and how it is used in the above solution?
PS: The only place where I have encountered the name before is the Nagell point, which for sure is not at all related to this question.