THE MODULAR CYCLE LABORATORY

ORBIT LOOM.

Give a number circle one rule. Watch it weave an astonishing pattern. Then discover why every journey repeats.

01 / DRAG02 / INVESTIGATE03 / SOLVE
LIVE ORBIT VIEWER

The number circle

EXACT MODEL
start drag stride drag target drag
Interactive modular arithmetic orbitNumbers arranged around a circle. Straight chords join each station to the next station in its modular cycle. Three draggable and keyboard-controllable handles set the starting station, stride and target flag.
GREATEST COMMON DIVISOR1gcd(n, k)
STATIONS PER CYCLE12n ÷ gcd(n, k)
SEPARATE CYCLES1complete partition
FLAG REACHABILITY—shortest jump path
FOLLOW THE JUMP
Jump 00Standing at station 0
02 EXPLORE THE PATTERN

A signature for every stride.

CLICK ANY BAR

For this ring size, the graph shows how many unique stations each possible jump visits. Click a bar to change your experiment.

Selected stride Other stridesHeight = stations visited before repeating
03 SCIENTIFIC NOTEBOOK

The journey log.

One complete start orbit, written as a sequence. Each station occurs once until you return home.

ORBIT COVERAGE100%
12 out of 12 stations in this cycle
04 / THE LEARNING CHALLENGE

Can you crack the cycle?

Ten procedurally generated investigations, from first predictions to live construction challenges. Every answer is checked against the actual mathematical model.

LAB SCORE0/ 1000 of 10 solved
MISSION 01 / 10BEGINNERCALCULATION

How long until it repeats?

SESSION SEED—
THE SCIENCE BEHIND THE LOOM

Why the pattern always repeats.

01 / OBJECTIVE

Learn modular arithmetic

Numbers “wrap around” after reaching n, just like hours on a clock. If there are 12 stations, 9 + 5 = 14 becomes station 2 because 14 mod 12 = 2.

02 / OBJECTIVE

Predict a complete orbit

After j jumps of length k from station s, the position is (s + jk) mod n. The shortest repeating period is n / gcd(n, k).

03 / OBJECTIVE

Discover hidden cycles

Every station belongs to exactly one cycle. There are gcd(n, k) equal-sized cycles. A jump reaches every station precisely when gcd(n, k) = 1.

Where is this used?

Clock arithmetic, cyclic timetables, rotating shift patterns, ring networks, repeating textile designs and introductory cryptography all use the same mathematical idea.

What are the assumptions?

Stations are equally spaced, numbered from 0 to n−1. Every jump adds exactly the same whole number; nothing changes the rule between jumps. The connecting chords illustrate number relationships, not physical travel or distance.

Made with 🤖 ChatGPT