Show that if $n\equiv 3, 6 \pmod9 $ then $n$ is not a sum of two squares.
I started by: Assume $n=a^2+b^2$ a sum of two squares. Then $a^2,b^2\equiv 0,1,4,7 \pmod9$, and no combination these numbers can yield $3$ or $6$ so that $a^2+b^2\equiv 3,6 \pmod9$.
But then I would need to show the first result, but I don't know any results (and shouldn't need to apply) results for quadratic residues modulo a composite number. Otherwise, maybe I need to use the result that $n$ is a sum of two squares if $n \not\equiv 3\pmod4$.
$2$ is not a square mod $3$, so the only way for $0 = n = a^2 + b^2$ to be true mod $3$ is if $a,b$ are both $0$.
But then $a^2$ and $b^2$ are both $0$ mod $9$ since $3$ appears as a factor an even number of times. So $n$ must be $0$ mod $9$.