There is a nice reference for the solving of quadratic congruences at http://www.johndcook.com/quadratic_congruences.html . Just noting this here since it is pertinent to this thread.
-- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.