Möbius Shell Sieve: Interactive Number Theory Platform

"The integers are the perfect balance between chaos and order." — Paul Erdős

PayPal

Geometric Möbius Shell Sieve for Primitive Lattice Points

Introduction

The problem of counting primitive lattice points (points with gcd = 1) in a scaled convex body is fundamental in analytic number theory. This platform presents the Geometric Möbius Shell Sieve—a dimension-universal approach that reveals the sieve mechanism geometrically through multi-scale decomposition.

Main Theorem

N_K(R) = [Vol(K) / ζ(n)] · R^n + O(R^(n-1))

For n ≥ 3 and K a bounded convex body with piecewise C¹ boundary:

  • N_K(R): Count of primitive lattice points in RK
  • Vol(K): Volume of the convex body K
  • ζ(n): Riemann zeta function at n
  • R^n: Scaling factor (volume order)
  • O(R^(n-1)): Error term (surface area order)

Möbius Decomposition

N_K(R) = Σ_{k=1}^∞ μ(k) · L_K(R/k)

The core identity uses inclusion-exclusion via the Möbius function:

  • μ(k) provides alternating signs for sieve layers
  • L_K(r) counts all lattice points in ball of radius r
  • Each divisor k defines a shell at scale R/k
  • Möbius signs cancel non-primitive contributions exactly (in volume)

Volume Contribution (Exact)

Σ_{k=1}^∞ μ(k) · Vol(K_{R/k}) = [Vol(K) / ζ(n)] · R^n

This remarkable identity follows from the Dirichlet series: Σ μ(k)/k^n = 1/ζ(n).

Primitive Density: 1/ζ(n)

P_n = 1 / ζ(n) = probability that random n-tuple is primitive
  • n=2 (pairs): 1/ζ(2) = 0.6079271018540266 (60.79271019% of integer pairs coprime)
  • n=3 (triples): 1/ζ(3) = 0.8319073725807075 (83.19073726% coprime)
  • n=4: 1/ζ(4) = 0.9239393750608806 (92.39393751% coprime)
  • n=5: 1/ζ(5) ≈ 0.96449 (≈96% coprime)
  • n=6: 1/ζ(6) ≈ 0.98296 (≈98% coprime)
  • n=7: 1/ζ(7) ≈ 0.99171 (≈99% coprime)

Error Term Analysis

|Error| = O(R^(n-1))

The error arises entirely from lattice points clustered near boundaries. As dimension increases, error becomes negligible for large R.

Key Insights

  • ζ(n)^(-1) Density: The inverse zeta function emerges as the natural density of primitive integers.
  • Shape Independence: The leading term depends only on Vol(K) and ζ(n), not boundary details.
  • Multi-Scale Sieve: The Möbius inversion acts as a geometric filter.
  • Dimension Universal: The formula holds for all dimensions n ≥ 3.
  • GCD Multiplication Table: The 2D lattice within a circle is fundamentally a bounded GCD multiplication table. Each point (x,y) represents an entry where gcd(x,y) determines the "cell value". The primitive points (GCD=1) correspond to coprime pairs—the units in the multiplicative structure.
  • Four-Quadrant Symmetry: The lattice exhibits 4-fold rotational symmetry, mirroring the structure of modular arithmetic tables when viewed as rings.

Möbius Function μ(n)

  • μ(1) = 1 (base case)
  • μ(n) = 0 if n has a squared prime factor
  • μ(n) = (-1)^k if n is product of k distinct primes

Examples: μ(2) = -1, μ(3) = -1, μ(4) = 0, μ(6) = 1, μ(30) = -1

Connections to Deep Mathematics

  • Diophantine Approximation: Farey sequences and continued fractions
  • Analytic Number Theory: Dirichlet series and Euler products
  • Geometry of Numbers: Minkowski's theory of lattices
  • Harmonic Analysis: Fourier analysis on lattices

Core Theorems of Number Theory

Basel Problem — Euler (1734)
ζ(2) = 1 + 1/4 + 1/9 + ... = π²/6
First exact value of ζ(n), solved 90-year-old problem. The density of coprime pairs is 6/π² ≈ 60.79%.
Euler Product — Euler (1737)
ζ(s) = Σ n⁻ˢ = ∏_p (1 - p⁻ˢ)⁻¹
Fundamental bridge between additive (sums) and multiplicative (primes) structure.
Möbius Inversion (1832)
g(n) = Σ_{d|n} f(d) ⟺ f(n) = Σ_{d|n} μ(d)g(n/d)
The sieve's backbone — invert any divisor sum using μ(n).
Dirichlet's Theorem (1837)
π(x;q,a) ~ x/(φ(q)·ln x) for gcd(a,q)=1
Infinitely many primes in every coprime residue class. Birth of L-functions.
Riemann Hypothesis (1859)
ζ(s) = 0, s nontrivial ⟹ Re(s) = ½
Millennium Prize Problem. Implies |M(n)| = O(n^½⁺ᵋ) and optimal π(x) error bounds.
Prime Number Theorem (1896)
π(x) ~ x/ln(x) ~ Li(x)
Hadamard & de la Vallée Poussin proved primes have density 1/ln(x).
Brun's Theorem (1915)
B₂ = Σ(1/p + 1/(p+2)) ≈ 1.902
Twin prime reciprocals converge (unlike all primes). Brun sieve methodology.
Hardy-Littlewood Conjecture (~1923)
π₂(x) ~ 2C₂ · x/(ln x)²
Predicts twin prime density using constant C₂ ≈ 0.6601618158.
Wessen Identity (2025)
R_H(p_max) = (1/2k) × C_H(p_max) × [M(p_max)]2k-1
Exact finite identity connecting modular sieve density to Hardy-Littlewood constants. Verified via BigInt.

Riemann Zeta Reference Values

nζ(n)1/ζ(n)Closed FormInterpretation
21.64493406680.6079271019π²/660.79% of integer pairs are coprime
31.20205690320.8319073726Apéry's constant83.19% of integer triples are coprime
41.08232323370.9239393751π⁴/9092.39% of 4-tuples are coprime
61.01734306200.9829525700π⁶/94598.30% of 6-tuples are coprime
Explore 67 Interactive Tools in the Tools Tab
Full documentation, academic references, and credits available in the Reference tab
UNIQUE/ORIGINAL ZETA/L-FUNCTIONS PRIME STRUCTURE ARITHMETIC COPRIMALITY ALGEBRAIC SPECIAL NUMBERS VISUAL/SPIRALS

ℤ² Lattice Explorer

Primitive Lattice Points — A point (x,y) ∈ ℤ² is primitive (visible from origin) iff gcd(x,y)=1. The density of primitive points converges to 6/π² = 1/ζ(2) ≈ 0.6079 (Euler's Basel problem). This tab visualizes the lattice with 15+ color schemes, Smith chart transform, and modular overlays.

1x
8px
90°

2D Lattice Points Visualization (Click any point for details)

Live Statistics Dashboard

2D Lattice & Basel Problem Theory

P(gcd(x,y) = 1) = 6/π² = 1/ζ(2) = 0.6079271018540266
Basel Problem: ζ(2) = Σ1/n² = π²/6 = 1.6449340668482264 (Euler, 1734)
Euler Product: ζ(2) = Π(1-p⁻²)⁻¹ over all primes p
Visible Points: Point (x,y) visible from origin iff gcd(x,y)=1
Asymptotic: #{primitive in B_R} ~ πR²/ζ(2) as R→∞
Worked Examples:
• gcd(3,5)=1 → primitive (visible)
• gcd(4,6)=2 → not primitive
• gcd(7,11)=1 → primitive
• gcd(12,18)=6 → not primitive
Quick Presets:

3D Lattice Ball — Apéry's Constant 1/ζ(3)

In three dimensions, primitive lattice point density approaches 1/ζ(3) ≈ 0.832, where ζ(3) is Apéry's constant (proved irrational in 1978). The 3D visualization shows points (x,y,z) with gcd(x,y,z)=1 inside a ball. Drag to rotate. Higher dimensions follow the pattern 1/ζ(k) for k-dimensional balls.

°
°
°
1x
.12
11px
90°

3D Ball Visualization (Drag to rotate | Scroll to zoom | Right-click to pan)

Live Statistics Dashboard

3D Lattice & Apéry's Constant Theory

P(gcd(x,y,z) = 1) = 1/ζ(3) = 0.8319073725807075
Apéry's Constant: ζ(3) = Σ1/n³ = 1.2020569031595943 (proved irrational 1978)
Euler Product: ζ(3) = Π(1-p⁻³)⁻¹ over all primes
Ball Volume: V₃ = (4/3)πR³
Asymptotic: #{primitive in B_R} ~ (4/3)πR³/ζ(3)
Worked Examples:
• gcd(2,3,5)=1 → primitive
• gcd(4,6,8)=2 → not primitive
• gcd(1,1,1)=1 → primitive
• gcd(6,9,12)=3 → not primitive
Quick Presets:

Controls: Left-drag to rotate | Scroll to zoom | Right-drag to pan | Inverted flips inner↔outer

Möbius Function μ(n) — The Sieve's Heart

The Möbius function μ(n) equals (-1)^k if n is squarefree with k distinct prime factors, and 0 otherwise. It's the multiplicative inverse of the constant function 1 under Dirichlet convolution. The Mertens function M(x) = Σμ(n) for n≤x satisfies |M(x)| = O(x^{1/2+ε}) if and only if the Riemann Hypothesis is true.

Core identity: Σ_{d|n} μ(d) = [n=1] — The foundation of inclusion-exclusion

Möbius Function μ(n) — The Heart of the Sieve

μ(n) = (-1)^k if n = p₁p₂...pₖ (k distinct primes), 0 if n has squared factor

Live Statistics

Distribution

Mertens Function M(x)

Squarefree Density

Möbius Data Table (Click rows for details)

nμ(n)M(n)FactorizationSquarefree

Möbius Function Theory

μ(n) = (-1)^k if n = p₁p₂...pₖ distinct primes, else 0  |  Σ_{d|n} μ(d) = [n=1]
Möbius Inversion: If g(n) = Σ_{d|n} f(d), then f(n) = Σ_{d|n} μ(d)g(n/d)
Euler Product: 1/ζ(s) = Σ μ(n)/nˢ = Π(1 - p⁻ˢ)
Totient: φ(n) = n · Σ_{d|n} μ(d)/d
Mertens: |M(x)| = O(x^½⁺ᵋ) equivalent to RH
Examples:
μ(1) = 1
μ(2) = -1
μ(6) = 1
μ(4) = 0
μ(30) = -1
μ(12) = 0
μ(105) = -1
μ(210) = 1

Cayley Transform — Unit Disk 𝔻 ↔ Upper Half-Plane ℍ

The Cayley transform w = i(1+z)/(1-z) maps the unit disk to the upper half-plane. Farey points at angles 2π(p/q) on the circle map to rationals p/q on ℝ. Ford circles at rationals transform to horocycles. Per-ring rotation reveals modular tower structure.

Unit Disk 𝔻 & Upper Half-Plane ℍ

Farey points at angle 2π(p/q) on |z|=1 map to p/q on ℝ via Cayley transform

Live Statistics

Farey Distribution

Mathematical Background

w = i(1+z)/(1-z) maps 𝔻 → ℍ | Farey: 2π(p/q) → p/q | ds² = (dx² + dy²)/y²
Unit Disk: Farey point p/q at angle θ = 2π(p/q) on |z|=1. z = e^{iθ}
Cayley Transform: z=i → w=∞, z=-1 → w=0, z=1 → w=∞
Ford Circles: C(p/q) center (p/q, 1/2q²), radius 1/2q²
Geodesics: Semicircles ⊥ to ℝ in ℍ, circular arcs through boundary in 𝔻
Per-Ring Rotation: Ring q rotates by (q-1) × Δθ, revealing lift structure
Farey Neighbors: p/q, r/s neighbors iff |ps-qr|=1

Möbius Exponential Sum — S(N,α) = Σ μ(n) e2πinα

The Möbius exponential sum measures how μ(n) interacts with oscillatory terms. The Riemann Hypothesis predicts |S(N,α)| = O(√N). Large deviations suggest deep arithmetic structures.

Möbius Exponential Sum |S(N,α)|

Live Statistics

Major Arc Resonances |S(N,a/q)|

Distribution Histogram

Möbius Function Distribution

μ(n) = +1
μ(n) = -1
μ(n) = 0

Square-free density → 6/π² ≈ 60.79% as N → ∞

Theory: Möbius Exponential Sums & RH

S(N,α) = Σn≤N μ(n) e2πinα  |  RH ⟹ |S(N,α)| = O(N1/2+ε)
Major Arcs: When α = a/q (reduced fraction), the sum often achieves large values due to arithmetic resonance with the periodic structure.
√N Bound: RH predicts |S(N,α)| = O(√N log²N). Ratios 1-4 are normal due to resonance. All bounded ratios are RH-consistent.
Hardy-Littlewood: Developed the circle method using major/minor arc decomposition to study exponential sums.
Vinogradov: Proved bounds on trigonometric sums with primes, connected to Goldbach and twin primes.

Primitive Roots — Generators of (ℤ/nℤ)×

A primitive root mod n is a generator of the multiplicative group (ℤ/nℤ)×. Exists iff n ∈ {1,2,4,p^k,2p^k} for odd prime p. The discrete logarithm problem — finding k where g^k ≡ a — is computationally hard, forming the basis of Diffie-Hellman cryptography.

Cyclic Group (ℤ/Mℤ)×

g is a primitive root ⟺ ord(g) = φ(M) ⟺ ⟨g⟩ = (ℤ/Mℤ)×

Live Statistics

Order Distribution

Power Sequence gⁿ mod M

Element Table (Click rows)

kord(k)Unit?Prim Root?QR?Disc Log

Primitive Root Theory

Definition: g is primitive root mod M ⟺ ord(g) = φ(M)
Existence: Prim roots exist for M = 1,2,4,pᵏ,2pᵏ (p odd prime)
Count: If exists, exactly φ(φ(M)) primitive roots
Discrete Log: If g prim root, every unit k = gⁱ for unique i
Examples:
• 3 is prim root mod 7
• 2 is prim root mod 5
• No prim root mod 8
• 2 is prim root mod 11

Farey Sequences — Ordered Rationals

The Farey sequence F_n contains all reduced fractions p/q with 0 ≤ p/q ≤ 1 and q ≤ n, in order. Adjacent fractions a/b, c/d satisfy |ad-bc|=1 (mediant property). |F_n| ~ 3n²/π². Farey sequences connect to Ford circles, continued fractions, and the Riemann Hypothesis.

/

Farey Sequence F8

F_Q = {p/q : 0≤p≤q≤Q, gcd(p,q)=1} ordered by value. Neighbors satisfy |ps-qr|=1.

Live Statistics

|F_Q| Growth

Denominator Distribution

Farey Sequence Table (Click rows)

Indexp/qValueLevelLeft NeighborRight Neighbor

Farey Sequence Theory

|F_Q| = 1 + Σ_{k=1}^Q φ(k) ≈ 3Q²/π²  |  Neighbors: |ps - qr| = 1
Definition: F_Q = {p/q : 0≤p≤q≤Q, gcd(p,q)=1}
Mediant: Between p/q, r/s insert (p+r)/(q+s)
Ford Circles: C(p/q) center (p/q, 1/2q²), radius 1/2q²
Tangency: C(p/q), C(r/s) tangent iff neighbors
Examples (F₅):
0/1, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1/1  (|F₅|=11)
Quick Presets:

Enhanced Modular Lifting Rings

Interactive ring visualization with gap analysis, power families (a^b), lift dynamics, Smith Chart transform, and Multiplication Table showing ring structure of Z/mZ. Explore units, zero divisors, idempotents, and Cayley tables.

×
°
From 1/ to 1/ (120° – 180°)
Sector: 1/3 → 1/2 (120° – 180°)
Points: 0 Coprime: 0 Width: 60°
Root (Mediant): 2/5 @ 144°
Est. Count ≈ 3N²/π²n(n+1): ~9550
°
to

Enhanced Modular Lifting Rings: θ = 2πr/M

2D Rings: Concentric rings showing residue classes mod M. Gold points = coprime residues (GCD=1). Each ring represents a modulus from min to max. Colored arcs connect residue pairs differing by selected gaps. Per-ring rotation reveals modular tower structure.

Live Statistics

Farey Neighbors in Sector (|ad-bc|=1)

Loading...

Stern-Brocot Tree (Sector)

Tree depth: 0 | Nodes: 0

Enhanced Lifting Rings Theory

θ = 2πr/M  |  Gap g: r₂ - r₁ ≡ g (mod M) with gcd(r₁,M) = gcd(r₂,M) = 1

Gap analysis reveals prime pair patterns: Gap 2 (Twin Primes), Gap 4 (Cousin Primes), Gap 6 (Sexy Primes). Coprime residue classes that differ by gap g correspond to admissible prime pair patterns. The φ(M) coprime classes form (ℤ/Mℤ)×, with structure revealed by direct lifts between moduli.

Multiplication Table — Ring Structure of Z/mZ (click to expand)
The Ring Z/mZ

For any positive integer m, the set Z/mZ = {0, 1, 2, ..., m-1} forms a commutative ring under addition and multiplication modulo m. The multiplication table visualizes this complete structure.

Units
Elements a where gcd(a,m)=1
Have multiplicative inverses
Count = φ(m)
Zero Divisors
Non-zero a where ab≡0 (mod m)
for some non-zero b
Count = m - φ(m) - 1
Idempotents
Elements where a²≡a (mod m)
Always include {0, 1}
Count = 2^ω(m)
Nilpotents
Elements where a^n≡0
Only exist when m has
repeated prime factors
Table Types
  • Multiplication (axb mod m): Full m×m table showing ring structure
  • Cayley Table (Units): Restricted to φ(m) invertible elements — the group (Z/mZ)×
  • Addition (a+b mod m): Always forms cyclic group of order m
Color Schemes
  • Rainbow: hue = (value/m) × 360° — reveals periodic patterns
  • Divisibility: Intensity by divisor count — darker = fewer divisors
  • Zero Divisors: Blue=units, Red=zero divisors, Gray=zero
  • Idempotents: Gold=idempotent elements, Gray=others
Element Inspector

Enter any element to analyze:

  • Units: Order (smallest k where a^k≡1), inverse, powers, generated subgroup
  • Non-units: Zero divisor pairs, nilpotent detection (a^n≡0)
  • Primitive roots: Units with order=φ(m) that generate all units
Prime vs Composite Moduli
Prime m (Field)
  • Only 0 gives 0 products
  • Every row is a permutation
  • All non-zero elements are units
  • Exactly 2 idempotents: {0,1}
Composite m (Ring)
  • Multiple zero divisor products
  • Some rows have gaps/repeats
  • Has non-invertible elements
  • 2^ω(m) idempotents
Mathematical Presets
m=6 (Basel) m=12 (φ=4) m=17 (Prime Field) m=30 (Primorial) m=60 (Highly Composite) m=31 (Mersenne Prime)
Author: Wessen Getachew | GitHub | @7dview

Modular Prime Sieve — Dirichlet's Theorem

Primes are equidistributed among coprime residue classes mod M. Watch the distribution evolve as N grows — confirming Dirichlet's theorem that each class gets ~π(N)/φ(M) primes!

UNIQUE TOOL: Animated prime distribution across coprime residue classes on the unit circle

Unit Circle: Coprime Residues at e^(2πir/M)

Each coprime residue r (gcd(r,M)=1) is a point at angle 2πr/M. Size/color shows prime count in that class.

Prime Distribution by Residue Class

Bar chart showing prime count per coprime residue class. Dashed line = expected π(N)/φ(M).

Dirichlet's Theorem on Primes in Arithmetic Progressions

π(N; M, r) ~ π(N)/φ(M) as N → ∞  |  for all r with gcd(r, M) = 1

Every coprime residue class mod M contains infinitely many primes, and they are equidistributed: each class gets approximately the same share. The animation shows this convergence in real-time!

3D Farey Divisor Lattice

Hierarchical structure of modular reduction in ℤ/Mℤ. Divisors of M form a partially ordered set (lattice) under divisibility, visualized as vertical layers. Farey chains connect residues to their canonical representatives.

3D Farey Divisor Lattice: M = 30

Vertical levels represent divisor rings. Farey chains (gold lines) connect reducible residues to their reduced forms on inner layers.

Lattice Statistics

Divisor Lattice Structure

The divisors of M form a partially ordered set (poset) under divisibility. This structure is visualized as a 3D lattice where each horizontal layer represents a quotient ring ℤ/M'ℤ for each divisor M' of M. The Farey chains (gold lines) connect each reducible residue r on the outer ring to its canonical representative r' = r/gcd(r,M) on the inner ring M' = M/gcd(r,M).

Key Properties:
Lattice Levels: τ(M) = number of divisors
Reduction Map: r ↦ r/gcd(r,M) mod M/gcd(r,M)
Coprime Count: φ(M) on outer ring
Reducible Count: M - φ(M) with projection lines
τ(M) = ∏(e_i + 1) for M = ∏p_i^{e_i}

Higher Dimensions — 1/ζ(k) Density Pattern

The primitive density in k-dimensional balls approaches 1/ζ(k). For k=2: 6/π² ≈ 0.608. For k=3: 1/ζ(3) ≈ 0.832. As k→∞, density→1. This tab compares densities across dimensions and verifies the theoretical predictions with actual counts.

ζ(n) Convergence to 1

Live Statistics

1/ζ(n) Coprime Density

Volume of n-Ball

Dimension Analysis (Click rows)

nVol(Bⁿ)ζ(n)1/ζ(n)ComputedErrorMethod

Dimension Theory

P(gcd = 1) = 1/ζ(n) → 1 as n → ∞  |  Vol(Bⁿ) = π^(n/2) / Γ(n/2+1)
ζ(2): π²/6 = 1.6449340668 → 60.79271019% coprime
ζ(3): Apéry = 1.2020569032 → 83.19073726% coprime
ζ(4): π⁴/90 = 1.0823232337 → 92.39393751% coprime
ζ(∞): → 1 → 100% coprime
Quick Presets:

Möbius Shells — GCD Layer Decomposition

Every lattice point belongs to exactly one "shell" defined by its GCD value g. The g=1 shell contains primitive points. Higher shells (g=2,3,...) contribute to total count via Möbius inversion. Shell counts satisfy Σ_{d|g} shell(d) = total(g). This decomposition underlies the 1/ζ(k) formula.

Möbius Shell Contributions

Primitive count P(R) = Σ μ(k)·L(R/k) where L counts all lattice points

Live Statistics

Cumulative Sum Convergence

Contribution Magnitude |μ(k)·L(R/k)|

Möbius Function μ(k)

Shell Size L(R/k)

Shell Decomposition Table (Click rows)

kμ(k)L(R/k)ContributionCumulative% of TotalSquarefree?

Geometric Möbius Shell Sieve (Getachew 2025)

Abstract:

A geometric visualization of the classical Möbius inversion formula for counting primitive lattice points. The sieve decomposes the count P(R) into contributions from "shells" at scale k: each shell S_k contains points (kx, ky, ...) where gcd(x,y,...) = 1. The Möbius function μ(k) provides the inclusion-exclusion weights, with positive shells (μ=+1) adding points and negative shells (μ=-1) removing overcounts. The visualization shows how these shells geometrically nest and cancel to isolate exactly the primitive points.

Key Insight:

The sum truncates naturally at k = R (since L(R/k) = 0 for k > R), and only squarefree k contribute (since μ(k) = 0 otherwise). The dominant contribution comes from k=1 (all lattice points), with corrections from small prime scales k=2,3,5,... The cumulative sum converges to P(R) = Vol(K)·R^n/ζ(n) + O(R^{n-1}).

P(R) = Σ_{k=1}^R μ(k) · L(R/k)  |  L(r) = lattice points in ball
Main Term: k=1 gives L(R) (all points)
Correction: k=2 removes even-gcd
Cancellation: ± terms sum to primitive count
Truncates: When R/k < 1
Example (R=6):
P(6) = L(6) - L(3) - L(2) + L(1) - L(1.5) - L(1.2) + ...
Quick Presets:

GCD Distribution — Statistical Analysis

The GCD of random pairs follows a remarkable distribution: P(gcd=g) = 1/(g²ζ(2)) = 6/(π²g²). Mean GCD ≈ 1.645 (= ζ(2)). The proportion with gcd=1 is 6/π² ≈ 60.8%. This tab analyzes GCD statistics across lattice regions.

GCD Frequency Distribution

Live Statistics

Cumulative Distribution

GCD vs Theory

Squarefree Analysis

Divisibility Patterns

GCD Distribution Table (Click rows)

GCDCountPercentCumulativeTheorySquarefree?Factorization

GCD Distribution Theory

P(gcd = k) = 1/(k² · ζ(2)) = 6/(π²k²)  |  P(gcd = 1) = 0.6079271019
P(gcd=1): 6/π² = 0.6079271018540266
P(gcd=2): 6/(4π²) ≈ 15.20%
P(gcd=3): 6/(9π²) ≈ 6.75%
Average GCD: ~ √(log R)
Quick Presets:

Density Verification — 1/ζ(k) Empirical Test

This tab empirically verifies that primitive lattice point density converges to 1/ζ(k). Compare actual ratios V(R)/|B_R| against theoretical 1/ζ(k) values as R increases. The convergence rate depends on the error term behavior.

12
10

1/ζ(k) Density Convergence

ζ(k) → 1 as k → ∞

Relative Error % by Dimension

Euler Product Verification

Live Statistics

Convergence to Limit

Comprehensive Density Table (Click rows)

kζ(k)1/ζ(k)EmpiricalTotalPrimitiveAbs ErrRel Err %

Zeta Function & Primitive Density Theory

P(gcd(x₁,...,xₖ)=1) = 1/ζ(k) → 1 as k → ∞
ζ(2): π²/6 = 1.6449340668 → 60.79271019% coprime pairs
ζ(3): Apéry = 1.2020569032 → 83.19073726%
ζ(10): ≈ 1.00099 → 99.9%
Euler Product: ζ(s) = Π(1-p⁻ˢ)⁻¹
Quick Presets:

Dirichlet Characters — L-function Building Blocks

Dirichlet characters χ mod q are completely multiplicative functions with χ(n+q)=χ(n). They form an orthogonal basis for functions on (ℤ/qℤ)×. The L-function L(s,χ) = Σχ(n)/n^s generalizes ζ(s). Dirichlet proved infinitely many primes in arithmetic progressions using these.

0 (Principal χ₀)

Dirichlet Character χ mod 12

χ(r) ≠ 0 (gold) when gcd(r,M)=1. χ(r) = 0 (gray) when gcd(r,M) > 1. Characters map units to roots of unity.

Live Statistics

Character Value Distribution

L(s,χ) Partial Sums

Character Orthogonality

Character Table mod M (Click rows)

rgcd(r,M)χ(r)|χ(r)|arg(χ(r))Support?

Dirichlet Character Theory

L(s,χ) = Σ χ(n)/nˢ = ∏_p(1-χ(p)p⁻ˢ)⁻¹  |  L(1,χ) ≠ 0 for χ≠χ₀
Principal χ₀: χ₀(r)=1 if gcd(r,M)=1
Count: φ(M) characters mod M
Orthogonality: Σχ(r)χ̄'(r) = φ(M)δ_{χχ'}
Dirichlet: ∞ primes in each class
Examples (mod 5):
χ₀: 1→1, 2→1, 3→1, 4→1 | χ₁: 1→1, 2→i, 3→-i, 4→-1
Quick Presets:

Twin Primes — Pairs (p, p+2)

Twin primes are pairs (p, p+2) both prime: (3,5), (5,7), (11,13), (17,19)... The twin prime conjecture (unproven) states infinitely many exist. Brun proved Σ1/p over twin primes converges (B₂ ≈ 1.902). Zhang (2013) proved bounded gaps; current bound is 246.

Prime Gap Analysis up to N = 1000

Twin primes (p, p+2) become rarer but are conjectured infinite. Brun proved Σ1/p (twin) converges.

Live Statistics

Gap Frequency

Brun's Constant Convergence

Prime Gaps vs log(p)

Prime Pair Data (Click rows)

pp+gGaplog(p)gap/log(p)Σ1/p

Twin Prime Theory

π₂(x) ~ 2C₂ · x/(ln x)²  |  B₂ = Σ(1/p + 1/(p+2)) ≈ 1.902
Conjecture: Infinitely many twin primes (unproved)
Brun (1919): Sum over twins converges
Zhang (2013): Gaps ≤ 70M infinitely often
Current: Gaps ≤ 246 infinitely often (Polymath)
First Twin Primes:
(3,5), (5,7), (11,13), (17,19), (29,31), (41,43), (59,61), (71,73)...
Quick Presets:

Prime Counting π(x) — The Central Function

π(x) counts primes ≤ x. The Prime Number Theorem: π(x) ~ x/ln(x) ~ Li(x). Gauss conjectured, Hadamard/de la Vallée Poussin proved (1896). The error π(x) - Li(x) oscillates, with RH implying |error| = O(√x log x). First crossover where π(x) > Li(x) is near 10^316.

Prime Counting Function π(x) up to 10000

π(x) counts primes ≤ x. PNT: π(x) ~ x/ln(x). Li(x) is the best elementary approximation.

Live Statistics

Approximation Errors

π(x) vs Approximations

Ratio π(x)·ln(x)/x → 1

Prime Count Data (Click rows)

xπ(x)x/ln(x)Li(x)Error LiRel %

Prime Number Theorem

π(x) ~ x/ln(x) ~ Li(x) = ∫₂ˣ dt/ln(t)  (Hadamard, de la Vallée Poussin, 1896)
Error: π(x) = Li(x) + O(x·e^(-c√ln x))
Riemann R(x): Σ μ(n)/n · Li(x^(1/n)) — very accurate
Chebyshev: 0.92x/ln x < π(x) < 1.11x/ln x
RH ⟹: |π(x) - Li(x)| = O(√x ln x)
Key Values:
• π(100) = 25
• π(1000) = 168
• π(10⁴) = 1229
• π(10⁶) = 78498
Quick Presets:

Composite Channels — Modular Structure

Composite moduli create "channels" of residue classes with multiplicative structure. For M = p₁p₂...pₖ, the Chinese Remainder Theorem decomposes (ℤ/Mℤ)× ≅ ∏(ℤ/pᵢℤ)×. This tab visualizes how composites distribute across residue channels.

r=1

Composite Channel Projection: M = 60

Cyan = coprime (gcd=1), Red = reducible (gcd>1). Lines show projection r/M → r'/M' where M'=M/gcd(r,M).

Live Statistics

Channel Distribution

Reducibility by Divisor

φ(M)/M Density

Residue Channel Data (Click rows)

rgcd(r,M)Channel M'Reduced r'TypeMultiplicity

Composite Channel Projection (Getachew 2025)

Abstract:

A framework for understanding how residues modulo composite M decompose into "channels" indexed by divisors of M. Each residue r ∈ {0,1,...,M-1} projects to a reduced channel M' = M/gcd(r,M) with reduced residue r' = r/gcd(r,M). This creates a hierarchical lattice structure where the divisor lattice τ(M) organizes all possible reduction paths. Coprime residues (gcd=1) stay in the "full" channel M, while reducible residues collapse to smaller channels with multiplicities given by divisor counts.

Key Insight:

The projection r → r' reveals the multiplicative structure hidden in modular arithmetic. For highly composite M (like primorials 6, 30, 210, 2310), the channel decomposition provides a "sieve" perspective: primes beyond the prime factors of M survive in the coprime channel, while composite numbers collapse into reducible channels. This connects directly to wheel factorization and the Möbius sieve structure.

r/M → r'/M' where M' = M/gcd(r,M)  |  φ(M)/M = coprime density
Coprime: gcd(r,M)=1 → (ℤ/Mℤ)×
Reducible: gcd(r,M)>1 → smaller channel
Channels: τ(M) from divisors
φ(60)/60: 16/60 ≈ 26.7%
Example M=12:
Coprime: 1,5,7,11 | Channels: 12,6,4,3,2,1
Quick Presets:

Coprime Pairs — V(R) and E(R) Analysis

V(R) counts coprime pairs (a,b) with a²+b² ≤ R². Asymptotically V(R) ~ 6R²/π². The error E(R) = V(R) - 6R²/π² is the primary object connecting lattice counting to RH. The conjecture |E(R)| = O(R^{1/2+ε}) is equivalent to RH for related zeta functions.

40%
N=60

Coprime Lattice: 1 ≤ a,b ≤ 60

Primitive vectors (gcd=1) are visible from origin. V(R)/πR² → 6/π² connects to Riemann Hypothesis.

Live Statistics

GCD Distribution

Disc Analysis V(R) & Error E(R)

Convergence to 6/π²

Möbius Function M(N) = Σμ(n)

|E(R)|/R^½ (RH Bound)

Sample Pairs (Click rows)

abgcdNormθ°Coprime?

Coprime Lattice Disc Analysis & Riemann Hypothesis (Getachew 2025)

Abstract:

An interactive exploration of the deep connection between coprime lattice point counting and the Riemann Hypothesis. The function V(R) = #{(a,b) : gcd(a,b)=1, a²+b²≤R²} grows asymptotically as 6R²/π² = R²/ζ(2). The error term E(R) = V(R) - 6R²/π² encodes information about the zeta function zeros. The Riemann Hypothesis is equivalent to the bound |E(R)| = O(R^{½+ε}) for all ε > 0, analogous to the Gauss circle problem but for coprime pairs.

RH Connection:

The visualization tracks |E(R)|/R^½ as a function of R. If RH is true, this ratio should remain bounded. The normalized error connects directly to the Mertens function M(N) = Σμ(n), and the bound |M(N)|/√N < const would prove RH. Current computations suggest the ratio fluctuates but does not diverge—consistent with RH but not a proof.

V(R) = 6R²/π² + E(R)  |  RH ⟺ |E(R)| = O(R^(½+ε))
Density: 6/π² = 1/ζ(2) ≈ 60.79%
Möbius: M(N) = Σμ(n) bounded if RH
Disc: V(R) = #{gcd(a,b)=1, a²+b²≤R²}
Critical Line: Exponent ½ = Re(s)
Quick Presets:

Sierpiński Problem — Uncovered Integers

Sierpiński (1964) asked which positive integers cannot be expressed as 6ab ± a ± b for positive a,b. There are 78 such "uncovered" integers ≤ 1000. The complete characterization remains open. This connects to representations by binary quadratic forms.

Sierpiński Coverage: n ≤ 200

Green = expressible as 6ab±a±b. Red = uncovered (Sierpiński candidates). Status: UNSOLVED since 1964.

Live Statistics

Coverage by Form

Uncovered Numbers Distribution

Coverage Rate vs N

Uncovered Integers (Sierpiński Candidates)

nn mod 6n mod 12FactorizationNeighbors

Sierpiński Problem Theory (1964)

n = 6ab ± a ± b  |  Are infinitely many integers uncovered?
Form 1: 6ab + a + b
Form 2: 6ab + a - b
Form 3: 6ab - a + b
Form 4: 6ab - a - b
First Uncovered:
1, 2, 4, 5, 8, 10, 14, 16, 20, 26, 32, 40... (78 values ≤1000)
Quick Presets:

k-Free Integers — Squarefree Generalization

A k-free integer has no prime factor with multiplicity ≥ k. Squarefree = 2-free. The density of k-free integers is 1/ζ(k). For k=2: 6/π² ≈ 60.8% are squarefree. The error term follows |error| = O(N^{1/k}). Möbius function μ(n) indicates 2-free status.

k-Free Integers: k=2, N=1000

n is k-free if no prime p has p^k | n. Count Q_k(N) ~ N/ζ(k) with error O(N^(1/k)).

Live Statistics

Zeta Reference

Error Term E(N) = Q_k(N) - N/ζ(k)

|E(N)|/N^(1/k) Ratio

First Non-k-free Integers

nFactorizationDivisible by p^kSmallest p

k-Free Integers & Boundary Cancellation

Q_k(N) = N/ζ(k) + O(N^(1/k))  |  Density = 1/ζ(k)
Squarefree: k=2, 1/ζ(2) ≈ 60.79%
Cubefree: k=3, 1/ζ(3) ≈ 83.19%
4th-free: k=4, 1/ζ(4) ≈ 92.39%
Error: Comes from (k-1)-dim boundary
First Non-Squarefree:
4, 8, 9, 12, 16, 18, 20, 24, 25, 27, 28, 32... (divisible by p²)
Quick Presets:

Chord CV Analysis — Prime Detection Heuristic

The Chord Coefficient of Variation (CV) measures uniformity of chord lengths between n-th roots of unity. Primes show lower CV (more uniform) than composites. This heuristic achieves ~92% prime/composite separation for n ≤ 10000. Based on Getachew (2025) framework.

Chord Length Uniformity: CV(n) = σ/μ

Primes have uniform coprime spacing (low CV). Composites have irregular gaps (high CV). Separation grows with n.

Live Statistics

CV Distribution

Separation by Range

Prime vs Composite Average CV

Sample Moduli (Click rows)

nTypeφ(n)CVGap RatioVerdict

Chord Length Uniformity Heuristic (Getachew 2025)

Abstract:

A novel primality heuristic based on the geometric uniformity of coprime residue distributions on the unit circle. For any integer n, we place the φ(n) coprime residues r ∈ (ℤ/nℤ)× at angles θ_r = 2πr/n on the unit circle. The chord lengths between consecutive coprimes reveal a striking dichotomy: primes exhibit uniform spacing (low coefficient of variation), while composites show irregular gaps due to their divisor structure. This heuristic achieves ~92% classification accuracy for n ≤ 10,000 using a simple threshold CV < 0.22.

Key Insight:

For prime p, the coprime set is {1,2,...,p-1}, which distributes uniformly around the circle. The gaps between consecutive coprimes are all 1, yielding identical chord lengths L = 2·sin(π/p). As p → ∞, CV → 0 geometrically. For composite n = p₁^a₁·p₂^a₂·..., gaps cluster around multiples of the prime factors, creating variance in chord lengths and higher CV values.

CV(n) = σ_L / μ_L  |  L_i = 2·sin(π·gap_i/n)  |  Prime: CV → 0
Prime signature: CV → 0 as n → ∞ (uniform gaps)
Composite: CV ≈ 0.30 (irregular gaps)
Decision: CV < 0.22 → likely prime
Separation: 92.3% accuracy at n≤10000
Example CV Values:
• n=97 (P): CV≈0.08
• n=100 (C): CV≈0.35
• n=101 (P): CV≈0.07
• n=105 (C): CV≈0.42
Quick Presets:

Goldbach Conjecture — Every Even ≥ 4 = p + q

Goldbach's conjecture (1742): every even integer ≥ 4 is the sum of two primes. Verified to 4×10^18. The partition count G(n) = #{(p,q): p+q=n, p≤q prime} grows roughly like n/(ln n)². The "Goldbach comet" plots G(n) vs n. Hardy-Littlewood gave a conjectural asymptotic.

Partition Distribution

Live Statistics

Partitions Table

Goldbach Conjecture Theory

∀ even n ≥ 4: n = p + q for some primes p, q  |  G(n) = #{(p,q): p+q=n, p≤q prime}
Conjecture: Every even n ≥ 4 is sum of two primes
Status: Unproven (verified to 4×10¹⁸)
Hardy-Littlewood: G(n) ~ 2C₂·n/(ln n)² · ∏((p-1)/(p-2))
C₂ ≈ 0.6601: Twin prime constant
Examples:
• 4 = 2+2
• 10 = 3+7 = 5+5
• 100 = 3+97 = 11+89 = ...
• G(100) = 6 partitions
Quick Presets:

Prime Gaps — g_n = p_{n+1} - p_n

Prime gaps g_n = p_{n+1} - p_n vary irregularly. Average gap ~ ln(p_n). Cramér conjectured max gap = O((ln p)²). Record gaps grow slowly. The ratio g_n/ln(p_n) has mean 1 but large fluctuations. Zhang (2013) proved lim inf g_n < 70 million; now < 246.

Gap Distribution

Live Statistics

Record Gaps Table

Prime Gap Theory

g_n = p_{n+1} - p_n  |  Cramér: g_n = O((ln p_n)²)  |  Average gap ~ ln(p_n)
Cramér Conjecture: g_n < (ln p_n)² eventually
Prime Number Theorem: Average gap ~ ln(n)
Record Gap: g = 1550 at p ≈ 9.8×10¹⁸
Twin Prime Gap: g = 2 (infinitely many?)
First Record Gaps:
• g=1 at p=2
• g=2 at p=3
• g=4 at p=7
• g=6 at p=23
• g=8 at p=89
• g=14 at p=113
Quick Presets:

Sophie Germain Primes — p and 2p+1 Both Prime

Sophie Germain primes p have 2p+1 also prime (called safe prime). Examples: 2, 3, 5, 11, 23, 29, 41, 53, 83, 89... Used in cryptography (strong primes). Cunningham chains: sequences where each term generates the next. Conjecture: infinitely many Sophie Germain primes.

Distribution

Live Statistics

Sophie Germain Primes Table

Sophie Germain Primes Theory

p is Sophie Germain prime ⟺ p and 2p+1 both prime  |  2p+1 is called "safe prime"
Sophie Germain (1776-1831): French mathematician
Application: Cryptography (safe primes)
Conjecture: Infinitely many (unproven)
Density: ~C·n/(ln n)² where C ≈ 1.32
First Sophie Germain Primes:
• 2 → 5
• 3 → 7
• 5 → 11
• 11 → 23
• 23 → 47
• 29 → 59
• 41 → 83
• 53 → 107
Quick Presets:

Mertens Function M(x) — Cumulative μ(n)

M(x) = Σ_{n≤x} μ(n) tracks the cumulative Möbius function. The Mertens conjecture |M(x)| < √x was disproved (Odlyzko-te Riele, 1985), but RH ⟺ M(x) = O(x^{1/2+ε}). The ratio M(x)/√x oscillates, with proven bounds |M(x)| < x for all x.

Mertens Function M(x) = Σμ(n) for n≤x

Click any point for details. RH ⟺ M(x) = O(x^{1/2+ε}) for all ε>0.

Live Statistics

M(x)/√x Ratio

μ(n) Distribution

Mertens Function & Riemann Hypothesis

Abstract:

The Mertens function M(x) = Σ_{n≤x} μ(n) is the summatory function of the Möbius function. It encodes the "imbalance" between squarefree integers with even vs odd numbers of prime factors. The Riemann Hypothesis is equivalent to the bound |M(x)| = O(x^{1/2+ε}) for all ε > 0. The weaker Mertens conjecture |M(x)| < √x was disproved by Odlyzko and te Riele (1985), but the RH bound remains open.

Key Insight (RH Connection):

The connection to RH comes through the identity: 1/ζ(s) = Σμ(n)/n^s. The Dirichlet series for 1/ζ(s) converges absolutely for Re(s) > 1. The behavior of M(x) determines how far left this can be analytically continued. If |M(x)| = O(x^{1/2+ε}), then ζ(s) has no zeros with Re(s) > 1/2, which is RH. The normalized ratio M(x)/√x oscillates but should remain bounded if RH is true.

RH ⟺ M(x) = O(x^{1/2+ε}) ∀ε>0   |   M(x) = Σ_{n≤x} μ(n)   |   1/ζ(s) = Σ μ(n)/n^s

Chebyshev Functions ψ(x), θ(x)

ψ(x) = Σ_{p^k≤x} log p and θ(x) = Σ_{p≤x} log p. The PNT states ψ(x) ~ x. RH implies ψ(x) = x + O(√x log²x). Chebyshev proved 0.92 < ψ(x)/x < 1.11 without PNT. The explicit formula ψ(x) = x - Σ_ρ x^ρ/ρ - log(2π) connects to zeta zeros.

Chebyshev Functions ψ(x) and θ(x)

ψ(x) counts prime powers weighted by log. PNT: ψ(x) ~ x. RH: ψ(x) = x + O(x^{1/2+ε}).

Live Statistics

ψ(x)/x Convergence

Von Mangoldt Λ(n)

Chebyshev Functions & Prime Number Theorem

Abstract:

The Chebyshev function ψ(x) = Σ_{n≤x} Λ(n) where Λ(n) is the von Mangoldt function (log p if n=p^k, else 0). The companion function θ(x) = Σ_{p≤x} log p sums only over primes. The Prime Number Theorem (PNT) states ψ(x) ~ x and θ(x) ~ x as x→∞. These functions are smoother than π(x) and connect directly to ζ(s) zeros.

Key Insight (Explicit Formula):

The explicit formula connects ψ(x) to zeta zeros: ψ(x) = x - Σ_ρ x^ρ/ρ - log(2π) - ½log(1-x^{-2}), where the sum is over nontrivial zeros ρ of ζ(s). Each zero contributes an oscillation. RH (all ρ have Re(ρ)=1/2) implies these oscillations decay like √x, giving ψ(x) = x + O(√x log²x).

ψ(x) = Σ_{n≤x} Λ(n) ~ x   |   θ(x) = Σ_{p≤x} log p ~ x   |   Λ(p^k) = log p

Logarithmic Integral Li(x)

Li(x) = ∫₂ˣ dt/ln(t) is the best simple approximation to π(x). The PNT states π(x) ~ Li(x). Littlewood proved π(x) - Li(x) changes sign infinitely often. First sign change (Skewes number) is near 10^316. Under RH: |π(x) - Li(x)| = O(√x log x).

Logarithmic Integral Li(x) = ∫₂ˣ dt/ln(t)

Li(x) is the best elementary approximation to π(x). Click points for details.

Live Statistics

Error π(x) - Li(x)

Approximation Quality

Logarithmic Integral & Prime Counting

Abstract:

The logarithmic integral Li(x) = ∫₂ˣ dt/ln(t) provides the best elementary approximation to the prime counting function π(x). Gauss conjectured π(x) ~ Li(x), which is the Prime Number Theorem (proved 1896). While x/ln(x) is simpler, Li(x) has smaller error: |π(x) - Li(x)| grows much slower than |π(x) - x/ln(x)|.

Key Insight (Skewes Number):

Surprisingly, Li(x) > π(x) for all computed values, but Littlewood proved π(x) - Li(x) changes sign infinitely often! The first crossover (Skewes number) is enormous: around 10^316. Under RH, |π(x) - Li(x)| = O(√x log x). Riemann's function R(x) = Σ μ(n)/n · Li(x^{1/n}) is even more accurate, incorporating the zeros of ζ(s).

Li(x) = ∫₂ˣ dt/ln(t)   |   π(x) ~ Li(x)   |   R(x) = Σ μ(n)/n · Li(x^{1/n})

Divisor Functions d(n), σ(n)

τ(n) = d(n) counts divisors; σ(n) sums them. Both are multiplicative. Average d(n) ~ log n. Highly composite numbers maximize d(n). Perfect numbers satisfy σ(n) = 2n. Robin's inequality: σ(n) < e^γ n log log n for n > 5040 ⟺ RH.

Divisor Functions τ(n) and σ(n)

τ(n) counts divisors, σ(n) sums them. Click points for factorization details.

Live Statistics

τ(n) Distribution

σ(n)/n Abundancy

Divisor Functions in Number Theory

Abstract:

The divisor function τ(n) = d(n) counts the number of positive divisors of n, while σ(n) sums all divisors. For prime p, τ(p)=2 and σ(p)=p+1. These are multiplicative: τ(mn)=τ(m)τ(n) when gcd(m,n)=1. The average value of τ(n) is log n + 2γ - 1 where γ≈0.5772 is Euler's constant. Highly composite numbers have more divisors than any smaller number.

Key Insight (Perfect & Abundant Numbers):

The abundancy index σ(n)/n classifies numbers: deficient (σ(n)/n < 2), perfect (σ(n)/n = 2), or abundant (σ(n)/n > 2). Perfect numbers satisfy σ(n) = 2n (e.g., 6, 28, 496). Euler proved even perfect numbers have form 2^{p-1}(2^p - 1) where 2^p - 1 is Mersenne prime. Whether odd perfect numbers exist is unknown!

τ(n) = Σ_{d|n} 1   |   σ(n) = Σ_{d|n} d   |   σ_k(n) = Σ_{d|n} d^k   |   ⟨τ(n)⟩ ~ log n

Liouville Function λ(n)

λ(n) = (-1)^{Ω(n)} where Ω(n) counts prime factors with multiplicity. Completely multiplicative: λ(mn) = λ(m)λ(n). The Pólya conjecture L(x) = Σλ(n) ≤ 0 was disproved; first counterexample near 906 million. RH ⟹ L(x) = O(x^{1/2+ε}).

Liouville Function L(x) = Σλ(n)

λ(n) = (-1)^{Ω(n)} where Ω(n) counts prime factors with multiplicity. RH connection via Pólya conjecture.

Live Statistics

L(x)/√x Ratio

Ω(n) Distribution

Liouville Function & Pólya Conjecture

Abstract:

The Liouville function λ(n) = (-1)^{Ω(n)} where Ω(n) is the number of prime factors of n counted with multiplicity. Unlike μ(n), λ(n) is never zero. The summatory function L(x) = Σ_{n≤x} λ(n) relates to M(x) via: L(x) = Σ_{k≤√x} M(x/k²). The Liouville function is completely multiplicative: λ(mn) = λ(m)λ(n) for all m,n.

Key Insight (Pólya Conjecture):

Pólya conjectured (1919) that L(x) ≤ 0 for all x ≥ 2, meaning more integers have an odd number of prime factors. This was disproved by Haselgrove (1958)! The first counterexample is around x ≈ 906,150,257. Like M(x), RH implies L(x) = O(x^{1/2+ε}).

λ(n) = (-1)^{Ω(n)}   |   L(x) = Σ_{n≤x} λ(n)   |   L(x) = Σ_{k≤√x} M(x/k²)

Von Mangoldt Function Λ(n)

Λ(n) = log p if n = p^k for prime p, else 0. It's the "prime indicator with weights." ψ(x) = Σ Λ(n). The explicit formula ψ(x) = x - Σ_ρ x^ρ/ρ - log(2π) - ½log(1-x⁻²) shows how zeros govern prime distribution.

Von Mangoldt Function Λ(n)

Λ(n) = log p if n = p^k for prime p, else 0. Core building block for Chebyshev functions.

Live Statistics

Prime Powers by Base

Λ(n) Size Distribution

Von Mangoldt Function & Explicit Formulas

Abstract:

The von Mangoldt function Λ(n) equals log p when n is a prime power p^k, and 0 otherwise. It satisfies the elegant identity: Σ_{d|n} Λ(d) = log n, making it fundamental to multiplicative number theory. The Chebyshev function ψ(x) = Σ_{n≤x} Λ(n) smooths prime counting, and PNT states ψ(x) ~ x.

Key Insight (Explicit Formula):

The explicit formula directly connects Λ(n) to zeta zeros: ψ(x) = x - Σ_ρ x^ρ/ρ - log(2π) + O(1), where ρ runs over nontrivial zeros of ζ(s). Each zero contributes an oscillating term x^ρ/ρ. If RH holds (all Re(ρ) = 1/2), these oscillations have amplitude √x, giving optimal error bounds.

Λ(p^k) = log p   |   Σ_{d|n} Λ(d) = log n   |   ψ(x) = Σ Λ(n) = x - Σ_ρ x^ρ/ρ + O(1)

Ramanujan Sums c_q(n)

c_q(n) = Σ_{gcd(a,q)=1} e^{2πian/q} is always an integer (remarkable!). They form an orthogonal basis for arithmetic functions. c_q(n) = μ(q/gcd(q,n))φ(q)/φ(q/gcd(q,n)). Used in the circle method and additive number theory.

Ramanujan Sum c_q(n) = Σ_{gcd(a,q)=1} e^{2πian/q}

Sum of primitive q-th roots of unity raised to power n. Always an integer! Click for details.

Live Statistics

c_q(n) vs n

c_q(n) for Divisors of q

Ramanujan Sums & Fourier Analysis on (ℤ/qℤ)×

Abstract:

The Ramanujan sum c_q(n) = Σ_{1≤a≤q, gcd(a,q)=1} e^{2πian/q} is the sum of primitive q-th roots of unity raised to the n-th power. Remarkably, c_q(n) is always an integer! It equals μ(q/gcd(n,q))·φ(q)/φ(q/gcd(n,q)) when gcd(n,q) divides q. Ramanujan sums form an orthogonal basis for arithmetic functions.

Key Insight (Ramanujan Expansion):

Any arithmetic function f(n) with convergent series can be expanded: f(n) = Σ_q a_q·c_q(n). For example, μ(n) = Σ_q μ(q)c_q(n)/φ(q) and d(n) = Σ_q c_q(n)log(q)/q. This is Fourier analysis on the integers! The expansion converges for multiplicative functions.

c_q(n) = Σ_{gcd(a,q)=1} e^{2πian/q} = μ(q/d)·φ(q)/φ(q/d) where d = gcd(n,q)

Ulam Spiral — Primes in Square Grid

Stanisław Ulam (1963) arranged integers in a square spiral and noticed primes cluster on diagonals. These correspond to quadratic polynomials like n² + n + 41 (Euler's famous prime-rich polynomial). The visual reveals hidden structure in prime distribution.

Ulam Spiral — Primes on Integer Spiral

Integers spiral outward; primes cluster along diagonals. Discovered by Stanisław Ulam (1963).

Live Statistics

Diagonal Prime Density

Prime Gaps in Spiral

Ulam Spiral & Prime Patterns

Abstract:

The Ulam spiral arranges positive integers in a square spiral, starting from 1 at the center. When primes are highlighted, striking diagonal patterns emerge. Discovered by Stanisław Ulam in 1963 while doodling during a boring meeting! The diagonals correspond to quadratic polynomials n² + n + 41 (Euler's prime-rich polynomial) and similar forms.

Key Insight (Quadratic Polynomials):

Diagonals in the Ulam spiral represent quadratic sequences 4n² + bn + c. Some produce many primes: Euler's n² + n + 41 gives primes for n = 0 to 39. The diagonal density depends on the discriminant b² - 16c. Hardy-Littlewood conjecture predicts asymptotic prime density for each polynomial.

Spiral: 1 → 2 → 3 → ... counterclockwise   |   Diagonals: 4n² + bn + c   |   Euler: n² + n + 41

Sacks Spiral — Archimedean Prime Pattern

Robert Sacks's spiral places n at polar coordinates (√n, 2π√n). Primes form curved arms corresponding to quadratic residues. Perfect squares lie on the positive x-axis. The visualization reveals parabolic curves of prime-rich quadratics.

Sacks Spiral — Primes on √n Archimedean Spiral

Each integer n at angle θ = 2π√n, radius r = √n. Primes form curved arms. Click for details.

Live Statistics

Angular Distribution

Radial Prime Density

Sacks Spiral & Prime Curves

Abstract:

The Sacks spiral (Robert Sacks, 1994) places integer n at polar coordinates (√n, 2π√n). Perfect squares lie on the positive x-axis. Primes cluster along curved arms corresponding to quadratic polynomials. Unlike Ulam's square spiral, the Sacks spiral reveals smooth parabolic curves through prime-rich sequences.

Key Insight (Parabolic Arms):

Each parabolic arm in the Sacks spiral corresponds to a quadratic polynomial an² + bn + c. Primes from n² + n + 41 form a distinct curve. The visual clustering reveals that primes are not random but follow patterns encoded in quadratic residues modulo small primes. Twin primes appear as nearby paired curves.

Position: r = √n, θ = 2π√n   |   Squares on x-axis   |   Arms: an² + bn + c
ζ

Riemann Hypothesis Explorer

9 unified tools for exploring the greatest unsolved problem in mathematics

Prime Races — Chebyshev Bias

Chebyshev noticed primes ≡ 3 (mod 4) tend to outnumber those ≡ 1 (mod 4). Rubinstein-Sarnak (1994) proved under GRH that 3 leads ~99.59% of the time! The bias comes from low-lying zeros of L-functions. "π(x;4,3) vs π(x;4,1)" race visualized.

Prime Races — Chebyshev Bias Visualization

Which residue class has more primes? Track the race as x increases.

Live Statistics

Chebyshev's Bias in Prime Races

The Phenomenon:

Chebyshev (1853) noticed that primes ≡ 3 (mod 4) seem to outnumber primes ≡ 1 (mod 4). Though both classes have density 1/2 asymptotically, non-quadratic residues "win" more often. This is the Chebyshev bias.

Rubinstein-Sarnak (1994):

Under GRH, primes ≡ 3 (mod 4) lead ~99.59% of the "time" (in logarithmic density). The bias connects to zeros of L-functions: L(s,χ₄) with χ₄(-1)=-1 causes the asymmetry.

π(x;4,3) > π(x;4,1) for ~99.59% of x   |   First 3→1 lead change: x = 26861

L-Functions — Dirichlet Series

L(s,χ) = Σ χ(n)/n^s generalizes ζ(s) using Dirichlet characters. The principal character gives ζ(s) times local factors. Non-principal L-functions are entire. GRH: all nontrivial zeros satisfy Re(s) = ½. They encode prime distribution in arithmetic progressions.

Dirichlet L-Functions — L(s,χ) for mod q Characters

Compute L(s,χ) for all Dirichlet characters χ mod q.

Live Statistics

Dirichlet L-Functions & Generalized RH

Definition:

For a Dirichlet character χ mod q: L(s,χ) = Σ χ(n)/nˢ = ∏ₚ (1-χ(p)/pˢ)⁻¹. When χ=χ₀ (principal), L(s,χ₀) = ζ(s)∏_{p|q}(1-p⁻ˢ). Non-principal L-functions are entire (no pole).

Generalized Riemann Hypothesis:

GRH states that ALL nontrivial zeros of ALL Dirichlet L-functions lie on Re(s)=½. This implies strong results about prime distribution in arithmetic progressions and the Chebyshev bias.

L(s,χ) = Σ χ(n)/nˢ = ∏ₚ (1-χ(p)p⁻ˢ)⁻¹   |   GRH: all zeros on Re(s)=½

L-Function Zeros

Each L(s,χ) has its own set of zeros, all conjectured on Re(s) = ½ (GRH). Low-lying zeros (small imaginary part) cause the Chebyshev bias. Comparing zero distributions across characters reveals universal behavior matching random matrix predictions.

L-Function Zeros — Zeros of L(s,χ) on Critical Line

Visualize zeros of Dirichlet L-functions. All should lie on Re(s)=½ (GRH).

Live Statistics

Zeros of Dirichlet L-Functions

Zero Distribution:

Each primitive character χ mod q has its own L-function with infinitely many zeros in the critical strip. The zero-free region and zero density affect prime distribution in arithmetic progressions.

Connection to Prime Races:

The zeros of L(s,χ) determine oscillations in π(x;q,a). Low-lying zeros (small imaginary part) cause the Chebyshev bias. If a zero existed with Re(ρ)>½, prime distribution in progressions would be badly behaved.

N(T,χ) ~ (T/π)log(qT/2πe)   |   Each L(s,χ) has infinitely many zeros

Phasor Sum — Zeta as Rotating Vectors + Prime-Phase Mode

Visualize the Riemann zeta function as a sum of rotating phasors. Each term n^(-s) = n^(-sigma) e^(-it log n) is a vector with magnitude n^(-sigma) and angle -t log n. Enable Prime-Phase Vector Mode to sum over primes only with modular ring M, computing P_t(M) with coherence and cancellation metrics!

ENHANCED: Now includes Prime-Phase Vector mode by Wessen Getachew with modular ring integration

Prime-Phase Vector: P_t(M) = Σ [Mod(p,M) / p^(σ+it)] — Phase combines t·log(p) with modular 2πγp/M

Phasor Sum: zeta(s) = sum n^(-s)

Each vector: magnitude |n^(-s)| = n^(-sigma), angle arg(n^(-s)) = -t log n. Vectors drawn head-to-tail. Final point = zeta(s).

Zeta Value & Statistics

Magnitude |zeta(s)| vs t. Zeros occur where |zeta| = 0.

The Phasor Representation of Zeta

zeta(s) = sum(n=1 to inf) n^(-s) = sum n^(-sigma) e^(-it log n)

Each term is a phasor (rotating vector). On the critical line (sigma=1/2), the magnitudes decay as 1/sqrt(n) while angles rotate at rate log(n). At a zero, all phasors destructively interfere and the sum returns to origin. The animation shows how changing t causes the spiral to wind tighter or looser.

Prime-Phase Vector P_t(M) — Modular Ring Extension (click to expand)
P_t(M) = Σ_{p ≤ X} [Mod(p, M) / p^(σ + it)]  |  Phase = -α·t·log(p) + 2πγp/M
The Modular Ring Component (M)

The modulus M defines the ring Z/MZ. The modular phase 2πγp/M ensures each prime's contribution respects the ring structure, analogous to Dirichlet characters.

The Critical Line Component (t)

Height t sets the imaginary part of s = σ + it on the critical line. Phase α·t·log(p) governs the rotation rate per prime.

Key Metrics
|P_t|: Final vector magnitude
Path Length: Total distance traveled
Coherence C_t: 1 - |P_t|/PathLength
Cancellation: 1 - |P_t|/Σ|terms|
Winding Number: Net rotations around origin
Tortuosity: PathLength/|P_t|

Heuristic: When t is near a Riemann zero, prime phases align to cancel the sum, resulting in low |P_t| and high coherence. This "conspiracy" of primes is the heart of the RH connection.

Author: Wessen Getachew | GitHub | @7dview

Phase Explorer — Prime Phase Alignment at Zeta Zeros

Explore the phase function φ(p,t) = t·log(p) - π/2 for each prime p. At Riemann zeros, these phases exhibit remarkable alignment patterns. This tool visualizes how prime phases conspire at zeros of ζ(1/2 + it).

FROM ETHIOPIAN: Phase alignment visualization at zeta zeros

Prime Phase Distribution: φ(p,t) = t·log(p) mod 2π

Each prime p plotted at angle φ(p,t) on unit circle. At zeros, phases cluster near specific values.

Phase Statistics

Phase vs Prime

Phase Alignment at Zeta Zeros

φ(p, t) = t · log(p) - π/2  |  At zeros: phases exhibit alignment

The phase of each prime's contribution to ζ(s) depends on t·log(p). At a zero t₀ of ζ(1/2 + it), the phases conspire to cancel the sum. This tool visualizes that conspiracy by showing how phases distribute among primes as t varies.

Modular Sieve Studio — Euler Products, Prime Rings & Residue Geometry

Unified workspace for computing π and ζ(2n) via Euler products, visualizing primes on modular rings, and exploring residue class geometry. Combines epsilon-targeted computation, prime ring visualization, and the complete Interactive Modular Lifting Rings framework.

Three tools in one: Euler Product Calculator + Prime Rings + Modular Geometry

Euler Product — ζ(s) = ∏(1-p⁻ˢ)⁻¹

Euler Product Convergence

Euler Statistics

Convergence

Error Decay

Gap-Class Contributions

Residue Channels

Unified Theory: Euler Products & Modular Arithmetic

ζ(s) = ∏_p (1-p⁻ˢ)⁻¹  |  π = √(6·ζ(2))  |  φ(M) = M·∏_{p|M}(1-1/p)
Basel Problem: ζ(2) = π²/6 (Euler 1734)
Prime Rings: Place p at angle 2πr/M where r≡p (mod M)
Coprime Density: φ(M)/M = ∏_{p|M}(1-1/p) = 1/ζ(1) conditionally
Dirichlet: Primes equidistribute in coprime residue classes

Atomic Orbitals — All Elements (s, p, d, f, g, h, i...)

Visualize electron orbitals ψ_{nlm}(r,θ,φ) for any element. Wavefunctions scale with atomic number Z: orbitals contract (r → r/Z) and energies increase (E → Z²E). The radial nodes mirror zeros of Laguerre polynomials, connecting to the Riemann zeta function. Spherical harmonics Y_l^m encode angular momentum quantization.

Quantum Orbital ψ_{n,l,m} — Hydrogen Wavefunction Visualization

Electron probability density |ψ|² for hydrogen-like orbitals. Nodes connect to zeta zeros!

Live Statistics

Quantum Mechanics & Number Theory Connection

Abstract:

Electron orbitals are described by wavefunctions ψ_{n,l,m}(r,θ,φ) = R_{nl}(r)Y_l^m(θ,φ). The radial part R_{nl} has exactly n-l-1 nodes (zeros), mirroring how ζ(s) zeros control prime distribution. The angular part Y_l^m are spherical harmonics — the same functions appearing in our higher-dimensional primitive counting!

Key Analogy:

Radial Nodes ↔ Zeta Zeros: Both control oscillations. R_{nl}(r) has n-l-1 zeros determining radial probability. ζ(s) zeros at ρ_k control oscillations in π(x). Higher n gives more nodes; higher T gives more zeta zeros.
Quantization ↔ Coprimality: Quantum numbers (n,l,m) are discrete like lattice points. Angular momentum l² = l(l+1)ħ² is quantized like gcd=1 constraint.

Spherical Harmonics:

Y_l^m(θ,φ) = N_{lm} P_l^m(cos θ) e^{imφ} where P_l^m are associated Legendre polynomials. These are eigenfunctions of angular momentum operators, forming an orthonormal basis on the sphere — exactly what we use to analyze primitive lattice points in k dimensions via the k-ball volume formula!

ψ_{nlm} = R_{nl}(r)Y_l^m(θ,φ)   |   Radial nodes: n-l-1   |   Angular nodes: l

Wigner Phase Space — Quantum Quasi-Probability

The Wigner function W(x,p) represents quantum states in phase space (position × momentum). Unlike classical probability distributions, W can be negative — a signature of quantum behavior. For harmonic oscillators, eigenvalue spacing connects to RH via Montgomery-Odlyzko (GUE statistics). Coherent states are minimum-uncertainty Gaussians; Fock states show Laguerre polynomial structure.

0
0
0
2
1

Wigner Quasi-Probability W(x,p)

W(x,p) = (1/πℏ) ∫ ⟨x+y|ψ⟩⟨ψ|x-y⟩ e^{2ipy/ℏ} dy — can be negative (quantum signature)

Live Statistics

Marginal Distributions

Wigner Negativity

Mathematical Background

Wigner Function: W(x,p) = (1/πℏ)∫ψ*(x+y)ψ(x-y)e^{2ipy/ℏ}dy. Marginals give |ψ(x)|² and |φ(p)|². Negativity indicates non-classicality.
Coherent States: |α⟩ = e^{-|α|²/2}Σ(α^n/√n!)|n⟩. Minimum uncertainty ΔxΔp = ℏ/2. Gaussian Wigner function (always positive).
Fock States: W_n(x,p) = ((-1)^n/π)L_n(2(x²+p²))e^{-(x²+p²)}. L_n = Laguerre polynomial. Negative for n≥1.
Cat States: |cat⟩ = N(|α⟩±|-α⟩). Interference fringes in Wigner function. Signature of quantum superposition.
RH Connection: Harmonic oscillator E_n = ℏω(n+½). Montgomery-Odlyzko: Riemann zero spacings match GUE eigenvalue statistics.
Squeezed States: Reduced uncertainty in one quadrature (x or p) at expense of other. Used in gravitational wave detection (LIGO).

Prime k-Tuples — Generalized Twin Primes

Prime k-tuples generalize twin primes to patterns like (p, p+2, p+6) for prime triplets or (p, p+2, p+6, p+8) for prime quadruplets. The Hardy-Littlewood conjecture predicts their density using a product over primes. Admissible patterns (no residue class mod p covers all positions) can occur infinitely often. The first prime quadruplet is (5, 7, 11, 13).

Prime k-Tuples Distribution

Live Statistics

Tuple Density

Carmichael Numbers — Pseudoprimes

Carmichael numbers are composite numbers n satisfying a^n ≡ a (mod n) for all integers a — they pass Fermat's primality test despite being composite. The smallest is 561 = 3·11·17. Korselt's criterion: n is Carmichael iff n is squarefree and (p-1)|(n-1) for all primes p|n. There are infinitely many (Alford-Granville-Pomerance, 1994).

Carmichael Numbers (Pseudoprimes)

Live Statistics

Growth Rate

Mersenne Primes — 2^p - 1

Mersenne primes have the form M_p = 2^p - 1 where p is prime (necessary but not sufficient). They're connected to perfect numbers: if M_p is prime, then 2^{p-1}·M_p is perfect. The Lucas-Lehmer test efficiently determines primality. GIMPS (Great Internet Mersenne Prime Search) has found the largest known primes. As of 2024, 51 Mersenne primes are known, the largest being 2^82,589,933 - 1 with 24,862,048 digits.

Mersenne Numbers 2^p - 1

Live Statistics

Known Mersenne Primes

Continued Fractions — Best Rational Approximations

Every real number has a continued fraction [a₀; a₁, a₂, ...] giving best rational approximations. Convergents p_n/q_n satisfy |x - p_n/q_n| < 1/q_n². Quadratic irrationals have eventually periodic expansions. The golden ratio φ = [1; 1, 1, 1, ...] has the slowest convergence. Famous: π = [3; 7, 15, 1, 292, ...], with 355/113 being exceptionally accurate.

Continued Fraction Expansion

Live Statistics

Convergent Errors

Stern-Brocot Tree — All Positive Rationals

The Stern-Brocot tree contains every positive rational exactly once, in lowest terms. Starting from 0/1 and 1/0, each fraction a/b has left child (a+c)/(b+d) using its ancestor c/d. The mediant property connects to Farey sequences. Path from root encodes the continued fraction. The tree is a complete binary tree organizing ℚ⁺ beautifully.

/

Stern-Brocot Tree

Live Statistics

Pythagorean Triples — Integer Right Triangles

Pythagorean triples (a, b, c) satisfy a² + b² = c². Primitive triples (gcd = 1) are parametrized by a = m² - n², b = 2mn, c = m² + n² where gcd(m,n) = 1 and m-n is odd. The tree structure shows all primitives derive from (3,4,5) by three matrix transformations. There are infinitely many primitive triples, with density ~1/(2π) log N.

Pythagorean Triples a² + b² = c²

Live Statistics

Triple Distribution

Sum of Squares — r₂(n) Representations

The function r₂(n) counts representations of n as a sum of two squares: n = a² + b² (including signs and order). Fermat's theorem: prime p is sum of two squares iff p = 2 or p ≡ 1 (mod 4). General n is representable iff no prime p ≡ 3 (mod 4) appears to an odd power. Jacobi's formula: r₂(n) = 4(d₁(n) - d₃(n)) where d_i counts divisors ≡ i (mod 4).

Sum of Squares Representations

Live Statistics

r_k(n) Distribution

Quadratic Residues — Legendre Symbol Patterns

A quadratic residue mod p is an integer a where x² ≡ a (mod p) has a solution. The Legendre symbol (a/p) = 1 if a is a QR, -1 if not, 0 if p|a. Exactly (p-1)/2 non-zero residues are QRs. Quadratic reciprocity: (p/q)(q/p) = (-1)^{(p-1)(q-1)/4}. This "golden theorem" (Gauss) connects residue structure across primes.

Quadratic Residues mod p

Live Statistics

Legendre Symbol Pattern

Partition Function p(n) — Ways to Sum

The partition function p(n) counts ways to write n as a sum of positive integers, ignoring order. For example, p(5) = 7: 5, 4+1, 3+2, 3+1+1, 2+2+1, 2+1+1+1, 1+1+1+1+1. Hardy and Ramanujan proved the asymptotic formula p(n) ~ exp(π√(2n/3))/(4n√3). Ramanujan discovered remarkable congruences: p(5n+4) ≡ 0 (mod 5).

Partition Function p(n)

Live Statistics

Partition Growth

Bernoulli Numbers — Zeta at Negative Integers

Bernoulli numbers Bₙ appear in the power sum formula 1^k + 2^k + ... + n^k and connect to ζ(-n). They satisfy ζ(2n) = (-1)^{n+1}B_{2n}(2π)^{2n}/(2(2n)!), explaining why ζ(2) = π²/6. The tangent function has Taylor coefficients involving Bernoulli numbers. B₁ = -1/2 (or +1/2 by convention), and all odd Bₙ = 0 for n ≥ 3.

Bernoulli Numbers Bₙ

Live Statistics

Connection to ζ(s)

Fibonacci Sequence — Golden Ratio & Nature

The Fibonacci sequence F_n = F_{n-1} + F_{n-2} with F_1 = F_2 = 1 appears throughout mathematics and nature. The ratio F_n/F_{n-1} → φ = (1+√5)/2 ≈ 1.618 (golden ratio). Zeckendorf's theorem: every positive integer has a unique representation as a sum of non-consecutive Fibonacci numbers. Lucas numbers follow the same recurrence with L_1=1, L_2=3.

Fibonacci Sequence

Live Statistics

Ratio Convergence to φ

Catalan Numbers — Combinatorial Ubiquity

Catalan numbers C_n = (2n)!/((n+1)!n!) count numerous structures: valid parenthesizations, binary trees with n+1 leaves, paths below diagonal, triangulations of polygons, and more. They satisfy C_n = ΣC_iC_{n-1-i} and have generating function (1-√(1-4x))/(2x). The sequence 1, 1, 2, 5, 14, 42, 132, ... grows like 4ⁿ/(n^{3/2}√π).

Catalan Numbers Cₙ

Live Statistics

Growth of Cₙ

Aliquot Sequences — Iterated Sum of Divisors

The aliquot sequence of n iterates s(n) = σ(n) - n (sum of proper divisors). Perfect numbers are fixed points (s(n)=n). Amicable pairs satisfy s(a)=b, s(b)=a (e.g., 220↔284). Sociable numbers form longer cycles. The Catalan-Dickson conjecture asks if all sequences either terminate at 0, reach a perfect number, or enter a cycle. The sequence starting at 276 is famously unresolved.

Aliquot Sequence s(n) = σ(n) - n

Live Statistics

Sequence Trajectory

Cyclotomic Polynomials — Roots of Unity

The n-th cyclotomic polynomial Φₙ(x) is the minimal polynomial of primitive n-th roots of unity. It has degree φ(n) and integer coefficients. The factorization xⁿ - 1 = ∏_{d|n} Φ_d(x) connects roots of unity to divisibility. Cyclotomic fields ℚ(ζₙ) are fundamental in algebraic number theory and Fermat's Last Theorem.

Cyclotomic Polynomials Φₙ(x)

Live Statistics

Polynomial Degrees

Collatz Conjecture — The Simplest Unsolved Problem

Start with any positive integer n. If even, divide by 2; if odd, multiply by 3 and add 1. The Collatz conjecture states that this sequence always reaches 1. Despite its elementary statement, it remains unproven since 1937. Erdős said "Mathematics is not yet ready for such problems." Trajectories exhibit chaotic behavior with unpredictable stopping times.

Collatz Conjecture (3n+1)

Live Statistics

Trajectory

Collatz Conjecture Theory

T(n) = n/2 if n even, 3n+1 if n odd. Conjecture: T^k(n) = 1 for some k.
Stopping Time: Smallest k where T^k(n) < n. Total stopping time reaches 1.
Record Holders: n=27 takes 111 steps, reaching max value 9232.
Verified: Conjecture verified for all n < 2⁶⁸ ≈ 2.95 × 10²⁰.
Heuristic: Average trajectory decreases by factor 3/4 per step (geometric).

Highly Composite Numbers — Divisor Records

A highly composite number (HCN) has more divisors than any smaller positive integer. Ramanujan studied them extensively in 1915. HCNs have the form 2^{a₁}·3^{a₂}·5^{a₃}... with a₁ ≥ a₂ ≥ a₃ ≥ ... They're "anti-primes" in some sense. Superior highly composite numbers minimize n^{1/d(n)} and have deep connections to the Riemann Hypothesis.

Highly Composite Numbers

Live Statistics

d(n) Records

Perfect Numbers — When σ(n) = 2n

A perfect number equals the sum of its proper divisors: σ(n) = 2n. Euclid proved 2^{p-1}(2^p - 1) is perfect when 2^p - 1 is prime (Mersenne prime). Euler proved all even perfect numbers have this form. Whether odd perfect numbers exist is unknown — if they do, they exceed 10^{1500}. Only 51 perfect numbers are known.

Perfect, Abundant, Deficient

Live Statistics

σ(n)/n Distribution

Taxicab Numbers — Hardy-Ramanujan & Sums of Cubes

Taxicab numbers are the smallest integers expressible as sums of two positive cubes in n different ways. Ta(2) = 1729 is famous from Hardy's visit to Ramanujan, who instantly recognized it as "the smallest number expressible as the sum of two cubes in two different ways": 1729 = 1³ + 12³ = 9³ + 10³. These connect to Fermat's Last Theorem and Diophantine equations.

Taxicab Numbers (Hardy-Ramanujan)

Live Statistics

Representations

Elliptic Curves — Algebraic Groups & Cryptography

Elliptic curves are cubic curves with a remarkable group structure. The set of rational points E(ℚ) forms a finitely generated abelian group (Mordell-Weil theorem). Over finite fields 𝔽_p, elliptic curves are fundamental to modern cryptography (ECC). The Birch and Swinnerton-Dyer conjecture connects the rank of E(ℚ) to the behavior of L(E,s) at s=1 — one of the seven Millennium Prize Problems.

Elliptic Curve y² = x³ + ax + b

Live Statistics

Point Distribution

Elliptic Curve Theory & Number Theory Connections

E: y² = x³ + ax + b, Δ = -16(4a³ + 27b²) ≠ 0
Weierstrass Form: Standard form y² = x³ + ax + b. Smooth iff discriminant Δ ≠ 0.
Group Law: Chord-tangent process. P + Q found by line through P,Q, reflect third intersection.
Hasse's Theorem: |#E(𝔽_p) - p - 1| ≤ 2√p. Point count close to p+1.
Mordell-Weil: E(ℚ) ≅ ℤʳ ⊕ E(ℚ)_tors. Rank r is key invariant.
BSD Conjecture: ord_{s=1} L(E,s) = rank(E(ℚ)). Millennium Prize Problem ($1M).
Cryptography: ECDSA, ECDH use discrete log hardness on E(𝔽_p). secp256k1 for Bitcoin.
Famous Curves:
y² = x³ - x: Complex multiplication by i, conductor 32
y² = x³ - 2: Related to Fermat's Last Theorem for n=3
secp256k1: y² = x³ + 7 over 𝔽_p (p = 2²⁵⁶ - 2³² - 977), used in Bitcoin

Prime Constellations — Hardy-Littlewood Twin Prime Sieve Framework

The Hardy-Littlewood conjecture predicts prime pair density using an infinite product over primes. For gap H, let ν(p) = #{0,H} mod p residues covered. Then C_H = ∏ (1 - ν(p)/(p-1)) / (1 - 1/(p-1)) where ν(p) = 1 if p|H, else 2. This explains why Gap 6 ("sexy primes") appear twice as often as twins: at p=3, gap 6 eliminates only 1 residue class (since 6≡0 mod 3), while gaps 2 and 4 eliminate 2.

UNIQUE TOOL: Wessen Identity Verifier — R_modular = ¼ × C_H × M³ — connecting modular sieve densities with Hardy-Littlewood constants

Glossary: Symbol & Abbreviation Definitions (click to expand)
R or R_modular
The modular sieve density = (1/4) x prod[(p-1)(p-2)/p^2] over odd primes p. Represents probability that both n and n+H avoid all small prime divisors.
C or C_H
Hardy-Littlewood constant for gap H = prod[p(p-2)/(p-1)^2] with enhancement factors (p-1)/(p-2) when p divides H. For twins: C_2 = 0.6601618...
M or Mertens
Mertens product = prod[(p-1)/p] over odd primes. Asymptotically M ~ 2e^(-gamma)/ln(N) where gamma = 0.5772... is Euler-Mascheroni constant.
H or Gap
The gap between prime pairs. H=2 for twins (p,p+2), H=4 for cousins (p,p+4), H=6 for sexy primes (p,p+6).
v or nu(p)
Number of distinct residue classes eliminated mod p. For pairs: v=1 if p|H (overlapping constraints), v=2 otherwise.
k (in k-Tuples)
The size of the prime constellation. k=2 for pairs, k=3 for triplets, k=4 for quadruplets, and so on.
N or p_max
Upper bound for computation. Products are taken over all odd primes p where 3 <= p <= N.
N_R, D_R (BigInt)
Numerator and Denominator of R expressed as exact integers. Used for proving identity without floating-point errors.
Complete Component Reference (click to collapse)
The Wessen Identity (2025)
RH(pmax) = AH × CH(pmax) × [Mno2(pmax)]k
Standard Form (Twin Primes, k=3):
Rmodular = ¼ × CH × M³
Connects finite modular sieve densities with Hardy-Littlewood asymptotic constants — exact to machine precision
Asymptotic Closed Form (As pmax → ∞)
RH(pmax) ~ CH(∞) × e-3γ / [4 × ln³(pmax)]
γ = 0.5772...
Euler-Mascheroni
e = 0.5615
Mertens Factor
e-3γ = 0.1770
Universal Asymptotic
~8× correction
Finite versus Asymptotic
Via Mertens' theorem: M ~ e/ln(p) ⟹ M³ ~ e-3γ/ln³(p) | Decay rate: 1/ln³(pmax) — logarithmically slow
Component Definitions
M (Modulus) primorial or lcm
Product of primes up to pmax. Example: M = 2×3×5×7 = 210 for pmax = 7
φ(M) Euler's Totient
Count of integers 1 ≤ r < M that are coprime to M. These are the "admissible" residue classes.
φ(30) = 8 → residues {1, 7, 11, 13, 17, 19, 23, 29}
C(M) = φ(M)/M Coprime Density
Fraction of residues coprime to M. Equals the Euler product ∏(1 - 1/p) over primes p|M.
C(30) = 8/30 = 0.2667 = ½ × ⅔ × ⅘
Mno2 M without factor of 2
Mno2 = M/2 if M is even, else M. Removes the trivial factor of 2 from the primorial.
M = 30 → Mno2 = 15  |  M = 210 → Mno2 = 105
CH Hardy-Littlewood Constant
CH = ∏[p(p-2)/(p-1)²] × ∏[p|H, p odd: (p-1)/(p-2)]. Product over odd primes.
C₂ ≈ 0.6601618 (twin prime constant)
AH Leading Coefficient
Rational constant, typically ¼ for twin primes. Depends on constellation type.
AH = 1/4 for pairs  |  varies for k-tuples
Gap Constants CH — Why Some Gaps Are More Common
Gap H Name CH Ratio to C₂ Enhancement (odd p|H)
2 Twin Primes 0.6601618 None (only 2|2)
4 Cousin Primes 0.6601618 None (only 2|4)
6 Sexy Primes 1.3203236 3|6 → (3-1)/(3-2) = 2
8 0.6601618 None (only 2|8)
30 Primorial Gap 2.6406472 3|30 → 2, 5|30 → 4/3 → 2 × 4/3 = 8/3
210 2×3×5×7 5.2812944 3→2, 5→4/3, 7→6/5 → 2 × 4/3 × 6/5
Enhancement factor for odd prime p dividing H: (p-1)/(p-2). This is why gap 6 primes appear twice as often as twins!
Why This Identity Matters
The Identity bridges two mathematical worlds:
Analytic Side
Hardy-Littlewood constants CH from infinite products — asymptotic predictions
Algebraic Side
Finite modular arithmetic in (ℤ/Mℤ)× — exact computable counts
The identity shows that Rmodular (counting admissible pairs mod M) equals exactly ¼ × CH × M³, verified computationally to machine precision across all prime constellation types.
EULER PRODUCT
∏(1-1/p) = φ(M)/M
GAP PAIRS
#{r: gcd(r,M)=gcd(r+H,M)=1}
IDENTITY CHECK
R = ¼ × CH × M³ OK
(for example, 1/4 instead of 0.25, 2/3 instead of 0.666...) Decimals: use header control

Residue Class Elimination — Per-Prime Sieving (Click any prime bar for details)

Surviving Eliminated p | H (divides gap)

Live Statistics

Running Product C_H(p) → C_H(∞)

Per-Prime Factor (1 - 1/(p-1)²) × Enhancement

Step-by-Step Convergence — Per-Prime Contributions

p ν(p) p|H? Base Factor
p(p-2)/(p-1)²
Enhancement
(p-1)/(p-2)
Combined Running C_H Mertens M R = (1/2k)×C×M2k-1 R_modular

Scale Analysis: R = (1/2k) × C_H × M2k-1 versus R_modular

p_max # Primes C_H(p) M(p) R = (1/2k)×C×M2k-1 R_modular Ratio

Theory: Hardy-Littlewood Constants & The Identity

Hardy-Littlewood Constants C_H

Base factor per prime p > 2:
p(p-2)/(p-1)^2 = 1 - 1/(p-1)^2
Enhancement when p|H:
(p-1)/(p-2) — extra factor if prime divides gap
Hardy-Littlewood constant C_H:
C_H = prod[p(p-2)/(p-1)^2] x prod[p|H: (p-1)/(p-2)]
Twin prime constant:
C_2 = prod[1 - 1/(p-1)^2] = 0.6601618158...

The Identity (Exact!)

For pairs (k=2):
R_modular = (1/4) x C_H x M^3
R_modular = (1/4) x prod[(p-1)(p-2)/p^2]
M = prod[(p-1)/p] = Mertens product
Generalized (k-tuples):
R = (1/2^k) x C_k x M^(2k-1)
k=2: M^3, k=3: M^5, k=4: M^7, ...

Why Gap 6 ≈ 2 × Gap 2

For gap 2: No odd prime divides 2, so C_2 = prod[p(p-2)/(p-1)^2] only.

For gap 6: Prime p=3 divides 6, adding enhancement factor:

(p-1)/(p-2) at p=3 = (3-1)/(3-2) = 2/1 = 2

So C_6 = C_2 x 2, explaining why sexy primes are twice as common as twins!

Gap 30 (=2x3x5): Gets 2 x (4/3) = 2.67x enhancement

Gap 210 (=2x3x5x7): Gets 2 x (4/3) x (6/5) = 3.2x enhancement

What's Elementary versus Hard

Elementary (proven):

  • Computing C_H to arbitrary precision via product formula
  • The Identity R = (1/2k) × C × M2k-1 (exact, verifiable)
  • Enhancement factors (p-1)/(p-2) for p|H

Hard (unproven conjectures):

  • pi_2(x) ~ C_2 x Li_2(x) (Hardy-Littlewood)
  • Infinitely many twin primes (Polignac)
  • Connection to asymptotic prime pair counts

Why the Identity Matters

The Identity provides an exact algebraic relationship at any finite cutoff. It shows C_H is not just an asymptotic constant but has precise meaning in finite sieve computations. This may offer new approaches to understanding prime constellation densities.

Möbius Shell Sieve — Complete Platform Overview

This comprehensive research platform integrates 67 interactive visualization tools exploring number theory, from lattice points to the Riemann Hypothesis. Every tab features live dashboards, theory panels, preset examples, multiple charts, CSV export, and click-to-inspect modals.

Featured: The Wessen Identity (Getachew, 2025)

A novel exact finite identity connecting modular sieve densities with Hardy-Littlewood constants:

R_H(p_max) = (1/2k) × C_H(p_max) × [M(p_max)]2k-1
where k is the tuple size (k=2 for pairs, k=3 for triplets, and so on)

For twin primes (k=2): R = (1/4) × C₂ × M³, verified to machine precision via BigInt exact arithmetic. The identity holds for all prime gaps H and generalizes to k-tuples. This is not a numerical coincidence — it's an exact algebraic identity arising from the factorization of sieve products.

Explore: Wessen Identity Tab — 8 sub-tabs with interactive verification, step-by-step computation, BigInt proofs, and k-tuple generalization.

Mathematical Credits & Historical Attribution

This platform visualizes theorems and concepts developed by brilliant mathematicians over centuries:

Leonhard Euler (1707-1783) — Euler product ζ(s)=∏(1-p⁻ˢ)⁻¹, Basel problem ζ(2)=π²/6, totient function φ(n), discovered e and formalized much of number theory.
Carl Friedrich Gauss (1777-1855) — Gaussian integers ℤ[i], quadratic reciprocity, prime counting conjecture π(x)~x/ln(x), Circle Problem lattice point counting.
Bernhard Riemann (1826-1866) — Riemann zeta function analytic continuation, Riemann Hypothesis (all nontrivial zeros have Re(s)=½), prime distribution via zeros.
August Ferdinand Möbius (1790-1868) — Möbius function μ(n), Möbius inversion formula, foundational to inclusion-exclusion in number theory.
Peter Gustav Lejeune Dirichlet (1805-1859) — Dirichlet L-functions L(s,χ), primes in arithmetic progressions, Dirichlet characters, hyperbola method.
Arthur Cayley (1821-1895) — Cayley transform mapping disk↔half-plane, foundational to hyperbolic geometry and modular forms.
John Farey (1766-1826) — Farey sequences F_n of reduced fractions, mediant property, connection to Ford circles.
Lester R. Ford (1886-1967) — Ford circles tangent to real axis at rationals, geometric visualization of Farey sequences.
G.H. Hardy (1877-1947) & J.E. Littlewood (1885-1977) — Prime race analysis, circle method, asymptotic analysis of prime distribution, twin prime conjecture.
Wacław Sierpiński (1882-1969) — Sierpiński problem (1964): integers not expressible as 6ab±a±b, contributions to number theory and set theory.
Viggo Brun (1885-1978) — Brun sieve for twin primes, proved Σ1/p (twin primes) converges (Brun's constant ≈1.902).
Alphonse de Polignac (1826-1863) — Twin prime conjecture (1849): infinitely many primes p where p+2 is also prime.
Christian Goldbach (1690-1764) — Goldbach conjecture (1742): every even integer ≥4 is sum of two primes. Letter to Euler.
Sophie Germain (1776-1831) — Sophie Germain primes (p where 2p+1 is also prime), contributions to Fermat's Last Theorem and elasticity theory.
Harald Cramér (1893-1985) — Cramér's conjecture on prime gaps: g_n = O((ln p_n)²), probabilistic model for primes.
Yitang Zhang (1955–) — Bounded gaps between primes (2013): infinitely many pairs with gap ≤ 70,000,000, later reduced to 246 by Maynard-Tao.

All Interactive Tools (68+ tabs, 2 unified explorers)

[*] Unified Explorers (New Dec 2024)

ℤ² Lattice Explorer — 3 unified tools: Primitive Lattice Points (6/π² density, Basel), Gaussian ℤ[i] (complex primes, norms, UFD), Circle Problem (N(R)=πR²+E(R), Hardy conjecture). Each sub-view shows dedicated theory.
ζ Riemann Hypothesis Hub — 9 unified tools: RH Error Bound, Hardy Z(t), Gram Points, Explicit Formula, Zero Count N(T), Argand Plot, Zeta Real, Montgomery Pair Correlation, GUE Statistics. Comprehensive RH exploration suite.

* Original Research

Wessen Identity — Novel finite identity R = (1/2k) × C × M2k-1 connecting modular sieve density to Hardy-Littlewood constants. For twin primes: R = ¼ × C × M³. Verified exactly via BigInt. 8 sub-tabs: Sieve Visualizer, Integer N Verifier, Algebraic Proof, BigInt Exact, All Gaps H, k-Tuples, Convergence, Open Problems. (Getachew, 2025)
Chord CV — Primality heuristic via coprime gap uniformity. CV separates primes (low) from composites (high). 92% separation at n≤10000. (Getachew, 2025)

Lattice & Geometry

2D Lattice — (Part of ℤ² Explorer) Gauss circle problem: count lattice points in disk. Primitive density → 6/π² (Euler). 15+ color schemes, Smith chart transform.
3D Ball — Extends to 3D sphere. Primitive density → 1/ζ(3) ≈ 0.832 (Apéry's constant). Drag rotation.
Gaussian ℤ[i] — (Part of ℤ² Explorer) Gauss: complex integers a+bi. Norm N(z)=a²+b². Gaussian primes, unit group {±1,±i}.
Circle Problem — (Part of ℤ² Explorer) Gauss-Dirichlet: N(R)=πR²+E(R). Error E(R)=O(R^θ), θ between 1/4 and 1/2. RH connection.
Möbius μ(n) — Visualize Möbius function: μ(n)=(-1)^k if squarefree with k prime factors, else 0. Mertens function M(x).

Characters & Primes (Tabs 15-17)

Dirichlet χ — Dirichlet characters mod q. L-functions L(s,χ)=Σχ(n)n⁻ˢ. Prime distribution in residue classes.
Twin Primes — Polignac conjecture: infinitely many (p, p+2). Brun's constant B₂≈1.902. Hardy-Littlewood conjecture.
Prime Counting π(x) — Gauss/Riemann: π(x)~x/ln(x)~Li(x). Prime number theorem. Chebyshev bounds.

Advanced Topics (Tabs 18-26)

Composite Channels — How composite moduli project residues onto Farey channels. Reducibility analysis, channel multiplicities.
Coprime Pairs — Density theorem: P(gcd(a,b)=1)=6/π². Disc analysis V(R), error E(R), RH connection |E(R)|=O(R^½⁺ᵋ).
Sierpiński — Sierpiński problem (1964): integers not expressible as 6ab±a±b. 78 known uncovered ≤1000. Unsolved.
k-Free — Boundary cancellation principle: k-free integers have density 1/ζ(k), error O(N^(1/k)) from boundary.
Euler ∏ — Compute π and ζ(2n) via Euler product. Gap-class decomposition, residue channel analysis mod m.
Chord CV — Chord length uniformity heuristic (Getachew 2025): CV separates primes (low) from composites (high). 92% separation at n≤10000.
Goldbach — Goldbach conjecture: every even n≥4 is sum of two primes. Comet visualization, partition count G(n), Hardy-Littlewood prediction.
Prime Gaps — Gap distribution g_n = p_{n+1} - p_n. Record gaps, Cramér's conjecture g_n = O((ln p)²), gap/ln(p) ratio analysis.
Sophie Germain — Sophie Germain primes (p where 2p+1 also prime), safe primes, Cunningham chains. Cryptographic applications.

RH Connection (Tabs 27-29)

Mertens M(x) — Mertens function M(x)=Σμ(n) for n≤x. RH ⟺ |M(x)|=O(x^{1/2+ε}). Tracks μ(n) cumulative imbalance. M(x)/√x ratio analysis.
Chebyshev ψ — Chebyshev function ψ(x)=Σ Λ(n) and θ(x)=Σ log p. Von Mangoldt Λ(n). PNT: ψ(x)~x. RH: ψ(x)=x+O(√x log²x).
Li(x) — Logarithmic integral Li(x)=∫₂ˣ dt/ln(t). Best elementary π(x) approximation. Littlewood's sign changes. Skewes number ~10³¹⁶.

Arithmetic Functions (Tabs 30-32)

Divisor d(n) — τ(n) counts divisors, σ(n) sums them. Highly composite numbers, perfect/abundant/deficient classification. Average τ(n) ~ log n.
Liouville λ — λ(n)=(-1)^{Ω(n)} where Ω counts primes with multiplicity. L(x)=Σλ(n). Pólya conjecture (disproved). RH connection.
Mangoldt Λ — Λ(n)=log p if n=p^k, else 0. Core of Chebyshev ψ(x). Explicit formula: ψ(x)=x-Σ x^ρ/ρ. Prime power decomposition.

Advanced & Visual (Tabs 33-35)

Ramanujan c_q — Ramanujan sum c_q(n) = Σ_{gcd(a,q)=1} e^{2πian/q}. Always integer! Fourier basis for arithmetic functions. Heatmap and unit circle views.
Ulam Spiral — Integers on square spiral, primes highlighted. Diagonal patterns reveal quadratic polynomials. Euler's n²+n+41. Discovered 1963.
Sacks Spiral — Primes at (√n, 2π√n) Archimedean spiral. Parabolic arms from quadratic sequences. Squares on x-axis. Visual prime clustering.

Critical Line (Tabs 36-41)

Hardy Z(t) — Z(t)=e^{iθ(t)}ζ(½+it) is REAL. Sign changes = zeros on critical line. RH: all zeros are sign changes. First zeros: 14.135, 21.022, 25.011...
Gram Points — g_n where θ(g_n)=nπ. Organize zero counting. Gram's Law: one zero per interval (~73%). Violations form Gram blocks. Lehmer pairs.
Explicit π(x) — π(x)=Li(x)-Σ_ρ Li(x^ρ)-log(2)+... Each zero ρ contributes oscillation. Animation builds π(x) from zeros. RH ⟹ O(√x log x) error.
N(T) Zeros — Zero counting N(T)=#{ρ: 0
ζ(s) Argand — Domain coloring of ζ(s) in complex plane. Phase→hue, modulus→brightness. Zeros appear as color wheels. Critical line Re(s)=½ highlighted.
ζ(s) Real — Zeta on real axis: pole at s=1, Basel ζ(2)=π²/6, Apéry ζ(3), trivial zeros at s=-2,-4,-6,... Functional equation visualization.

Zero Statistics (Tabs 42-43)

Montgomery Pair Correlation — Spacing between zeros follows R₂(x) = 1-(sin πx/πx)². Discovered by Hugh Montgomery (1973). Connection to GUE random matrices.
GUE Statistics — Zeros follow Gaussian Unitary Ensemble (random matrix) statistics. Wigner surmise: P(s)=(π/2)s·exp(-πs²/4). Level repulsion: P(0)=0.

Prime Races (Tab 44)

Prime Races — Chebyshev bias: primes ≡3 (mod 4) outnumber ≡1 (mod 4) about 99.59% of the time! Rubinstein-Sarnak (1994) proved this under GRH.

L-Functions (Tabs 45-46)

Dirichlet L-functions — L(s,χ) = Σχ(n)/nˢ for Dirichlet characters χ mod q. Principal L-function equals ζ(s)×(local factors). Others are entire.
L-function Zeros — Generalized RH: all nontrivial zeros of all L(s,χ) lie on Re(s)=½. Low-lying zeros cause the Chebyshev bias in prime races.

Quantum-Number Theory (Tab 47)

Quantum Orbitals — ψ_{nlm}(r,θ,φ) = R_{nl}(r)Y_l^m(θ,φ). Radial nodes (n-l-1) mirror zeta zeros. Spherical harmonics Y_l^m connect to k-dimensional ball volumes. Quantization ↔ coprimality.

Prime Patterns (Tabs 48-50)

Prime k-Tuples — Generalized twin primes: triplets (p, p+2, p+6), quadruplets (p, p+2, p+6, p+8). Hardy-Littlewood conjecture predicts density. Admissibility criterion.
Carmichael Numbers — Composite n with a^n ≡ a (mod n) for all a. Pass Fermat test. 561 = 3·11·17 is smallest. Korselt's criterion. Infinitely many exist (1994).
Mersenne Primes — M_p = 2^p - 1 where p is prime. Connected to perfect numbers. Lucas-Lehmer test. GIMPS project. 51 known, largest has 24M+ digits.

Rational Approximation (Tabs 51-52)

Continued Fractions — [a₀; a₁, a₂, ...] gives best rational approximations. φ = [1;1,1,...] slowest convergence. π = [3;7,15,1,292,...]. Quadratic irrationals are periodic.
Stern-Brocot Tree — Complete binary tree containing all positive rationals exactly once. Mediant property. Path encodes continued fraction. Connects to Farey sequences.

Diophantine Equations (Tabs 53-55)

Pythagorean Triples — (a,b,c) with a²+b²=c². Parametrized by a=m²-n², b=2mn, c=m²+n². Tree structure from (3,4,5). Infinitely many primitives.
Sum of Squares — r₂(n) counts n=a²+b². Fermat: prime p=□+□ iff p≡1(mod 4). Jacobi: r₂(n)=4(d₁(n)-d₃(n)). Gauss circle problem connection.
Quadratic Residues — QR mod p: x²≡a has solution. Legendre symbol (a/p). Quadratic reciprocity: (p/q)(q/p)=(-1)^{(p-1)(q-1)/4}. Gauss's "golden theorem".

Combinatorial Sequences (Tabs 56-59)

Partitions p(n) — Ways to write n as sum. p(5)=7. Hardy-Ramanujan asymptotic. Ramanujan congruences: p(5n+4)≡0(mod 5). Generating function ∏(1-x^k)^{-1}.
Bernoulli Numbers — B_n in power sums and ζ(-n). ζ(2n)=(-1)^{n+1}B_{2n}(2π)^{2n}/(2(2n)!). B₂=1/6 → ζ(2)=π²/6. Tangent Taylor coefficients.
Fibonacci — F_n=F_{n-1}+F_{n-2}. Ratio→φ=(1+√5)/2. Binet formula. Zeckendorf representation. Lucas numbers. Golden spiral. Ubiquitous in nature.
Catalan Numbers — C_n=(2n)!/((n+1)!n!). Count: parentheses, binary trees, lattice paths, triangulations. C_n~4ⁿ/(n^{3/2}√π). Over 200 combinatorial interpretations.

Divisor Theory (Tabs 60-63)

Aliquot Sequences — Iterate s(n)=σ(n)-n. Perfect: fixed point. Amicable: 2-cycle (220↔284). Sociable: longer cycles. 276 sequence: open problem after 10⁹ iterations.
Cyclotomic — Φ_n(x) minimal polynomial of primitive n-th roots. deg=φ(n). x^n-1=∏_{d|n}Φ_d(x). Integer coefficients (remarkable!). Φ₁₀₅ first with |coeff|>1.
Highly Composite — d(n)>d(m) for all m
Perfect Numbers — σ(n)=2n. Euclid: 2^{p-1}(2^p-1) perfect when M_p prime. All even perfect have this form. Odd perfect: unknown if exist (if so, >10^{1500}).

Famous Numbers (Tabs 64-65)

Taxicab — Ta(n) = smallest sum of cubes n ways. Ta(2)=1729 (Hardy-Ramanujan). 1729=1³+12³=9³+10³. Ta(3)=87539319. Fermat-Wiles connection.
Elliptic Curves — y²=x³+ax+b forms abelian group. Mordell-Weil: E(ℚ)≅ℤʳ⊕torsion. BSD conjecture (Millennium Prize). ECDSA cryptography. secp256k1 for Bitcoin.

Dynamics (Tab 66: Collatz)

Collatz Conjecture — T(n)=n/2 or 3n+1. Conjecture: all sequences reach 1. Simplest unsolved problem. Verified to 2^68. n=27 takes 111 steps. Erdős: "not ready for such problems".

Key Theorems Visualized

Euler Product (1737): ζ(s) = ∏p prime(1-p⁻ˢ)⁻¹ for Re(s)>1. Connects primes to zeta function.
Basel Problem (Euler 1734): ζ(2) = 1+1/4+1/9+... = π²/6. First exact value of ζ(2n).
Möbius Inversion (1832): If g(n)=Σ_{d|n}f(d), then f(n)=Σ_{d|n}μ(d)g(n/d). Fundamental identity.
Primitive Density: #{gcd=1 in B_k(R)}/#{all in B_k(R)} → 1/ζ(k) as R→∞.
Dirichlet's Theorem (1837): Infinitely many primes in arithmetic progression a+nd when gcd(a,n)=1.
Prime Number Theorem (1896): π(x) ~ x/ln(x). Proved independently by Hadamard and de la Vallée Poussin.
Riemann Hypothesis (1859): All nontrivial zeros of ζ(s) satisfy Re(s)=½. Millennium Prize problem.
Hardy-Littlewood Conjecture: Twin prime count ~ 2C₂∫dx/(ln x)² where C₂≈0.66 is twin prime constant.

References & Further Reading

Edwards, H.M. (1974). Riemann's Zeta Function. Academic Press. — Comprehensive treatment of ζ(s).
Apostol, T.M. (1976). Introduction to Analytic Number Theory. Springer. — Standard graduate text.
Hardy, G.H. & Wright, E.M. (2008). An Introduction to the Theory of Numbers. 6th ed. Oxford. — Classic reference.
Davenport, H. (2000). Multiplicative Number Theory. 3rd ed. Springer. — Dirichlet L-functions and characters.
Titchmarsh, E.C. (1986). The Theory of the Riemann Zeta Function. 2nd ed. Oxford. — Definitive ζ(s) reference.
Montgomery, H.L. & Vaughan, R.C. (2007). Multiplicative Number Theory I. Cambridge. — Modern treatment.
Iwaniec, H. & Kowalski, E. (2004). Analytic Number Theory. AMS. — Advanced techniques.
OEIS — Online Encyclopedia of Integer Sequences: oeis.org

Special Acknowledgments — Standing on the Shoulders of Giants

This tool exists because of brilliant mathematicians and educators who made these ideas accessible to all.

Foundational Pioneers

August Ferdinand Möbius (1790-1868) — The function at this platform's heart
Bernhard Riemann (1826-1866) — Analytic continuation and the Hypothesis
Leonhard Euler (1707-1783) — Euler products, Basel problem, and so much more
Carl Friedrich Gauss (1777-1855) — Circle problem and prime counting vision

Analytic Number Theory

G.H. Hardy & J.E. Littlewood — Circle method and exponential sums
Ivan Vinogradov (1891-1983) — Trigonometric sum bounds
Hugh Montgomery — Pair correlation of zeros
Atle Selberg (1917-2007) — Sieve methods

Modern Contributors

Peter Sarnak — Möbius randomness and quantum chaos
Terence Tao — Structure vs. randomness in mathematics
Andrew Granville — Analytic number theory advances
Kannan Soundararajan — L-functions and multiplicative functions

Computational Mathematics

Donald Knuth — Algorithms and mathematical typography
Andrew Odlyzko — Computational verification of RH
Mathematical Software Community — Open source tools
Visualization Pioneers — Making math visual and accessible

Special Recognition for Mathematical Education

Grant Sanderson (@3blue1brown)

For revolutionizing mathematical education through beautiful visualizations and making complex concepts accessible to millions worldwide. His work has inspired a new generation of mathematical explorers and educators — including this platform.

"The essence of mathematics is not to make simple things complicated, but to make complicated things simple." — S. Gudder

Support This Project

If this tool has helped your research, studies, or exploration of mathematics, consider supporting continued development!

Donate via PayPal

Your support enables advanced mathematical visualization tools and open-source research!

Platform Features

  • Live Dashboards: Real-time statistics with big number cards and detailed breakdowns
  • Theory Panels: Mathematical context and key facts for each visualization
  • Multiple Charts: Plotly-powered interactive charts with hover details and zoom
  • Click Inspector: Click any point/cell for detailed modal analysis
  • CSV Export: Download data for external analysis
  • Screenshot: High-resolution PNG export with embedded dashboard
  • Dual Controls: Every slider has matching input box for precise values
  • 7 Theme Options: Dark, Light, Midnight, Ocean, Forest, Sunset, Sepia
  • Precision Control: 2-16 decimal places for all calculations
  • Fraction Display: Toggle to show values like 3/4 instead of 0.75
  • Glossary: Symbol explanations in complex tabs like Wessen Identity

About

Created by: Wessen Getachew (@7dview) · GitHub

Philosophy: Making deep number theory accessible through interactive visualization. Every theorem deserves to be seen, not just read.

Technology: Pure HTML5/CSS3/JavaScript. No frameworks, no dependencies except Plotly.js for charts.

License: Educational use encouraged. Please cite when using in academic work.

"God made the integers, all else is the work of man." — Leopold Kronecker

Community Guestbook

Leave a message for other visitors! Your comments are saved in your browser's local storage. Share your thoughts on the visualizations, favorite discoveries, or say hello to fellow math enthusiasts.

Messages stored locally in your browser

Guestbook Messages Loading...

Loading messages...
Press Enter to post. Your name is remembered for next time.

Quick Messages

Stats

0
MESSAGES
0
AUTHORS
About

Messages are stored in your browser's localStorage. Clear browser data to reset.

Formatting: Use `code` for inline code, **bold** for emphasis.

Contact Creator
Twitter: @7dview