Let $n$ be an odd integer not divisible by $3$. Prove that $n^2 \equiv 1 \ (\mathrm{mod}\ 24)$. We just started congruences in class so I'm a little stuck as to how to solve this.
So far, I've done: $24 \mid n^2 - 1$ and since $n$ is odd, I defined $n = 2m + 1$ for some integer $m$. Plugging that in gives me $24 \mid 4m(m+1)$, and now I'm not sure what to do with this. Where did I go wrong/any tips on how to solve this?
a\mod bgives $$a\mod b$$a\pmod bgives $$a\pmod b$$ anda\bmod bgives $$a\bmod b$$ – gen-ℤ ready to perish Oct 27 '17 at 16:06