Problem

Source: Turkey JBMO Team Selection Test Problem 6

Tags: number theory, greatest common divisor, modular arithmetic, number theory proposed, GCD



Find all positive integers $m,n$ and prime numbers $p$ for which $\frac{5^m+2^np}{5^m-2^np}$ is a perfect square.