# A 3D View of Modular Arithmetic

A 3D View of Modular Arithmetic

Numbered spheres are placed around a pair of disks, one above the other. You can choose the number of spheres at the top, called the modulus, and the number of spheres at the bottom. In this representation, the integers from 0 to are joined by arrows to their values mod .

m

n

n-1

m