Square of P + square of M = square of N, where p prime number, m and N are natural numbers

Square of P + square of M = square of N, where p prime number, m and N are natural numbers

prove:
∵p^2+m^2=n^2
∴p^2=n^2-m^2=(n-m)(n+m)
∵ P is prime
P ^ 2 can be decomposed into 1 * P ^ 2 or p * P ^ 2
∵ N-M and N + m are not equal and N + m > N-M
∴n+m=p^2,n-m=1
∴m=(p^2-1)/2
2(p+m+1)
=2p+p^2-1+2
=p^2+2p+1
=(p+1)^2
Get proof