I want to show that for $x^2+5y^2=z^2$ and $\gcd(x,y)=1$, there are 2 cases:
$x$ is odd and $y$ is even:
then $x=\pm(r^2+5s^2),~y=2rs,~z=r^2+5s^2$
$x$ is even and $y$ is odd:
then $x=\pm(2r^2+2rs-2s^2),~y=2rs+s^2,~z=2r^2+2rs+3s^2$
Any hints will be appreciated.