Solve the diophantine equation: $5^m + n^2=3^p$ where $m,n,p \in \mathbb{N}-\{0\}$
One solution is $m=1,n=2,p=2$. Now, applying modulo 4:
$1 + 0 = (-1)^p \mod 4 \tag 1$ or $1 + 1 = (-1)^p \mod 4 \tag 2$
But only (1) is possible, therefore both $n, p$ are even.
Also, applying modulo 3:
$(-1)^m + n^2 = 0 \mod 3 \tag 3$ therefore $m$ is odd and $n=3k \pm 1$
I could not get any further.