I need to find all natural $x,y,z$ that satisfy the following $x^2+y^2 = 3z^2$
$(0,0,0)$ is an answer of course. What I tried: I tried solving with congruences. I know that every square number is either $0\pmod4$ or $1\pmod4$ so the sum of two squares is either $0\pmod4$ or $2\pmod4$. Now I'm stuck... Any help will be appreciated.
Consider the equation mod $3$. The right hand side is $0$. How does $x^2 + y^2 \pmod 3$ behave?
The possible squares mod $3$ are $0, 1$. In order to get $0$, we must have both $x^2$ and $y^2$ to be $0 \pmod 3$. But then $x$ and $y$ are divisible by $3$, and the left hand side is divisible by $9$. Then $3z^2$ is divisible by $9$, which means that $z$ is divisible by $3$.
If all $x,y,z$ are divisible by $3$, we should be able to replace them with $x/3, y/3, z/3$ and get another solution. Iterating this, we arrive at a contradiction, as no numbers are infinitely divisibly by $3$ (except the trivial solution $(0,0,0)$).