If $n\neq2\mod 4$, then there are three possibilities:
$n\equiv0\pmod 4, n\equiv1\pmod 4$, and $n\equiv3\pmod 4.$
Can I have some help after this point? Thanks.
If $n\neq2\mod 4$, then there are three possibilities:
$n\equiv0\pmod 4, n\equiv1\pmod 4$, and $n\equiv3\pmod 4.$
Can I have some help after this point? Thanks.
From $x^2+y^2=z^2$ we have $$x^2=(z-y)(z+y)$$ so your goal is to find two factors $a<b$ such that $ab=x^2$, $a=z-y$, $b=z+y$. The system $$\left\lbrace\begin{matrix}z-y=a\\z+y=b\end{matrix}\right.$$ has an integer solution if and only if $a$ and $b$ have the same parity. What happens for $x=1$?