n^2+1=m^2
n^2=m^2-1
n^2=(m-1)(m+1)
n=#[(m-1)(m+1)]