Decide which of the following congruences are solvable, and if so, find all solutions:
a) $x^2 \equiv c \bmod 363$, where $c= 1,5,31$
b) $x^2 \equiv 54 \bmod 125$
Now, I know how to find which of those are solveable, but I have no idea how to find the solutions.
(For example b) is solvable).
Any ideas?