Read a remainder
The expression t ≡ r (mod n) means that dividing tick t by period n leaves remainder r. Each glowing marker picks one remainder.
17 ≡ 2 (mod 5)
MATHEMATICS / NUMBER THEORY / LIVE EXHIBIT
Three signals. Three repeating rhythms. One hidden meeting time. Drag the luminous markers, turn the master clock and discover why remainders unlock the answer.
The expression t ≡ r (mod n) means that dividing tick t by period n leaves remainder r. Each glowing marker picks one remainder.
17 ≡ 2 (mod 5)
Find a tick satisfying all the chosen remainder conditions. With pairwise coprime periods, the Chinese Remainder Theorem guarantees one answer per product of the periods.
t ≡ r₁ (mod n₁), …
For two periods a and b, their required phases must agree modulo gcd(a,b). If they do not, the lamps can never synchronise.
r₁ ≡ r₂ (mod gcd(a,b))
The same mathematics helps analyse repeating transport connections, cyclic machine schedules and timing protocols. Modular arithmetic is also a building block in computer science and cryptography.
The simulation uses exact integer arithmetic for discrete ticks. A signal flashes at every integer time t ≥ 0 with t mod period = phase. All signals share one perfect clock; pulses have zero duration, no jitter and no propagation delay. A signal with phase zero flashes at tick zero.
The master cycle is the least common multiple of all periods. The generalised Chinese Remainder Theorem is used for overlapping, non-coprime periods as well as coprime ones. The display is a conceptual visualisation, not a model of physical lamps or satellite orbital dynamics.