Coprime means sharing no common factor. Pick a random integer: what's the chance it stays coprime
to n+1 consecutive integers in a row?
A single Euler product, C(n),
tracks that density for every n. Everything on this page is built from it.
C(1) ≈ 0.530711… is the first step down from certainty — set n below to lock a ground state and watch each later step live.n =
▸Fg 308/466 66.1% · L 150/466 32.2% · C 150/308 48.7%
Advanced Modulus Selection — restrict which rings (M) draw, across all views
Multi-select:
Single M:Range:–
All rings 1–G active (default)
GG=31 (grid p²=961)
0°C(1) = 0.530711820472
Zoom outin
×
Zoom out
▸ Intro — what is C(n)?
Pick a random whole number. Now ask: how likely is it — and the next n numbers right
after it — to all share no common factor with a fixed modulus M? That probability
has a name, C(n), and it drops in clean, predictable steps — one jump at every prime.
It starts at certainty: C(0) = 1, exactly. The first step lands on
C(1) ≈ 0.530711…, and nothing about it is mysterious — it's ζ(2) times the
Feller–Tornier product ∏p(1−2/p²), and the result has its own
classical entry. Two known constants multiplied, one known answer — everything
after that first step is where this site begins.
D(1) = C(1)/ζ(2) = ∏p(1−2/p²) same product, no ζ(2) factor — the Feller–Tornier product DFT (the classical F–T constant is ½(1+DFT))
= (1/2)·(7/9)·(23/25)·(47/49)·…
≈ 0.322634098939
Natural density of pairs (r, M) with gcd(r, M+j) = 1 for all j = 0,…,n, rescaled by ζ(2) so that C(0) = 1.
At n = 1: C(1) = ζ(2)·DFT ≈ 0.5307, where DFT = ∏p(1−2/p²) is the Feller–Tornier Euler product.
The classical Feller–Tornier constant CFT = ½(1 + DFT) ≈ 0.6613 is a distinct object.
▸
Advanced — custom rings & χ(r) filter
applies to every view
Dirichlet Character Controls
Advanced Modulus Selection — restrict which rings (M) draw, across all views
Multi-select:
Single M:Range:–
All rings 1–G active (default)
▸
Sector Path
b·r − a·M = s · s=0 is the ray r/M=a/b, s=±1 are Farey neighbours
a
/ b
Label:Side:
Point size:1.00×Label size:1.00×
Point Detail
▸
Active Gaps
twin / cousin / sexy-prime highlighting — applies to every view
Custom g:offSEMANTICS:
Dynamic Gap Generation
Max Gap:
Add Consecutive Range — From:To:
Inspected Points 0
▸
Show Working
prime-by-prime Euler product · fraction or decimal · export PNG / CSV
Display:Primes:
▸
Goldbach Overlay
every even N = p + q with p, q prime, highlighted as (r,M) pairs on the lattice
N =N=—
N = —0 prime pair(s) in the current grid
▸Smith Chart — Ring-Polar Lattice through Γ(z)=(z−1)/(z+1)z=R·e^iθ, R=ring radius per M, θ=2πr/M+α — same angular layout as the Ring view, then Cayley-transformed
Rotation α:0°Presets:speedZoom out:
teal = survives next ring · red = dies
Dot size:1.0×Labels:Label size:1.0×
Theory:
Each residue (r,M) is first placed in polar form — radius R(M) growing with the ring index, angle θ=2πr/M+α matching the Ring view's own convention — then passed through the same Cayley map Γ(z)=(z−1)/(z+1) used by the Conformal view's "Smith Chart" map option. The teal circles are the actual images of each ring's |z|=R(M) locus; the violet rays are images of fixed angles, rotating live with α. This is a different construction from the Conformal dropdown, where (r,M) are read directly as Cartesian coordinates in the upper half-plane.
Grid — Coprime LatticeGold = block-coprime depth ≥ n · Teal = coprime only · Dark = not coprime
Grid line opacity:7%Dot scale:1.0×Plot:
Theory:
Each cell (r, M) is gold if gcd(r, M+j) = 1 for all j = 0…n, teal if only gcd(r,M) = 1, dark otherwise. The density of gold cells converges to D(n) = C(n)/ζ(2) as G→∞.
Ring — Primorial Residue Circlesr on concentric ring M · angle = 2πr/M · colored by depth/mode
Line weight:0.40Dot scale:1.0×
Theory:
Each ring M holds the φ(M) coprime residues r mod M placed at angle 2πr/M. As M grows the rings fill out — the limiting density is C(n). Prime rings (teal) show the cleanest structure.
Farey Strip — r/M × log(2/M)x = r/M ∈ (0,1) · y = log(2/M)/log(2/G) · Farey mediant structure visible at all scales
Dot scale:1.0×Y stretch:1.0
Theory:
The Farey strip maps each (r,M) to x = r/M, y = log(2/M). Farey mediants appear as intermediate points between parent fractions; primes produce the cleanest horizontal levels. Increase Y-stretch to compress high-M rows.
n1p=2
Lift Dynamics — r → r mod (M+1)Teal arcs = lift survives · Coral arcs = lift broken · Concentric rings by M
Arc opacity:18%Dot scale:1.0×Thick:0.7px
DynamicsSpeed140ms
Theory:
Each arc connects r on ring M to r mod (M+1) on ring M+1. Teal = gcd(r mod(M+1), M+1) = 1 (lift survives); coral = lift fails. The ±1 path (r = (M±1)/2) traces the half-barrier. The prime spiral marks the largest prime ≤ G.
▸ Intro — what is C(n)?
Pick a random whole number. Now ask: how likely is it — and the next n numbers right
after it — to all share no common factor with a fixed modulus M? That probability
has a name, C(n), and it drops in clean, predictable steps — one jump at every prime.
It starts at certainty: C(0) = 1, exactly. The first step lands on
C(1) ≈ 0.530711…, and nothing about it is mysterious — it's ζ(2) times the
Feller–Tornier product ∏p(1−2/p²), and the result has its own
classical entry. Two known constants multiplied, one known answer — everything
after that first step is where this site begins.
D(1) = C(1)/ζ(2) = ∏p(1−2/p²) same product, no ζ(2) factor — the Feller–Tornier product DFT (the classical F–T constant is ½(1+DFT))
= (1/2)·(7/9)·(23/25)·(47/49)·…
≈ 0.322634098939
digit precision key■ 1–14fully reliable (IEEE-754 double)*■ 15–16last float digits — may carry rounding noise■ 17+beyond float precision — toFixed padding*for n≠1, actual reliability is ~11 dp (float summation error), not the full 14 shown — n=1 is the exception: exact, OEIS-sourced.
mode— exact analytic value
C(n)
—
ζ(2) × D(n)
D(n) = raw density
—
ζ(2) = 1.644934… D(n) = C(n)/ζ(2)
Block length
2
n+1 consecutive integers checked for coprimality
Saturated primes
1
p ≤ n+1 → factor = 1−1/p next at n = —
Saturation: prime p is active (p > n+1) contributing 1−(n+1)/p², or
saturated (p ≤ n+1) contributing 1−1/p.
As n→∞, D(n)=C(n)/ζ(2) ∼ e−γ/ln(n+1) (Mertens), hence C(n) ∼ ζ(2)·e−γ/ln(n+1).
Feller–Tornier note: at n=1, D(1)=∏p(1−2/p²)≈0.3226 is the FT Euler product DFT;
the classical constant CFT=½(1+DFT)≈0.6613 is distinct — our C(1)=ζ(2)·DFT≈0.5307.
Export
▸Block-Coprimality CanvasGrid · Ring · Farey · Lift · 3D Cube
Block-Coprimality Canvas
GLOBALColor mode:Labels:Label size:22
Link grid-ring n
Inspect
Grid view — cell (r, M): block-coprime · coprime-only · neither. Scroll to zoom, drag to pan, hover to inspect.
▸ Grid structure, barriers & view modes
Grid structure: Column r = residue, row M = modulus. Cell (r,M) is
gold if gcd(r,M+j)=1 for all j=0…n (block-coprime at current n),
teal if coprime to M only, dark otherwise.
The fraction of gold cells converges to D(n) = C(n)/ζ(2).
Barriers overlay Farey fraction paths r/M = k/j; these are the "lift barriers" where block-coprimality fails.
View modes (Euclidean, Fermat, Farey, Ulam spiral) rearrange the cells to reveal different structural patterns.
Ring view — concentric rings M=2…mMax. Dot r at angle 2πr/M. Hover to inspect.
Speed:180
Gap g:offmax 64Label:
▸ Ring structure & connection modes
Ring structure: Each ring M shows M residue classes r ∈ {1,…,M} at angles 2πr/M.
Gold dots = block-coprime (gcd(r,M+j)=1 for all j=0…n).
Teal dots = coprime to M only (gcd(r,M)=1 but fails later).
The density of gold dots across all rings converges to C(n).
Connection mode lets you trace structural patterns: Same GCD shows shared divisors across rings;
Gap-2 connects r to r+2 within each ring (twin prime analog);
Lift arcs connect same fraction r/M across adjacent rings — the "lift survival" paths central to C(n).
Max M:Dot size:1Connect:
Ring n:1
Lock to N
M labels
Circles
Dim dots
Zoom:1.0×
Barriers
Prime spiral
Spire
σ
Lifts
p=a/b rot:/Per-ring preset:Per-ring:= 0.00000per ringRing color:
Invert
Lock circle
M=2…128 · n=1ρ: — | theory: —
Inspected Points 0
#
M
r
r/M
Status
Failure
a/b rot
3D Cube view — block-coprime lattice on all 6 faces of a cube.
Drag to rotate · scroll to zoom · right-click/two-finger to pan. Enter Rx/Ry/Rz or choose a preset.
▸ What the cube shows & color modes
What this shows: The block-coprime lattice is projected onto all 6 faces of a cube.
Each face is a G×G grid. Front/back faces show (r, M) at fixed n.
Left/right faces show (n, M) at fixed r. Top/bottom faces show (r, n) at fixed M.
Gold cells pass the block-coprime test at the current n-depth on that face.
GCD mode colors by gcd value — non-coprime pairs form lines at r=kp.
Saturation mode shows which prime first blocks: p=2 (coral), p=3 (orange), p=5 (yellow), p=7 (lime).
n-depth:1Grid G:20Color:
Lock to N
Auto-rotate
Axes
Barriers
Prime spiral
Gap ±n
off
Labels
Rx:Ry:Rz:Zoom:Presets:
First 60 primes. Partial C(n) = ζ(2) × running product. Click any row for local factor matrix and step-by-step detail.Block corr. = (1−min(n+1,p)/p²)/(1−1/p)^(n+1): how much the 2D block-coprime density exceeds the independence baseline at each prime. Always > 1 and diverges as a product — not the HL singular series. The C₂ local factor p(p−2)/(p−1)² is a separate 1D quantity visible in the HL Connection panel.
Data Table — n = 0 to current
n
Block
C(n)
D(n)
C(n)/C(n−1)
ΔC
Sat. primes
C(n)/C₂
Event
Click any row to see step-by-step derivation of C(n) and D(n) for that value of n.
Step-by-Step Derivation
Hardy–Littlewood Connection
The Euler product structure of C(n) is the combinatorial bedrock of the Hardy–Littlewood prime k-tuple
conjectures. The following constants all live in the same family.
Symbol
Value
Formula
Meaning
Structural parallel — same exclusion count, different space:
The C(n) local factor at prime $p$ is
$$f_p(n) = 1 - \frac{\min(n+1,p)}{p^2} \quad (\text{2D: counts pairs }(r,M)\in(\mathbb{Z}/p\mathbb{Z})^2)$$
The HL singular series local factor for an admissible tuple $\mathcal{H}$ with $\nu_p=|\mathcal{H}\bmod p|$ is
$$\frac{1-\nu_p/p}{(1-1/p)^k} \quad (\text{1D: counts residues in }\mathbb{Z}/p\mathbb{Z})$$
Both share the exclusion count $\nu_p = \min(n+1,p)$, but operate in different ambient dimensions. The
Block corr. column shows the ratio $f_p(n)/(1-1/p)^{n+1}$ — always > 1, diverging —
while the C₂ local (1D) column shows the actual twin prime factor $p(p-2)/(p-1)^2$, which is distinct.
Per-Prime HL Factors at current n
hlFactor(p,n) = (1−min(n+1,p)/p²)/(1−1/p)^(n+1)
p
Status
Raw f_p(n)
(1−1/p)^(n+1)
Block corr.
C₂ local (1D)
Additive Number Theory
The multiplicative → additive bridge:
C(1) ≈ 0.5307 from this tool's Euler product is provably the same constant as the
lift-survival constant C = ∏p(p²−2)/(p²−1): since ζ(2) = ∏p p²/(p²−1),
substituting gives C(1) = ζ(2)·∏p(1−2/p²) = ∏p(p²−2)/(p²−1) exactly — an
algebraic identity, not a numerical coincidence. Prime counting and prime gaps below are the
purely additive companions to the multiplicative structure here.
R(N) — Goldbach Partition Count vs Hardy–Littlewood Prediction
N max:5000
R(N)
Ĝ(N) (HL prediction)
E(N)=R(N)−Ĝ(N)
— R(N), actual prime-pair count
- - Ĝ(N), Hardy–Littlewood prediction
- - C(1) baseline
— E(N) error, when shown
π(x) — Prime Counting Function vs Li(x)
x max:10000
π(x)
Li(x)
Li(x)−π(x)
x/ln x (PNT)
gₙ = pₙ₊₁ − pₙ — Prime Gaps
Primes:300
Maximal gaps
ln(pₙ) avg
● Maximal gaps (record gaps)
— ln(pₙ) predicted average gap (PNT)
All gaps ·
Strip Average — Diagonal Decomposition of C(0)
The coprime density 6/π² = D(0) is a weighted average of φ(g)/g over all diagonal strips of the G×G lattice:
$$A(G) = \frac{2}{G^2}\sum_{g=1}^{G-1}(G-g)\cdot\frac{\varphi(g)}{g} \;\to\; \frac{6}{\pi^2}$$
Each offset g corresponds to two mirrored strips M−r=±g (hence the factor 2), each of length (G−g) and coprime density φ(g)/g.
The block-coprime extension replaces φ(g)/g with B(g,n) to recover D(n) = C(n)/ζ(2) for any n.
This is the explicit bridge to the Gap Diagonal Identity (page2.html).