While preparig for the winter exams I am doing some old exam questions, but cannot get past the following question:
Find all $0 \le a \lt 6 \in \mathbb{Z}$ where $x \in \mathbb{Z}: x^2 \equiv \text{a (mod 6)}$
I can do some trial and error solution, but pretty sure it can be done in a more fancy manner... Any help is appreciated