Plectis

Long paper

Prime-Gap Dyadic Series: Perturbations, Exact Criteria and Certificates

Summary. A convergent dyadic series with nonnegative integer coefficients can be made rational by sparse nonnegative corrections of upper Banach density zero, eventually bounded by any f(n)→∞, while preserving every fixed modulus and, for a logarithmic allowance, short-block empirical distributions. For prime gaps the cumulative positions remain asymptotic to n log n; no primality conclusion is asserted. Summation by parts reduces the prime series to the gap series, and the tails TN=∑j≥1gN+j2−j satisfy TN+1=2TN−gN+1. That recurrence characterises rationality and yields finite tests with explicit remainder bounds. An exact finite certificate shows that a rational value of the prime series would have denominator at least 239998>1012040. The bound does not establish irrationality.

This paper covers the complete problem-specific reasoning surface for Erdős #251, including all registered result families and their boundaries.

It does not establish the validity of claims tagged Lean, which belongs to the cited kernel-checked source, or a solution to Erdős #251, which remains open.

In this paper

Density and block conventions.

All intervals of indices contain integers, and log is natural unless a base is displayed. Upper Banach density zero means

limH→∞supu∈N|S∩[u,u+H)|H=0.

For integers X≥1 and m≥1, let μa,X,m be the empirical probability measure obtained by choosing an integer n∈[X,2X) uniformly and observing (an,…,an+m−1). The entries are not rescaled, and equal blocks are counted once for each starting index. We use dTV(μ,ν)=supB|μ(B)−ν(B)|, with the supremum over all sets of blocks. For the same function of the block, bounded in absolute value by B0, its means under the two measures differ by at most 2B0dTV(μ,ν). No rescaling of the coefficients is implicit.

Theorem 2.1 (sparse changes preserving congruences). Let an∈N and A=∑n≥0an2−n−1<∞. For every cutoff K and every f:N→R tending to infinity, there are a set S⊆[K,∞) of upper Banach density zero and a nondegenerate interval I⊂(A,∞) with the following property. Every r∈I has the form

r=∑n≥0(an+en)2−n−1,

where en∈N is supported on S, en≤f(n) eventually, and, for every integer q≥1, there is an Nq, chosen independently of r, such that

q∣enandq∣∑i<nei(n≥Nq).

For every ε>0, the construction can instead be chosen with en≤(log⁡(n+3))ε eventually and |S∩[X,2X)|=Oε(X/log⁡log⁡X). In that case the empirical distributions of original and corrected unnormalised blocks of length m(X)=o(log⁡log⁡X), sampled at the same integer starts in [X,2X), have total variation distance tending to zero, uniformly over r. Precisely the coupling error is at most m|S∩[X,2X+m)|/X; with ‖Φ‖∞≤B0 the bounded-test error is at most twice this quantity times B0, also for tests depending on the starting index.

The hypotheses allow any nonnegative integer sequence of polynomial growth, but not an=2n, whose dyadic series diverges. The bound on the corrections can grow as slowly as log⁡log⁡(n+3). A fixed bound is not possible here: eventual boundedness together with eventual divisibility by every fixed modulus would make the corrections eventually zero; their fixed total would then have to be divisible by every modulus and hence be zero. Nonnegative corrections could not change the sum. The cutoff may depend on the modulus, but the common set S and all cutoffs are fixed before the target. The support of a correction may occupy only part of S. Upper Banach density zero is stronger than ordinary density zero. For example, the union of the integer intervals [k!,k!+k), k≥3, has ordinary density zero but upper Banach density one. If k!≤x<(k+1)!, at most k(k+1)/2 indices have occurred, so their proportion is at most k(k+1)/(2k!)→0. Nevertheless each interval is filled and their lengths are unbounded. Upper Banach density zero rules out this concentration in long intervals, however far apart those intervals lie.

Proof. Fixed totals. Use nj−1 to cancel a cumulative residue and nj,nj+1 for a pair with fixed ordinary sum. Varying the pair changes its weighted contribution without altering any later residue to be cancelled. Choose an initial index n−1≥K and centres with sj=nj−nj−1≥4, so the triples do not overlap. Let Mj be positive integers with Mj∣Mj+1, and let Dj bound the digit at stage j. The spacing, moduli and digit bounds will be chosen below.

Let Cj record the ordinary correction before the jth triple. Starting from C0=0, prescribe

cj=(−Cj)modMj(0≤cj<Mj),Cj+1=Cj+cj+MjDj.

For integers 0≤dj≤Dj, set

(1)enj−1=cj,enj=Mjdj,enj+1=Mj(Dj−dj),

and put en=0 elsewhere. The two sums of a triple are

∑r=nj−1nj+1er=cj+MjDj,∑r=nj−1nj+1er2−r−1=cj2−nj+MjDj2−nj−2+djMj2−nj−2.

The ordinary total contains no dj, so the recurrence fixes every cj in advance. In the weighted total only the last term varies: transferring Mj from nj+1 to nj adds

wj=Mj2−nj−2.

After cj has been inserted, the cumulative correction is divisible by Mj; the two entries of the pair preserve this divisibility. Fix q∣MJ. At index nJ both the coefficient correction and the cumulative correction are divisible by q. At every later triple, q divides Cj and Mj, so it also divides cj and both pair entries. The intervening corrections are zero. Hence

q∣en,q∣∑i<nei(n≥nJ).

The entry cJ need not be divisible by q, which is why it is placed at nJ−1, before the cutoff. The index nJ depends on q and the chosen moduli, but not on the digits or the value to be attained.

Spacing and size. The choices at stage j are 0,wj,…,Djwj. The covering argument will work if the later ranges total at least wj. Taking Di=2si−1 compensates for separation by making each later range a scaled dyadic difference:

Diwi=(2ni−ni−1−1)Mi2−ni−2=Mi(2−ni−1−2−2−ni−2).

Because Mi≥Mj for i>j, replacing every later modulus by Mj gives the finite estimate

(2)∑i=j+1JDiwi≥Mj∑i=j+1J(2−ni−1−2−2−ni−2)=wj−Mj2−nJ−2(J>j).

No monotonicity of the weights is needed. Each entry of (1) is at most Mj2sj, so the size cost of separating the stages is exponential. We must fit this product below the allowance at all three indices, while sj→∞ and every fixed positive integer eventually divides Mj.

To allow a nonmonotone bound f, put

h(n)=infm≥nmin(f(m),m).

This nondecreasing lower envelope tends to infinity even when f oscillates. A bound at nj−1 therefore controls all three later coordinates; the cap by m ensures en≤n and hence summability for every digit choice. Enlarge n−1≥K until h(n−1)≥32, and set

(3)kj=max{k≥2:k!2k+2≤h(nj−1)},Mj=kj!,sj=kj+2,nj=nj−1+sj.

The maximum exists: k=2 is admissible because 2!24=32, and k!2k+2→∞. Since nj→∞ and h is nondecreasing and divergent, kj is nondecreasing and tends to infinity. Thus Mj∣Mj+1, every fixed q eventually divides Mj=kj!, and sj=kj+2→∞. At every coordinate n of the jth triple, this schedule also gives

0≤en≤Mj2sj≤h(nj−1)≤min(f(n),n).

Let S=⋃j≥0{nj−1,nj,nj+1}. For R≥4, all sufficiently late centres are at least R apart. Every interval of length H contains at most 3(H/R+2) points from those triples; the earlier triples add a fixed number, independent of the interval’s position. Divide by H, take the supremum over positions, then let H→∞. The limiting upper bound is 3/R; letting R→∞ proves upper Banach density zero.

Attaining the interval. The support and congruence requirements are now settled independently of the target. Only the digits remain to be chosen. Define

β=∑j≥0(cj2−nj+Djwj),Fj=∑i≥jDiwi.

Even zero digits contribute β>0; Fj is the maximum variable contribution from stage j onwards. The size bound makes both finite, with F0>0 and Fj→0. The total correction is

(4)∑nen2−n−1=β+∑jdjwj.

Taking J→∞ in (2) now gives

(5)Fj+1≥Mj2−nj−2=wj.

These bounds do not yet prove that every point of [0,Fj] is attained. A digit d leaves a remainder in [0,Fj+1] precisely for current remainders in

[dwj,dwj+Fj+1],d=0,…,Dj.

These intervals meet or overlap by (5), and their union is [0,Fj] because Fj=Djwj+Fj+1.

Given x∈[0,F0], start with ρ0=x. Having chosen the first j digits, choose dj so that

ρj+1=ρj−djwj∈[0,Fj+1].

The covering just proved makes this possible at every stage. Since 0≤ρj≤Fj and Fj→0, we obtain

x−∑i=0jdiwi=ρj+1⟶0.

Thus every x∈[0,F0] is attained, and we may take I=(A+β,A+β+F0). The target r∈I determines only the digits, through x=r−A−β; it changes neither S, I nor the cutoff Nq=nJ chosen using q∣MJ. This is the finite-choice covering argument of [27]: the jth choice set has largest gap wj and diameter Djwj, its maxima are summable, and the sum of subsequent diameters is at least wj. Equality is allowed. Fridy’s generalised-base lemma [9] and the reciprocal-choice argument in [11] are antecedents. The finite-choice argument uses (5); the required comparison of moduli was checked in (2).

The logarithmic scale. For f(n)=(log⁡(n+3))ε, the size cost 2sj leads to the iterated logarithm. We choose separations of order log⁡log⁡nj and reserve part of the allowance for growing moduli. Keep the same triples and Dj=2sj−1, and set

(6)sj=⌊ε2log2⁡log⁡(nj−1+3)⌋,kj=max{k≥2:k!≤(log⁡(nj−1+3))ε/4},

with Mj=kj! and nj=nj−1+sj. Start far enough out that sj≥4 and all choices exist. The exponents ε/4 and ε/2 add to 3ε/4<ε, so the corrections satisfy the prescribed bound:

Mj2sj≤(log⁡(nj−1+3))3ε/4≤(log⁡(n+3))ε

at each coordinate n of the triple. After enlarging the initial index, this is also at most n. The moduli remain nested, and every fixed positive integer divides all sufficiently late moduli. Summability, the congruence induction and (2) therefore apply without change. Since sj≍εlog⁡log⁡nj, the relevant centres near [X,2X) are separated by ≫εlog⁡log⁡X. Each contributes at most three support points, giving

|S∩[X,2X)|=Oε(X/log⁡log⁡X).

Choose the same uniform starting index n∈[X,2X) for both blocks. They agree when the block avoids S. A changed coordinate t∈S∩[X,2X+m) affects only starts in [t−m+1,t], at most m choices. The union bound gives

dTV(μa,X,m,μa+e,X,m)≤P(en+i≠0 for some 0≤i<m)≤m|S∩[X,2X+m)|X.

For m≤X, two dyadic bands cover [X,2X+m), giving Oε(m/log⁡log⁡X). A block of length o(log⁡log⁡X) therefore avoids S with probability tending to one. The convergence is uniform over targets because the same S contains every correction support. For a test bounded in absolute value by B0 that also depends on the starting index, the coupled values agree at unchanged blocks and differ by at most 2B0 elsewhere. Their mean difference is consequently at most 2B0m|S∩[X,2X+m)|/X. This uses the common starting index, not merely the marginal distributions. No limiting distribution, randomness or independence of the original coefficients is assumed. ◻

Identical marginal distributions alone would not control an index-dependent test. For example, let an=nmod2 and bn=1−an. For every even X, their one-coordinate empirical distributions on [X,2X) are equal, but the test 1{x=nmod2} has mean 1 for (n,an) and 0 for (n,bn). This example is not a sparse perturbation; it isolates why the proof couples blocks at the same index.

The estimate gives a sufficient scale, not an optimal threshold. It tends to zero for fixed block lengths and for m(X)=⌊log⁡log⁡X⌋, but gives no vanishing error for m comparable to log⁡log⁡X. Its error is also absolute, not relative: probabilities 1/log⁡X and 0 differ by o(1) despite the disappearance of the event. Relative preservation would require an error small compared with the event’s probability. Finally, agreement on a finite block does not identify its complete weighted tail; later coefficients still contribute.

Corollary 2.2 (target intervals arbitrarily close to the original sum). For the sparse theorem for an arbitrary sequence, the target interval can additionally be required to lie in (A,A+η) for any prescribed η>0.

Proof. In the construction for a general bound f, every nonzero correction satisfies en≤n. Choose an integer K′≥K sufficiently large that ∑n≥K′n2−(n+1)=(K′+1)2−K′<η, and start the construction beyond K′. This still leaves the originally prescribed prefix unchanged. The complete interval of corrections has positive lower endpoint and upper endpoint at most this sum. Here η is chosen before the construction, so the common support and interval may depend on η. Within that interval only the digits depend on the target. This does not make every target above A attainable under one fixed size bound. ◻

About this paper

Authorship and AI use. Will Cook built and directed the research infrastructure and maintains the public release. He reviewed claims when he could. AI agents did most of the research and drafting. Cook did not independently verify every claim.

Cite and contact. Cite this paper by its title, author and date above, with its PDF; cite the earlier sources it uses for a mathematical result. For software, use the release citation and give the commit used. Contact Will with questions or corrections.

Prefer the manuscript?

Equations typeset from the exact TeX. Rendered from the LaTeX manuscript source with file fingerprint sha256:db2a5b20038e07a9. Its file fingerprint matched the published source record, so the PDF above, the LaTeX, and this page are one manuscript. Redeploying the site regenerates this page from whatever the public repository holds at that moment.