I have these problems assigned for homework, I was able to get through the rest of the homework fine but I'm stuck on these two. Prove that
- If $n\equiv 6\pmod9$, then $n$ cannot be a sum of two integer squares.
- If $n\in\mathbb{N}$ is not the sum of two integer squares, then it is not the sum of two rational squares.
I've been trying to use these theorems from class but I haven't gotten far:
Theorem 8.2: For $p$ an odd prime, there exists $a\in\mathbb{N}$ so $a^2\equiv -1\pmod{p}$.
Theorem 8.3: For $p$ an odd prime, there exist $a,b\in\mathbb{N}$ so $p=a^2+b^2\iff p\equiv 1\pmod4$.
Theorem 8.4: $n\in\mathbb{N}$ is a sum of two squares in $\mathbb{Z}\iff$ every prime divisor $p$ of $n$ with $p\equiv 3\pmod4$ occurs an even number of times in the prime factorization of $n$.
For the first problem we know that $(\forall (a,b) \in \mathbb{N}^2)\ a + b = c$ where $c \in \mathbb{N}$.
So $(a + b)^2 = c^2$.
Then take $n$ and $m$ which are natural numbers, so is $n \equiv m \pmod 9$ so $ m \in \{0;1;2;3;4;5;6;7;8\}$ and because $n^2 \equiv m^2 \pmod 9$ we get that $m^2 \in \{0;1;4;7\}$.
So we remark that $n^2 \not\equiv 6 \pmod 9$ and if we change n to c we get that $c^2 \not\equiv 6 \pmod 9 \iff (a+b)^2 \not\equiv 6 \pmod 9$. $\square$
And we're done !
PS: We can said that if $n \equiv 6 \pmod 9$ so, $n$ cannot be the sum of integers squares.