Prove that for all $n∈ \mathbb N$, if $n^2=4q+r$ for $q,r ∈ \mathbb Z$ with $0≤r<4$, then $r = 0$ or $r = 1$.
The only way I can think is prove that $4|n^2$ or $4|n^2-1$ is true by induction. However it seems not a good idea by this way. Can anyone help?