Problem: Given: q is an odd squared number - show that: $q\equiv_8 1$
My assumption: $\forall q\in N:\exists a \in Z: a =1\pmod{2}$ and $a^2=q$.
Then I tried to show that it's only true satisfyingly if $\mathrm{gcd}(q,8)\mid 1 \leftrightarrow x\cdot q+y\cdot 8=1$.
But I don't know how to show that it is true for all numbers $q$.
All hints are welcome.