After a lot of messing around today I curiously observed that $a^2+b^2$ is only divisible by 3 when both $a$ and $b$ contain factors of 3. I am trying to prove it without using modular arithmetic (because that would be way too easy), but finding it very difficult to do so. Is there an easy way to prove this without using modular arithmetic?
I am also interested in a more general statement. Namely, I want to find the values of $Z$ for which $Z \mid \left( a^2+b^2 \right)$ necessarily implies that $Z \mid \gcd \left( a,b\right)$. We know that $Z$ cannot be 5, because $3^2+4^2=5^2$. More generally, if $Z$ is the largest element of a pythagorean triple then the above implication does not hold.