Gap Resonance

—
—

Prime pair spectrum

Reference base
Highlight multiples of

Selected gap
Observed pairs
Conjectured pairs
Allowed residues

Why the peak fades

Imagine a clock with 13 positions. One position is forbidden because the first number would be divisible by 13. Usually a second position is forbidden because the other number would be divisible by 13. When the gap is a multiple of 13, the two forbidden positions coincide. That leaves 12 ways through instead of 11. The same trick works for 17.

For mathematicians

Proven · Local residue count

For prime q, the forbidden starts modulo q are 0 and −d. Their number νq(d) is one when q divides d, and two otherwise. The Chinese remainder theorem gives the following count of allowed starting residues for a square-free base B.

AB(d) = ∏q | B (q − νq(d))

Conjecture: Hardy–Littlewood

For each fixed positive even d, Hardy–Littlewood predicts that the number Cₙ(d) of pairs with 2 ≤ p < p+d ≤ N is asymptotic to Hₙ(d) below as N tends to infinity. The products range over primes. Relative to gap 2, each odd prime q dividing d supplies a single factor (q−1)/(q−2), regardless of its exponent. The chart uses numerical integration and truncates the product for C₂ at 100,000.

S(d) = 2 C₂ ∏q | d, q > 2 (q − 1)/(q − 2)

C₂ = ∏q > 2 (1 − 1/(q − 1)²)

HN(d) = S(d) ∫2N−d dt / (log t · log(t+d))

A sieve marks every prime through N. For each positive even d shown, the worker visits each prime p up to N−d and counts it if p+d is prime. Primes between the endpoints are allowed. Both endpoints are bounded by N. Odd gaps, which require the prime 2 as their first endpoint, are outside this spectrum.

RB(d) = [CN(d)/AB(d)] / [CN(2)/AB(2)]

The base correction divides the exact count by Aᵦ(d), then measures it relative to the same quantity for gap 2. We apply the same operation to Hₙ. Relative to gap 2, Aᵦ(d) contains exactly the Hardy–Littlewood factors for the odd primes shared by d and B, so these factors cancel algebraically. Finite counts and the prediction's integral can still differ from exact equality. Raw counts include the small-prime exceptions where an endpoint divides B.

Hardy & Littlewood (1923) · Twin-prime counts · OEIS A007508 · Independent verification program (available on request)