decompwlj · a graduate primer · 11 November 2026
Any strictly increasing integer sequence, read term by term as \(a(n)=k(n)\cdot L(n)+d(n)\): definitions, the sieve of Eratosthenes, the primes with a ledger of what is proved, a census of 1000 sequences, and where additive meets multiplicative.
Framework: Rémi Eismann, arXiv:0711.0865 and decompwlj.com. Exposition and computations: Claude (Anthropic), from the tenth edition of the project’s treatise. Numbers without a dagger were recomputed for this report in NumPy and PARI/GP 2.15.4 (record on page 8).
Take a strictly increasing sequence of positive integers. The gap from a term to the next, an additive datum, selects a divisor of the term minus that gap, a multiplicative datum. The result is a unique writing of each term as weight × level + jump, and a classification of the terms into a weight class and a level class. On the natural numbers the construction is the sieve of Eratosthenes, and its level class is the set of shifted primes. On the primes it gives a handful of exact, elementary rigidity results, one density theorem, one conditional asymptotic whose constant is identified unconditionally, and several restatements of classical open problems, which it does not make easier. On 1000 sequences of the OEIS it behaves as a measuring instrument: its aggregate reading is explained by size and residues, and the departures from that explanation show where the arithmetic of a sequence lies.
Everything in this report follows from four lines. They take a sequence and return, for each term, two integers and a class.
Definition 1. Let \(a(1)\lt a(2)\lt a(3)\lt\cdots\) be positive integers. For each \(n\) define
Then \(a(n)=k(n)\,L(n)+d(n)\). The term is decomposable if \(\ell(n)\neq0\); it is then level-classified if \(k(n)\gt L(n)\) and weight-classified if \(k(n)\le L(n)\).
The weight exists because \(\ell\) is itself a divisor of \(\ell\) exceeding \(d\); it is unique because it is a minimum. Nothing is fitted and there is no parameter: \(a(n)\mapsto(k,L,d)\) is a change of coordinates, invertible term by term. Equivalently, \(k(n)\) is the least modulus for which the jump is the remainder of the term, \(a(n)\bmod k=d(n)\). It is in this form that the weight of the primes entered the OEIS (A117078; level A117563, \(\ell\) A118534).
Lemma 2 (domain).proved \(a(n)\) is decomposable if and only if \(a(n)\gt 2d(n)\), that is, \(a(n+1)\lt\tfrac32\,a(n)\).
The construction therefore lives on sequences growing more slowly than \((3/2)^n\). It is defined at no term of \(2^n\) or of the Fibonacci numbers, and at every prime except 2, 3 and 7: for \(n\ge25\) there is a prime in \([n,\tfrac65n]\) (Nagura [10]), and the primes below 25 are checked by hand. Note that \(5=3\cdot1+2\) decomposes, while 7, whose gap is 4, does not.
Proposition A (the window).proved For a decomposable term the following are equivalent: (i) it is level-classified; (ii) \(\ell\) has no divisor in the window \((d,\sqrt{\ell}\,]\); (iii) \(L\le d\). In particular every term with \(\ell\lt(d+1)^2\) is level-classified (forced level).
Proof. \(k\le L\) means \(k^2\le\ell\): the least divisor exceeding \(d\) is at most \(\sqrt\ell\). This is (i)\(\Leftrightarrow\)(ii). If \(k\gt L\), then \(L\) is a divisor of \(\ell\) below the least divisor exceeding \(d\), so \(L\le d\); conversely \(L\le d\lt k\). If \(\ell\lt(d+1)^2\) the window contains no integer. \(\square\)
Two readings are worth keeping. The classification is a question about divisors in an interval whose left end is the jump: divisors of \(\ell\) up to \(d\) are invisible, and the level class consists of the terms with none between \(d\) and \(\sqrt\ell\). And before any arithmetic enters, size decides: a sequence whose jumps exceed the square roots of its terms is level-classified throughout (§4).
Each decomposable term is the lattice point \((k,L)\) on the hyperbola \(kL=\ell\). On logarithmic axes with equal scales these hyperbolas are lines of slope \(-1\), the diagonal \(k=L\) separates the classes, and the distance from a point to the diagonal is \(|\log(k/L)|/\sqrt2\). This is why every weight–level figure in this report is square.
The project’s reference kernel, in PARI/GP; \(b\) is the successor of \(a\).
decomp(a, b) = { my(d = b-a, l);
if (a <= 2*d, return([0,0,d]));
l = a - d;
fordiv(l, k, if (k > d, return([k, l/k, d]))) }
? decomp(113, 127) \\ a prime and the next
%1 = [33, 3, 14]
? decomp(113, 114) \\ a natural number
%2 = [2, 56, 1]
Exercise 1. The same integer has different coordinates in different sequences. Show that \(n^2\) is decomposable exactly for \(n\ge5\), and then always level-classified.
| \(p\) | 2 | 3 | 5 | 7 | 11 | 13 | 17 | 19 | 23 | 29 | 31 | 37 | 41 | 43 | 47 | 53 | 59 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jump \(g\) | 1 | 2 | 2 | 4 | 2 | 4 | 2 | 4 | 6 | 2 | 6 | 4 | 2 | 4 | 6 | 6 | 2 |
| \(\ell=p-g\) | – | – | 3 | – | 9 | 9 | 15 | 15 | 17 | 27 | 25 | 33 | 39 | 39 | 41 | 47 | 57 |
| weight \(k\) | – | – | 3 | – | 3 | 9 | 3 | 5 | 17 | 3 | 25 | 11 | 3 | 13 | 41 | 47 | 3 |
| level \(L\) | – | – | 1 | – | 3 | 1 | 5 | 3 | 1 | 9 | 1 | 3 | 13 | 3 | 1 | 1 | 19 |
Run the construction on \(a(n)=n\). Every jump is 1, the window \((1,\sqrt\ell\,]\) is as wide as it can be, and what comes out is the oldest algorithm in number theory.
Proposition 1 (Eratosthenes).proved For \(a(n)=n\) and \(n\ge3\): \(d=1\), \(\ell=n-1\), \[k(n)=\spf(n-1),\qquad L(n)=\frac{n-1}{\spf(n-1)},\] where \(\spf\) is the smallest prime factor. The term \(n\) is level-classified if and only if \(n-1\) is prime, and then \((k,L)=(n-1,1)\). It is a tie if and only if \(n-1\) is the square of a prime.
Proof. The least divisor of \(m=n-1\) exceeding 1 is its smallest prime factor \(q\). If \(m\) is prime, \(k=m\gt1=L\). If \(m\) is composite, every prime factor of \(m/q\) is at least \(q\), so \(L=m/q\ge q=k\), with equality exactly when \(m=q^2\). \(\square\)
verified Below \(10^7\): 9,999,998 decomposable terms (all but 1 and 2); 664,579 level-classified, which is \(\pi(10^7)\), all on \(L=1\); 446 ties and 446 weight columns, which is \(\pi(\sqrt{10^7})\); column shares 0.50000, 0.16667, 0.06667, 0.03810.
Iterate on the level: decompose \(n\), then the natural number \(L(n)+1\), and so on. Since \(\ell(L+1)=L\), the successive weights are the prime factors of \(n-1\) in non-decreasing order, and the chain ends at a level-classified term.
For \(n=361\) the weights read \(360=2^3\cdot3^2\cdot5\):
| \(n\) | 361 | 181 | 91 | 46 | 16 | 6 |
|---|---|---|---|---|---|---|
| \(\ell=n-1\) | 360 | 180 | 90 | 45 | 15 | 5 |
| weight \(k\) | 2 | 2 | 2 | 3 | 3 | 5 |
| level \(L\) | 180 | 90 | 45 | 15 | 5 | 1 |
So the construction contains the existence half of the fundamental theorem of arithmetic, as an algorithm: it is trial division. It does not contain the uniqueness half. That the multiset of primes does not depend on the order of extraction is Euclid’s lemma, which the construction neither uses nor proves; the writing \(a=kL+d\) is unique for a cheaper reason, namely that \(k\) is defined as a minimum.
For another sequence there is no product structure on the terms, no irreducible elements and no unique-factorisation theorem. What does generalise is the sieve. The weight is a smallest-divisor function with a threshold, the threshold is the jump, and the level class is the set of terms that survive. The accurate slogan is “a generalisation of the sieve of Eratosthenes”, not “an extension of the fundamental theorem”. Proposition 1 is also the only place where “level-classified” is exactly “\(\ell\) is prime”; on the primes this becomes almost true, with exceptions (Lemma 5).
verified on the first \(10^5\) terms. Odd numbers. \(d=2\) and \(\ell\) is odd, so again \(k=\spf(\ell)\): level-classified means \(a-2\) prime. Level share 17.98%. Even numbers. Level-classified means that \(a-2\) is twice a prime (or \(a=10\)): the line \(L=2\), share 9.59%. Numbers not divisible by 3. Here \(d\in\{1,2\}\) and 3 always divides \(\ell\), so \(k\le3\): three level-classified terms (4, 5, 8) among 99,998. A forced divisor empties the level class.
Exercise 2. Prove the statement about the odd numbers and find the ties. (They are the terms \(p^2+2\): 11, 27, 51, 123, …)
Throughout, \(p=p_n\) is a decomposable prime (any prime but 2, 3, 7), \(g=p_{n+1}-p_n\) its gap, \(\ell=p-g\). As \(g\) is even and \(\ell\) odd, weights and levels of primes are odd. Proofs are complete as printed.
Lemma 3 (localisation).proved If \(p\) is level-classified, then \(L\le g-1\), \(k\gt\sqrt\ell\), and every divisor of \(\ell\) below \(k\) is at most \(g-1\).
Proof. Proposition A, and parity: divisors of \(\ell\) are odd, \(g\) is even. \(\square\)
Lemma 4 (the twin column).proved \(k=3\) if and only if \(g=2\).
Proof. One of \(p-2,\,p,\,p+2\) is divisible by 3. If \(g=2\), then \(p\) and \(p+2\) are primes exceeding 3, so \(3\mid p-2=\ell\), and 3 is the least integer exceeding \(g\). Conversely \(k=3\gt g\) with \(g\) even gives \(g=2\). \(\square\)
Proposition 2 (mod 3).proved Exactly one of \(3\mid g\), \(3\mid\ell\) holds.
Proof. Modulo 3, \(p\not\equiv0\) and \(p\not\equiv-g\). If \(3\mid g\) then \(\ell\equiv p\not\equiv0\). If not, the only class left for \(p\) is \(g\), so \(\ell=p-g\equiv0\). \(\square\)
Column identities.proved \(k=5\) if and only if \(g=4\) and \(5\mid\ell\). \(k=7\) if and only if \(g=4\), \(5\nmid\ell\), \(7\mid\ell\), or \(g=6\), \(7\mid\ell\).
Proof. \(\ell\) is odd, so the least divisor exceeding 4 can only be \(5,7,9,\dots\), and the one exceeding 6 only \(7,9,\dots\); \(g=2\) is the column \(k=3\). \(\square\)
Lemma 5 (level one).proved If \(\ell\gt g^2\), then \(L=1\) if and only if \(\ell\) is prime.
Proof. \(L=1\) means that \(\ell\) has no divisor in \((g,\ell)\). If \(\ell\) is composite, with least prime factor \(r\le\sqrt\ell\), then \(\ell/r\ge\sqrt\ell\gt g\) is such a divisor. \(\square\)
The inequality \(\ell\le g^2\) holds only for \(p\in\{5,13,19,23,31,113\}\), and \(L=1\) with \(\ell\) composite only for 13 and 31. Both lists are complete below \(4\cdot10^{18}\), by the exhaustive tables of maximal gaps [8]. Hence, up to two exceptions, the level-one primes are the middle terms of three primes \(p-g,\,p,\,p+g\) in progression whose upper step is a prime gap.
Corollary (balanced primes).proved If \(g_{n-1}=g_n\) then \(\ell=p_{n-1}\) is prime, so \(L=1\).
Proposition 3 (cube bound).proved If \(p\) is level-classified with composite weight, then \(\ell\le(g-1)^3\), with equality only at \(p=131\).
Proof. Write \(k=rs\) with \(1\lt r\le s\lt k\). Then \(r\), \(s\) and \(L\) are divisors of \(\ell\) below \(k\), hence at most \(g-1\) by Lemma 3, and \(\ell=rsL\). \(\square\)
These primes are exactly 13, 31, 113, 131, 887, with weights 9, 25, 33, 25, 51, again below \(4\cdot10^{18}\). So a level-classified prime with \(\ell\gt g^3\) has a prime weight, and this normal form is the door to Theorem 1:
\[\ell=s\,q,\qquad q=k\ \text{prime},\qquad s=L\le g-1,\]so that \((q,\,sq+g,\,sq+2g)=(k,\,p_n,\,p_{n+1})\) is a triple of primes.
verified Below \(10^7\), with identical \((k,L)\) from both engines at all 664,579 primes: no violation of any statement above; 58,979 primes with \(k=3\), the same primes as \(g=2\); 19,495 with \(k=5\); 26,974 = 7,859 + 19,115 with \(k=7\); 21,837 balanced primes, all on \(L=1\); largest level 129, at \(p=8{,}917{,}523\), \(g=140\).
Exercise 3. State and prove the identity for the column \(k=9\). (Answer: \(g=4\), \(5\nmid\ell\), \(7\nmid\ell\), \(9\mid\ell\), or \(g=8\), \(9\mid\ell\); the gap 6 is excluded by Proposition 2. Below \(10^7\): 24,581 = 10,468 + 14,113.)
| \(x\) | \(N_{\rm lev}\) | \(N_1\) | \(f\) | Cramér |
|---|---|---|---|---|
| \(10^3\) | 75 | 24 | 45.45% | 44.41% |
| \(10^4\) | 390 | 135 | 31.81% | 34.70% |
| \(10^5\) | 2,658 | 880 | 27.72% | 27.77% |
| \(10^6\) | 18,353 | 5,953 | 23.38% | 23.73% |
| \(10^7\) | 138,049 | 44,011 | 20.77% | 20.99% |
| \(10^{8\,\dagger}\) | 1,078,707 | 339,870 | 18.72% | 18.80% |
| \(10^{9\,\dagger}\) | 8,692,339 | 2,708,031 | 17.09% | 17.08% |
| \(10^{10\,\dagger}\) | 71,670,808 | 22,083,608 | 15.75% | 15.68% |
The level share falls in every decade of Table 2, and so does that of a random sequence: keeping each integer \(m\) with probability \(1/\log m\) (Cramér) gives 20.99% below \(10^7\), against 20.77% for the primes. The decay is generic. But the agreement is partly a cancellation. Keeping only odd integers, as the primes do, gives 25.31%; adding 3, 5, …, 19 to the admissibility filter brings the model back step by step: 22.93, 22.39, 21.69, 21.49, 21.21, 21.07, 20.97%. The model that matches for the right reason is the Hardy–Littlewood-admissible one. Hence the rule followed here: an aggregate share is quoted only against a control, and the arithmetic is sought in exact statements like those above, not in a rate of decay.
The founding paper ended on nine conjectures. Four are now proved inside the framework and five are classical problems restated. The questions that are native and still open are at the foot of the table.
Theorem 1 (rarefaction).proved* Let \(\Nlev(x)\) count the level-classified primes up to \(x\). Then \[\Nlev(x)\ \ll\ \frac{x\,\log\log x}{(\log x)^{3/2}}.\] In particular the level share \(f(x)=\Nlev(x)/(\pi(x)-3)\) tends to 0. This was Conjecture 9 of the founding paper.
Sketch. Put \(G=(\log x)^{3/2}\). (1) The gaps sum to at most \(x\), so at most \(x/G\) primes have \(g\gt G\). (2) The primes with \(g\le G\) and \(\ell\le g^3\) number at most \(G^4\), since \((g,\ell)\) determines \(p\). (3) Every other level-classified prime is in normal form, \(\ell=sq\) with \(s\le g\le G\). Forget that \(p+g\) is the next prime; keep only that \(q\), \(sq+g\), \(sq+2g\) are prime. (4) For fixed \((g,s)\), an upper-bound sieve of dimension 3 ([4], Theorem 5.7), uniform in the parameters, bounds the number of such \(q\le x/s\) by \(\ll x/(s\log^3x)\) on average over \(g\). The sum over \(s\) costs \(\log\log x\), the sum over \(g\le G\) costs \(G\), and \(xG\log\log x/\log^3x\) balances \(x/G\). The full proof is Appendix B.1 of the treatise [2].
Three things to carry away. The exponent \(\tfrac32\) is an artefact of the balance; the expected truth is \(f(x)\asymp\log\log x/\log x\), and \(f(x)\log x/\log\log x\) reads 1.23, 1.20, 1.18, 1.17, 1.16 at \(10^6,\dots,10^{10}\), the last three carried\(^\dagger\). The proof discards the word next, so it gives no lower bound: whether the level class is infinite is open, and would follow from the infinitude of balanced primes. By page 4, it is a theorem about the construction at a given density at least as much as about the primes. And the asterisk is a statement of social status, not a hedge: the proof is audited within the project and not refereed. Independently, density zero has been formalised in Lean 4 with Mathlib [13], by Brun’s pure sieve and with the weaker rate \(x(\log\log x)^7/(\log x)^{3/2}\); the repository’s kernel check passes and its definitions were compared with Definition 1, but an independent rebuild is still owed.
Theorem 2 (level one).conditional Let \(N_1(x)\) count the primes up to \(x\) with \(L=1\). Assume (H1) the Hardy–Littlewood asymptotic for the triples \((q,q+g,q+2g)\), uniformly in \(g\), and (H2) a Poisson model of Gallagher type [11] for consecutive gaps. Then \[N_1(x)\ \sim\ 2C_2\,\frac{x}{(\log x)^2},\qquad 2C_2=1.3203236316\ldots\] twice the twin-prime constant. The identification of the constant is unconditional (Lemma 1, §5).
What a bound says about data. Theorem 1 requires \(E(x)=f(x)\sqrt{\log x}/\log\log x\) to stay bounded. It reads 0.385, 0.331, 0.300, 0.276, 0.257, 0.241 at \(10^5,\dots,10^{10}\), the last three carried\(^\dagger\): decreasing, with no plateau, as expected of a bound that is true but not sharp. For Theorem 2 the constant is not visible at accessible heights: \(\Delta N_1\big/\!\int\! dt/\log^2t\) is 0.957 on \([10^5,10^6]\) and 0.995 on \([10^6,10^7]\), on a logarithmic climb towards 1.32. No constant should be read off such data by extrapolation; the identification rests on Lemma 1 and on a gap-by-gap test of (H1) at \(10^{10}\), where observed over predicted is 1.011\(^\dagger\).
| Item | Statement | Kind | Status |
|---|---|---|---|
| Prop. 1, Lemma 2 | on \(\mathbb N\) the construction is the sieve; domain \(a(n+1)\lt\frac32a(n)\); primes: all but 2, 3, 7 | native | proved |
| Lemmas 3, 4 | localisation; \(k=3\Leftrightarrow g=2\); column identities; the lock \(r\mid\ell\Leftrightarrow p\equiv g\ (r)\) | native | proved |
| Prop. 2 | exactly one of \(3\mid g\), \(3\mid\ell\) (founding Conjectures 7, 8) | native | proved elementary; not a contribution |
| Prop. 3 | cube bound, sharp at 131 (founding Conjecture 4) | native | proved exception list complete to \(4\cdot10^{18}\) |
| Lemma 5 | \(L=1\Leftrightarrow\ell\) prime when \(\ell\gt g^2\) | native | proved exception lists complete to \(4\cdot10^{18}\) |
| Lemma 1 | the mean of \(\fS(0,g,2g)\) over \(g\) is \(2C_2\) | classical tools | proved |
| Theorem 1 | \(\Nlev(x)\ll x\log\log x/(\log x)^{3/2}\) (founding Conjecture 9) | native | proved* density zero also formalised in Lean 4 |
| Theorem 2 | \(N_1(x)\sim2C_2\,x/(\log x)^2\) | native + H–L | conditional on H1, H2 |
| Lock bias | interior-credit law for the departure from \(1/(r-2)\) (§5) | native | heuristic sign verified below \(10^7\) |
| Conjecture A | \(f(x)\sim c\,\log\log x/\log x\), with the same \(c\) for the Cramér sequence | native | open conjecture |
| Problem 1 | \(\Nlev(x)\ll x\log\log x/(\log x)^2\) unconditionally | native | open |
| Problem 2 | is the level class infinite? | native | open implied by infinitely many balanced primes |
| Problem 3 | the constant of the stratum \(L\gt1\) | native | open a working value \(c_2=1\) was retracted |
| Founding Conj. 1 | infinitely many primes of weight 3 | classical | classical the twin prime conjecture |
| Founding Conj. 2, 3, 5, 6 | infinitude and structure of fixed columns and lines | classical | classical of Polignac type |
Definition 1 applies to any sequence growing more slowly than \((3/2)^n\). What does it measure? This page is a census and is exploratory: apart from the forced-level law, nothing on it is a theorem.
decompwlj.com publishes the decomposition of 1000 sequences. Its open companion data set, decompwlj 3D [13], holds 5000 sequences of the OEIS with their first \(10^5\) terms. We take its 1000 lowest A-numbers (A000027 to A035328), whose rows can all be derived again: 99,965,535 terms, of which 99,961,532 decompose and 50,543,638 are level-classified. verified An independent decoder recounted every catalogue count of the 1000 sequences and PARI/GP re-derived 2,000,000 sampled weights, with no mismatch. The corpus is biased towards slow growth (\(10^5\) terms must fit below \(2^{53}\)): only 4,003 terms fail to decompose.
By Proposition A, \(\ell\lt(d+1)^2\) forces the level class. If \(a(n)\sim cn^t\), then \(d\sim ctn^{t-1}\), and the sequence is eventually forced when \(t\ge3\), or when \(t=2\) and \(4c\gt1\); the quarter-squares A002620 sit on the boundary \(4c=1\). In the corpus 331 sequences have a level share \(f\gt99.9\%\) (285 are polynomial), and 329 of them are forced at more than 99.9% of their terms.
Let \(\theta=\sum\log d\,/\sum\log\ell\) over the decomposable terms: the jump on the scale of the term. Then \(\theta=0\) for \(\mathbb N\); \(\theta\gt\frac12\) means forced (330 of the 337 such sequences have \(f\gt99.9\%\)); in between, \(f\) increases with \(\theta\). The correlation is 0.971 over the corpus and 0.912 over the 669 sequences with \(f\le99.9\%\) (Figure 4a).
For each sampled term keep the jump \(d\), replace \(\ell\) by a random \(\ell'\) within 25% of \(\ell\) in the same class modulo \(M\), and classify \((\ell',d)\). Both shares are taken on the same sampled terms, 2000 per sequence.
| \(M\) | rms gap | corr. | beyond \(5\sigma\) | within \(2\sigma\) |
|---|---|---|---|---|
| \(1\) | 5.32 pts | 0.9900 | 109 | 69.8% |
| \(840\) | 3.06 pts | 0.9968 | 29 | 92.8% |
| \(840\cdot\gcd(\ell,d)\) | 2.51 pts | 0.9978 | 14 | 95.0% |
Sampling noise alone is 1.1 points: with the residues modulo 840 and the common factor of \(\ell\) and \(d\) preserved, the level share of 95% of the sequences is reproduced within \(2\sigma\) (Figure 4b).
The control misses the sequences whose defining rule speaks about \(a-d\) itself (observed against control):
(i) The level share is a reading of size and residues, not an arithmetic invariant: quote it only against a matched control. (ii) A departure from the control is a finite list of locks on \(\ell\), congruential or definitional; finding the lock is finding the arithmetic. (iii) The object measured is the pair (term, sequence), with the integers as ruler. (iv) In aggregate the primes are an ordinary point of this corpus: \(f=23.00\%\) and \(\theta=0.173\), next to the prime powers at 22.97%. What is special about them is on pages 4 and 7.
Additive number theory is about differences, sums and patterns; multiplicative number theory about divisors and Euler products. Definition 1 has a hand in each: its input \(d\) is a difference, its output \(k\) a divisor.
| Multiplicative side (weight, level) | Additive side (gap, residue, pattern) | Source |
|---|---|---|
| \(k=3\) | \(g=2\): \(p\) is the lesser of two twin primes | Lemma 4 |
| \(k=5\) | \(g=4\) and \(p\equiv4\pmod5\) | column identity |
| \(k=7\) | \(g=4\), \(p\equiv4\pmod7\), \(p\not\equiv4\pmod5\); or \(g=6\), \(p\equiv6\pmod7\) | column identity |
| \(r\mid\ell\), \(r\) an odd prime | \(p\equiv g\pmod r\) | the lock |
| \(3\mid\ell\) | \(3\nmid g\) | Proposition 2 |
| \(L=1\), \(\ell\gt g^2\) | \(p-g,\ p,\ p+g\) are primes in progression, the last two consecutive | Lemma 5 |
| \(\ell=p_{n-1}\) | \(p\) is a balanced prime | corollary |
| level class | the shifted prime \(p-g\) has no divisor in \((g,\sqrt{p-g}\,]\) | Proposition A |
Let \(r\) be an odd prime and \(p\gt r\) a prime with gap \(g\lt r\). Modulo \(r\), \(p\) avoids \(0\) and \(-g\). If the other \(r-2\) classes were equally likely, the lock \(r\mid\ell\) would close with probability \(1/(r-2)\).
| \(r\) | 5 | 7 | 11 | 13 | 17 | 19 | 23 |
|---|---|---|---|---|---|---|---|
| \((r-2)\Pr[r\mid\ell]\) | 0.999 | 0.981 | 0.983 | 0.976 | 0.973 | 0.972 | 0.975 |
verified primes below \(10^7\) with \(g\lt r\). The flat law holds within 3%, but the deficit is real: 3.5 to 4.9 standard deviations for each \(r\ge7\).
heuristic Interior credit. The even integers strictly between \(p\) and \(p+g\) must be composite, and a class of \(p\) modulo \(r\) in which one of them is divisible by \(r\) gets that for free. The lock class \(p\equiv g\) is never such a class when \(g\lt r\). Measured over the cells \(4\le g\lt r\le47\): credited classes are over-represented by 9.0%, the others by \(-2.2\%\), the lock class by \(-2.5\%\); for twins, with no interior even integer, the flat law is exact (ratio 1.0006). Compare the biases between consecutive primes of Lemke Oliver and Soundararajan [7].
Lemma 1.proved Let \(\fS(g)=\prod_p\big(1-\frac{\nu_p(g)}p\big)\big(1-\frac1p\big)^{-3}\) be the singular series of the triple \((q,q+g,q+2g)\), where \(\nu_p(g)\) is the number of classes modulo \(p\) occupied by \(0,g,2g\). Then \(\fS(g)=0\) unless \(6\mid g\), and \[\lim_{G\to\infty}\frac1G\sum_{g\le G}\fS(g)=2\prod_{p\ge3}\Big(1-\frac1{(p-1)^2}\Big)=2C_2 .\]
Proof. \(\nu_p=1\) if \(p\mid g\); otherwise \(\nu_2=2\) and \(\nu_p=3\), which kills the factor at 2 or at 3. For \(p\ge3\) the factor is \((1-\frac1p)^{-2}\) with probability \(\frac1p\) and \((1-\frac3p)(1-\frac1p)^{-3}\) otherwise, of mean \[\Big(1-\frac1p\Big)^{-2}\Big(\frac1p+1-\frac3p\Big)=1-\frac1{(p-1)^2},\] and at \(p=2\) the mean is \(\frac12\cdot4=2\). The local conditions are independent by the Chinese remainder theorem, so the mean of the product is the product of the means; convergence is by truncation ([2], Appendix B.2). \(\square\)
verified The mean over \(g\le10^6\) is 1.3202486, and \(2C_2=1.3203236\ldots\) For \(6\mid g\), \(\fS(g)=2C_3\prod_{p\mid g,\,p\ge5}\frac{p-1}{p-3}\), with \(2C_3=5.7164971914\ldots\)
Averaged along the line \(L=1\), the three-prime condition on \(p-g,\,p,\,p+g\) costs exactly the two-prime constant, doubled. This is the unconditional core of Theorem 2:
\[N_1(x)\approx\sum_g\fS(g)\,e^{-g/\log x}\,\frac{x}{\log^3x}\approx 2C_2\,\frac{x}{\log^2x},\]the first step being (H1) with (H2), the second Lemma 1.
Divisors in intervals. The level class asks for integers with no divisor in an interval, the subject of Erdős, Tenenbaum and Ford [5]; here the integer is a shifted prime [6], shifted by its own gap. The nearest published neighbour is Gafni and Tao [9]: prime gaps containing no integer whose least prime factor reaches the length of the gap. Theorem 1 multiplies a multiplicative estimate, an upper-bound sieve for three linear forms, by an additive one: the gaps sum to \(x\). What is not here. Goldbach: the only even numbers the construction forms are \(2p_n=\ell+p_{n+1}\). The Riemann hypothesis: nothing here bears on it. And “the column \(k=3\) is infinite” is a translation of the twin prime conjecture, not a reduction of it.
Exercise 4. Check the local mean of Lemma 1 at \(p=5\) and at \(p=7\); then compute \(\fS(30)/\fS(6)\).
Six directions, ordered by how soon a theorem can be expected. A programme has an existing technique and a plausible route; a conjecture is a precise statement with evidence; the rest is labelled speculation.
Submit Theorem 1 with the elementary theory of page 4. Rebuild the Lean proof independently, then formalise the Selberg rate, and Lemma 2 for the primes (a prime in \((n,\frac32n)\), beyond the Bertrand postulate of Mathlib). This is the shortest path from proved* to proved.
For the Cramér sequence, prove \(f(x)\sim c\log\log x/\log x\) almost surely and compute \(c\). A random model has no coupling to the word next, so the lower bound that is out of reach for the primes should be a second-moment computation. Every statistic of the primes can then be quoted as a ratio to the model; page 5 shows that the model to use is the admissible one.
Over \(\mathbb F_q[t]\), order the monic irreducibles by degree, then lexicographically, and repeat Definition 1. Statements of Hardy–Littlewood type are theorems there in suitable regimes [12], and “no irreducible in between” becomes a computation instead of a hypothesis. Targets, in order: the analogue of Proposition 1; Theorem 1 with its true exponent; Theorem 2 with its constant.
Conditioning a Hardy–Littlewood event on “no prime in between” is usually assumed harmless. The lock bias shows that it is not, and that its first-order effect is computable from local factors (page 7). Derive it to second order, state it without weights and levels, and compare with [7].
Identify the constant of the stratum \(L\gt1\), which carries 69% of the level class at \(10^{10\,\dagger}\), with the tools of [5, 6, 9]; the novelty is that the left end of the window is the prime’s own gap. Prove Problem 1.
Replace the modulus 840 of page 6 by the ladder \(\operatorname{lcm}(1,\dots,n)\) and record, for each sequence, the first modulus at which the control closes: a computable invariant. Classify the residual sequences by their lock. Predict the level share of a held-out range before computing it.
Speculation. Extend Definition 1 to non-decomposable terms through a later successor \(a(n+m)\), or to geometric sequences through the ratio \(a(n+1)/a(n)\).
Conjecture A is proved and the primes’ residual against the model is exactly what local factors predict. The constant of the stratum \(L\gt1\) is a Buchstab-type evaluation already known. The function-field analogue is a routine transcription. Problem 2 stays open, as balanced primes have. What survives is the rigidity of page 4, Theorem 1, the column identities and the consecutiveness calculus: a real but modest body of work. An exposition of this framework that cannot say so should not be trusted.
The decomposition takes an additive datum, the gap to the next term, and uses it to select a multiplicative datum, a divisor. It does so canonically, with no parameter, and on \(\mathbb N\) it is the sieve of Eratosthenes. It will not knock down a wall. It is an exactly computable instance of the additive–multiplicative divide, on which heuristics can be tested against \(10^8\) exact samples.
Engines. Python/NumPy (smallest-prime-factor sieve, divisors enumerated from the definition) and PARI/GP 2.15.4 with the project kernels decomp_fact and decomp_fordiv. They agree on \((k,L)\) at all 664,579 primes below \(10^7\). Census rows \(10^3\) to \(10^7\) equal Table 2 of the treatise digit for digit. Carried. Rows \(10^8\) to \(10^{10}\) and every number marked \(\dagger\) (C engine of the treatise); closures “below \(4\cdot10^{18}\)” rest on [8]. Single engine. Random models (seeds \(20261110+1000P+s\), three for Cramér, two otherwise; spread at most 0.11 points); corpus controls (seeds 20261110, 20261111; classes with fewer than 16 members in the window skipped); interior-credit shares. Corpus. Commit ce2f577 of [13]. Not done. No third engine; no census above \(10^7\); the Lean proof was not rebuilt.