Compute a mod n — the remainder when a is divided by n.
Remix "Modular Arithmetic" into your own editable copy. Tweak it, share it, make it yours.