🧪 Mathematics Number Theory Simulation
Interactive times-tables-mod-n simulator: N points on a ring, each k connected to (k*m) mod N. Sweep or animate the multiplier m and watch cardioids, roses and star patterns emerge, with live gcd and symmetry readouts.
This simulation turns the humble times table into a living geometric object. N points sit evenly spaced on a 3D ring; every point k is joined by a chord to the point at index k·m mod N, where m is a multiplier you control. Nudge m and the chords sweep from straight diameters through cardioid and nephroid curves into intricate rose and star patterns — the visual signature of number theory's modular arithmetic. Live readouts track gcd(N, m) and the resulting rotational symmetry, animation continuously sweeps m so the pattern never sits still, and a "Random m" button jumps to a fresh integer multiplier to explore how N and m together decide the shape.
This simulation introduces users to the fascinating world of number theory. It allows them to explore prime numbers, divisibility rules, and other fundamental concepts through interactive visualizations.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install