Modular Arithmetic

Compute a mod n — the remainder when a is divided by n.