MODULAR ARITHMETIC VISUALIZER

MODULUS

TABLE TYPE

CIRCLE VIEW

GROUP PROPERTIES

Cayley table: color by residue.
Circle: draw lines a→ka (mod n)
— creates multiplication patterns.

Quadratic residues (QR): integers
that are perfect squares mod n.
QR law: Legendre symbol (a/p).

Primitive root g: g generates
all of (Z/nZ)* if ord(g)=φ(n).
Exists iff n=1,2,4,pᵏ, or 2pᵏ.