I am working on the following exercise:
Consider the Diophantine equation $x^2+3y^2=z^2$. Show that for each primitive solution $(x,y,z)$ to this equation holds
- $x$ has to be odd.
- If $y$ is odd then $z$ is even.
I think that 2) is clear. It is enough to recall the arithmetic tables of $Z/2Z$. But I do not know how to do 1.). Could you give me a hint?
The equation $x^2+3y^2=z^2$ cannot have solutions with $x$, $y$, and $z$ all odd. For similar reasons, if two of the variables in a solution are even, then so is the third. So primitive solutions must have exactly one variable even and the other two odd. If, in a primitive solution, $x$ were even, then $y$ and $z$ would be odd, and we would have $3\equiv1$ mod $4$, since $y^2\equiv z^2\equiv1$ mod $4$. So $x$ must be odd, leaving exactly one of $y$ and $z$ to be even, thus proving both 1. and 2. together.