Problem

Source: Ukraine TST 2018 p7

Tags: Perfect Square, number theory, prime, divisor



The prime number $p > 2$ and the integer $n$ are given. Prove that the number $pn^2$ has no more than one divisor $d$ for which $n^2+d$ is the square of the natural number. .