Wessen Getachew · 2026 · wessengetachew.github.io/MODZ/
For each M ≥ 1, place every integer r with gcd(r,M)=1 at angle θ = 2πr/M on a circle of radius ρ(M):
where α is the global rotation and δ is the per-ring twist (cumulative: ring M rotates by (M−1)×δ total).
| Scale | ρ(M) | Effect |
|---|---|---|
| Linear | M·s | Default |
| Square root | √M·s | Equalizes arc density |
| Logarithmic | log(M)/log(M_max)·R | More space for inner rings |
| Quadratic | (M/M_max)²·R | Inner rings compressed |
| Unit circle | R (constant) | All rings on one circle |
| Arrangement | Placement | What it reveals |
|---|---|---|
| Concentric | radius = ρ(M) | Nested rings; prime spiral curves inward |
| Fermat | radius = √M·s | Equal visual density |
| Farey | x = r/M, y = 1/M | Farey sequence structure; Ford circles |
| Strip | column = M, row = θ | Periodic structure across rings |
→ Canvas: Load §2 Euler preset to see M=6 highlighted with its two coprime points.
A residue r on ring M lifts to ring M+1 when:
Green line segments connect (M,r) to (M+1,r) when this holds. Red ✗ marks when blocked.
Why this factorizes: For each prime p and large M, the conditions p∤r and p∤(M+1) are asymptotically independent relative to p∤M — since M and M+1 share no prime factors, knowing p∤M gives no information about p∤(M+1). The conditional probability that a coprime residue r also satisfies gcd(r,M+1)=1 is (p²−2)/(p²−1) per prime. The product over all primes gives C by the Chinese Remainder Theorem applied ring-by-ring.
→ Canvas: §6 ζ·d_FT preset shows the status bar converging to C as M grows.
| Mode | Formula / Rule |
|---|---|
| **New r** (default) | h = (r × 137.508°) mod 360 (golden angle hash) |
| **Sector 1/n** | k = min{k : r/M ≤ 1/k}; hue by sector k; n slider 2–24 |
| **Angle θ** | hue = (r/M) × 300° |
| **Lift ✓/✗** | teal if gcd(r,M+1)=1, red otherwise |
| **Lift survival rate** | ring M colored by T(M)/φ(M); teal above C, orange below |
| **Parity** | 4 colors: (r mod 2, M mod 2) ∈ {(0,0),(0,1),(1,0),(1,1)} |
| **Quadratic residue** | teal if ∃x: x²≡r (mod M) |
| **r mod 6** | 6 colors; all primes >3 are ≡1 or 5 mod 6 |
| **r is prime** | teal if r is prime |
| **Prime ring M** | teal if M is prime |
| **φ(M)/M density** | brightness ∝ φ(M)/M |
| **Divisor count Ω(M)** | hue by Ω(M) = Σ v_p(M) |
| **Modular entropy** | ΔS_M = −Σ (e_i/Ω) ln(e_i/Ω) for M = ∏p_i^{e_i} |
| **Primorial rings** | amber if M ∈ {2,6,30,210,2310,…} |
| **Mersenne rings** | violet if M = 2^n − 1 |
| **Prime gap class** | for prime M: hue by (next_prime(M) − M) |
| **Top / Bottom ½** | teal if r/M > ½, orange if r/M < ½ |
| **Monochrome** | neutral gray — publication-ready |
For prime p, trace r=p across all M where gcd(p,M)=1. In polar coordinates:
§8.1 Equator Gap at M = 2p
§8.4 Upper Path r = (M+1)/2 — always blocked
§8.5 Lower Path r = (M−1)/2 — alternating
For p < M < 2p, the mirror residue is M−p. Since:
→ Canvas: §8.2 Mirror preset shows the mirror path in gold.
For rings where M and n share parity, two residues lie exactly n/2 above and below the equator:
Lift conditions:
→ Canvas: §8.3 Path preset loads n=1 with showLeftPath enabled.
A ray from the origin at angle 2π·(a/b) hits ring M at the nearest coprime residue:
Neighbors ±n: The n-th neighbors of the ray point:
Both are checked for coprimality to M before drawing.
Animation: The Neighbor n animation in the Play tab steps n from 1 to M_max, showing how the neighborhood of the ray expands ring by ring as n grows.
Dynamic n range: The ±n slider automatically extends to match M_max so you can explore neighbors up to half the ring width.
→ Canvas: Set channel 2/3, show ray, observe the rayFormula panel update live.
Modular Lifting Rings — Coprime Residue Geometry
The main ring system re-expressed with deeper mathematical framing. Each point (M,r) traces a hyperbolic spiral satisfying ρθ = 2πr·scale = constant — the arc length swept by residue r is invariant across all rings. The visualization runs its own independent render loop with a wider set of color modes and trajectory overlays.
Key geometry shown:
Color modes unique to MLR Viz:
Key theorems displayed: Prime-Crossing (r=p traces ρθ=2πp), Mersenne Halving, Lift Count Formula T(M) = φ(M) − |blocked|, and the ζ(2) gap class factorization ζ(2) = ∏_g P_g shown as converging partial products.
Rational Unit Circle Structure
The Farey sequence F_N embedded on the unit circle — each rational r/m at angle 2πr/m on ring m. Blue points are coprime (gcd(r,m)=1); gray are non-coprime. Cross-mod connections trace each residue r through rings N→1, showing the Farey channel it cuts through the modular structure.
Display modes: Circle + Rectangle (dual view), Rectangle only (Farey plot x=r/m, y=1/m), Circle only, gcd=1 vs gcd>1, coloring by 1/gcd(r,N) or φ(r)/r. Gap overlay: marks prime pairs (p, p+g) as chords on the outer ring — short chords for twin primes, longer for cousin/sexy primes.
Ring scale options: linear, √m, log m, quadratic, unit circle — all affecting which Farey fractions appear at which radii. Snap-to-half projects all points to the equator, revealing the 1/2-symmetry of F_N.
Gap-Class Decomposition of ζ(2) = π²/6
Two diagrams run in parallel: the modular ring visualization on the left, and ζ(2) convergence by prime gap class on the right. The central identity:
What you see: Gap class 2 (twin primes) dominates because p²/(p²−1) decays slowest for small p. The partial products P_g(X) converge as X grows — but convergence to a finite limit requires infinitely many primes with gap g (unproven for all g, including g=2). The gap chord overlay on the ring diagram marks prime pairs (p, p+g) as arcs, connecting the geometry to the arithmetic.
| Gap g | Name | Example pairs | Status |
|---|---|---|---|
| 2 | Twin primes | (3,5),(5,7),(11,13) | Conjectured infinite |
| 4 | Cousin primes | (7,11),(13,17) | Conjectured infinite |
| 6 | Sexy primes | (5,11),(7,13) | Conjectured infinite |
Farey Sequence Interval Analysis — Exploration Platform
Explores the summatory function F(N) = Σ r/m over all Farey fractions up to order N, and its deviation from the theoretical mean — a quantity directly connected to the Riemann Hypothesis through the Franel–Landau theorem.
Three tools in one:
Also includes waveform visualization: the coprime distribution on each ring treated as a periodic function and decomposed into harmonic bases (sine, triangle, square, sawtooth).
Modular Reduction Projection Research Portal
Visualizes the arithmetic structure of ℤ/Mℤ for any M — the multiplicative group (ℤ/Mℤ)× and its complement. Blue dots are coprime residues (the group); orange/red are zero divisors. Arrows project each non-coprime residue down to its reduced ring.
Multi-modulus mode: show several M values side by side or overlaid to compare coprime density φ(M)/M across different factorization structures. Farey channel breakdown: bar chart of how coprime residues distribute across Farey sectors S_n — uniform for prime M, uneven for highly composite M.
Key statistics shown per ring: φ(M), φ(M)/M density, Ω(M) total prime factors, ω(M) distinct prime factors, σ(M) sum of divisors, τ(M) divisor count, ΔS_M = −ln(φ(M)/M) modular entropy.
3D Farey Divisor Lattice: coprime residues (gcd=1) form the Stern–Brocot surface at z=1; non-coprime residues rise proportional to their gcd value. x=r/M, y=1/M (Farey height), z=gcd(r,M).
| Mode | Resolution | Contents |
|---|---|---|
| Canvas only | 3840×2400 (4K) or 7680×4800 (8K) | Title + ring view + footer |
| Canvas + Legend | 3840×2400 or 7680×4800 | Ring view + parameter legend panel |
| Portrait share | 2160×3840 | Vertical layout |
Labels export at 3× font scale. Live preview in dialog before download.
| Parameter | Default | Controls |
|---|---|---|
| M min / M max | 1 / 128 | Ring range |
| Ring scale | Linear | ρ(M): linear/√M/log M/M²/unit circle |
| Global rotation α | 0° | Rotates all rings; entered as a/b × 360° |
| Ring rot δ | 0 | Cumulative per-ring twist: ring M rotates by (M−1)×δ |
| Point size | 2 px | Dot radius |
| Path point size | 2 px | Path system dot radius |
| Lift line width | 1 px | Green lift segment thickness |
| Chain n | 0 (off) | Require n consecutive lifts |
| n offset | 1 | The n in (M±n)/2 paths |
| Ray a/b | 1/2 | Angle of ray path |
| Ray ±n | 1 | Neighbor distance from ray; max = M_max |
| Sector n | 6 | Number of Farey sectors in sector color mode |
| Label max M | 20 | Show labels for M ≤ this |
| Snap to circle | off | Force all points to exact ring radius |
C and OEIS: C = ζ(2)·d_FT = ∏_p(p²−2)/(p²−1) ≈ 0.530711806246. Both component constants are in OEIS: ζ(2) = A013661, d_FT = A065469. C is the conditional probability P(gcd(r,M+1)=1 | gcd(r,M)=1) for a random coprime pair (r,M). The lift survival framing in modular ring geometry is the geometric contribution of this work.
Gap decomposition caveat: ζ(2) = ∏_g P_g is valid since it partitions the Euler product. However P_g(X) → finite limit only if infinitely many primes have gap g — unproven for all g, including g=2 (twin prime conjecture). The tool shows empirical partial products; not a proof.
Franel–Landau: The envelope log N/(2π√N) shown alongside Δ(N) is a visual heuristic, not a rigorous bound. The tool does not claim to test RH.
Cumulative δ: Ring M rotates by (M−1)×δ total — a linear function of M, not an independent per-ring offset.
Floating-point: All computation in IEEE 754 double precision. For M_max ≤ 2000 (the UI maximum), precision is fully reliable. Beyond this, θ = 2πr/M may suffer catastrophic cancellation when r ≈ M — the visualization may lose positional accuracy, but the logical structure of the lift condition and C remain sound.
Golden angle hash: Color mode "New r" uses h = (r × 137.508°) mod 360 — the golden angle ≈ 360°/φ², a standard low-discrepancy sequence for hue generation.
References: Feller & Tornier (1932), Franel (1924), Landau (1924), Ireland & Rosen Ch. 16, OEIS A065469 (d_FT), OEIS A013661 (ζ(2)).
wessengetachew.github.io/MODZ/ · Wessen Getachew · 2026