I am trying to prove old test exercises and this one is resisting me.
I know you can believe that I meant $a^ 2 + b ^ 2$ is divisible by 4, but no, in the test it says that 4 is divisible by $a ^ 2+ b^2$.
Suppose that $ a,b \in \mathbb{Z}$ If 4 is divisible by $ a^2 + b^2$, then $a$ and $b$ are not odd.
I started like this:
Suppose that a and b are even, then $a = 2m$ and $b = 2n$ for some $m,n \in \mathbb{Z} $.
Thus $$ a^2 = (2m)^2 \ \mbox{and}\ \ b^2= (2n)^2$$ $$ a ^2 + b^2= (2m)^2 + (2n)^2$$ $$ a^2 + b^2 = (4 m^2 + 4n^2) = 2(2m^2+2n^2) $$
Now $$2m ^ 2 + 2n^2\in \mathbb{Z} = k$$ Then
$$ a^2+b^2= 2k$$
Is this a correct proof?/ Any better ways to prove this.
Sorry for the lousy English. Thanks.
I'm going to assume you mean $a^2 + b^2$ is divisible by $4$.
Assume $a, b$ are odd. Then $a^2 + b^2 = (2k +1)^2 + (2j+1)^2 = (4k^2 + 4k + 1) + (4j^2 + 4j + 1) = 2(2k^2 + 2j^2 + 2k + 2j + 1)$.
This is not divisible by $4$ since the highest power of $2$ is in the product is only $1$.
We have created a contradiction, so $a,b$ cannot both be odd and satisfy $a^2 + b^2$ is divisible by $4$.