See http://en.wikipedia.org/wiki/Modular_arithmetic for a comprehensive discussion. Especially the paragraph title Remainders.
Often people ask "what's the practical use of modular arithmetic?" Consider how we tell time... -- Bob Gailer 510-978-4454 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor