Problem

Source: Junior Turkish Mathematical Olympiad 2011 P3

Tags: modular arithmetic, number theory proposed, number theory



$m < n$ are positive integers. Let $p=\frac{n^2+m^2}{\sqrt{n^2-m^2}}$. (a) Find three pairs of positive integers $(m,n)$ that make $p$ prime. (b) If $p$ is prime, then show that $p \equiv 1 \pmod 8$.