We know that each congruence has two solutions, and that if we can find one solution then the second solution is . But I don't know any algorithms I can use to solve each of the first solutions, except trial and error, which of course is far too inefficient.list all solutions of...the ten congruences where .

This is an exercise in the chapter for quadratic residues, so presumably that has something to do with it.

Any ideas would be appreciated.