# Modular Arithmetic

Modular Arithmetic

This visually illustrates various properties of modular arithmetic by creating an "operation table" modulo , where 0 is represented by black, 1 by white, and other values by intermediate colors. The allowed numbers can be restricted to be nonzero or the units modulo , and the operations are modular addition, subtraction, powers, and sums of squares.

n

n