Problem

Source: ITAMO 2019 #2

Tags: number theory, ITAMO 2019



Let $p,q$ be prime numbers$.$ Prove that if $p+q^2$ is a perfect square$,$ then $p^2+q^n$ is not a perfect square for any positive integer $n.$