Question: We want to show that if $3\nmid a,b \in \mathbb{Z} \implies a^2+b^2$ is not perfect square of an integer.
Answer: We have:
- $3\nmid a \iff a\neq3k,\ \forall k \in \mathbb{Z}$
- $3\nmid b \iff b\neq3l,\ \forall l \in \mathbb{Z}$
From this and the devision algorithm we have:
$a=3q_1+r_1,$ with $1 \leq r_1 \leq2$ for some $\ q_1,r_1\in\mathbb{Z}$
$b=3q_2+r_2,$ with $1 \leq r_2 \leq2$ for some $\ q_2,r_2\in\mathbb{Z}$
So, there are $4$ possible cases. I will do only the first, because I don't know if I work correctly: $$a=3q_1+1,\ b=3q_2+1$$
Lets assume that $a^2+b^2$ is perfect square of a random number $n$.
Then, $a^2+b^2=(3q_1+1)^2+(3q_2+1)^2=[3(q_1+q_2)]^2+6(q_1+q_2)+2=n^2$, and if $q_1+q_2=x$ we can say that:
$$(3x)^2+6x+2=n^2 \iff (3x+1)^2+1=n^2$$
My question is can we say now that we have contradiction? And why?
Thank you.