On the moments of the gaps between consecutive primes
Marek Wolf

TL;DR
This paper heuristically derives formulas for the moments of gaps between consecutive primes less than x, relating them to prime counting functions, and supports findings with computational data.
Contribution
It introduces a heuristic formula for the moments of prime gaps expressed via prime counting functions, providing a new perspective on prime gap distribution.
Findings
Derived a formula for the k-th moments of prime gaps.
Validated the formula with computational data.
Connected moments of gaps to prime counting functions.
Abstract
We derive heuristically formula for the --moments of the gaps between consecutive primes represented directly by --- the number of primes up to: , We illustrate obtained results by computer data.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnalytic Number Theory Research · Mathematics and Applications · History and Theory of Mathematics
On the moments of the gaps between consecutive primes
Marek Wolf
Cardinal Stefan Wyszynski University, Faculty of Mathematics and Natural Sciences. College of Sciences,
ul. Wóycickiego 1/3, PL-01-938 Warsaw, Poland, e-mail: [email protected]
Abstract
We derive heuristically formula for the –moments of the gaps between consecutive primes represented directly by x$$\pi(x) — the number of primes up to: , We illustrate obtained results by computer data.
Key words: *Prime numbers, gaps between primes, moments
Let denotes the -th prime number and denotes the -th gap between consecutive primes. Let us introduce moments of arbitrary order of gaps between consecutive primes:
[TABLE]
The symbol means here that . Presumably for the first time the second moment of gaps was considered in 1937 by H. Cramer [3]. Assuming the validity of the Riemann Hypothesis he obtained:
[TABLE]
for every . In 1943 A. Selberg in [11], also assuming the Riemann Hypothesis, has proved:
[TABLE]
In [6] D.R. Heath-Brown conjectured that
[TABLE]
For the history of the problem and review of results see [7]; see also problem A8 in [4]. In [9, p.2056] the Heath-Brown–Oliveira conjecture was formulated:
[TABLE]
In [9] authors made a remark after equation (5) that , but even for it produces correct answer as is by 1 less then the number of primes up to : (here, as usual, and is a unit step function: for and for ). By the Prime Number Theorem (PNT) the number of prime numbers below is very well approximated by the logarithmic integral
[TABLE]
Integration by parts gives the asymptotic expansion which should be cut at the term :
[TABLE]
Let denote the number of pairs of consecutive primes smaller than a given bound and separated by :
[TABLE]
In [13] (see also [14]) we proposed the following formula expressing function directly by :
[TABLE]
Here
[TABLE]
is called the “twins constant”. The pairs of primes separated by (“twins”) and (“cousins”) are special as they always have to be consecutive primes (with the exception of the pair (3,7) containing 5 in the middle)). For we adapt the expression obtained from (8) for , which for goes into the the conjecture B of G. H. Hardy and J.E. Littlewood [5, eqs. (5.311) and (5.312)]:
[TABLE]
We will assume that for sufficiently regular functions the following formula holds:
[TABLE]
In other words we will replace the product over in (8) by its mean value as E. Bombieri and H. Davenport [1] have proved that the number is the arithmetical average of the product :
[TABLE]
Later H.L. Montgomery [8, eq.(17.11)] has improved the error term to .
TABLE I The ratios of the sums of squares of gaps between consecutive primes for and closed formulas for given by eq.(5), eq.(12) and eq.(13) respectively presented up to 4 figures.
0.7971 0.9104 0.8519
0.8102 0.9151 0.8611
0.8221 0.9198 0.8696
0.8323 0.9237 0.8769
0.8414 0.9272 0.8833
0.8495 0.9303 0.8890
0.8567 0.9332 0.8942
0.8632 0.9358 0.8988
0.8692 0.9382 0.9031
0.8746 0.9404 0.9069
0.8796 0.9425 0.9105
0.8841 0.9444 0.9138
0.8883 0.9462 0.9168
0.9087 0.9549 0.9315
0.9104 0.9556 0.9327
We will use the notation for the -th analytical formula for . The superscript will refer to the conjecture (5): and expressions for and we will derive below. For second moments using the differentiated geometrical series we obtain (we have extended the summation over up to infinity and used (10), then the dependence on drops out)
[TABLE]
[TABLE]
For large skipping in the big bracket above term we obtain
[TABLE]
what for gives exactly (4).
In the similar manner for third moment we obtain using (8) the expression:
[TABLE]
Putting here in the limit of large we obtain , i.e. (4) for .
For fourth moment similarly we obtain:
[TABLE]
and for large it goes to .
TABLE II The ratios of the sums of cubes of gaps between consecutive primes for and closed formulas for given by eq.(5) for , eq.(14) and eq.(19) for presented up to 4 figures.
0.6104 0.7975 0.6972
0.6331 0.8087 0.7152
0.6540 0.8195 0.7318
0.6722 0.8287 0.7461
0.6885 0.8367 0.7588
0.7030 0.8438 0.7700
0.7162 0.8504 0.7803
0.7283 0.8564 0.7896
0.7393 0.8619 0.7981
0.7495 0.8670 0.8059
0.7588 0.8716 0.8131
0.7674 0.8759 0.8198
0.7754 0.8800 0.8259
0.8147 0.8997 0.8561
0.8180 0.9014 0.8586
TABLE III The ratios of the sums of fourth powers of gaps between consecutive primes for and closed formulas for given by eq.(5) for , eq.(15) and eq.(19) for presented up to 4 figures.
0.4586 0.6854 0.5598
0.4862 0.7024 0.5838
0.5123 0.7190 0.6063
0.5354 0.7332 0.6261
0.5560 0.7453 0.6433
0.5746 0.7560 0.6587
0.5919 0.7661 0.6731
0.6078 0.7753 0.6861
0.6225 0.7837 0.6982
0.6360 0.7915 0.7093
0.6486 0.7987 0.7195
0.6603 0.8054 0.7290
0.6712 0.8116 0.7379
0.7256 0.8422 0.7816
0.7303 0.8448 0.7853
We stop with these particular moments and we will derive the formula for moments of general order . From the formula (8) we obtain :
[TABLE]
To proceed further we need formula for the -times differentiated geometrical series:
[TABLE]
where and are Eulerian numbers (should not be confused with Euler numbers ), see [10, p.54] and eq. (7) in entry Eulerian numbers in [12]. In our case and for large we have hence in nominator we obtain because the Eulerian numbers satisfy the identity
[TABLE]
see [2, eq.(1.8)] and entry Eulerian numbers in [12]. The denomiator is and the power cancels out. Finally we obtain
[TABLE]
and for it goes into (5). For from above equation we obtain and for we obtain as it should be.
During over a seven months long run of the computer program we have collected the values of up to . The data representing the function were stored at values of forming the geometrical progression with the ratio 2, i.e. at . Such a choice of the intermediate thresholds as powers of 2 was determined by the employed computer program in which the primes were coded as bits. The data is available for downloading from http://pracownicy.uksw.edu.pl/mwolf/gaps.zip. At the Tomás Oliveira e Silva web site http://sweet.ua.pt/tos/gaps.html we have found values of for and . In the tables I, II and III we present comparison of the actual values of calculated from these computer data and the prediction given by formulas for for and the set of values of . As the rule the best approximations are given by (13), (14) and (15), next by (19) and the least accurate are values predicted by (5).
We can try to determine the form of error terms in the formulas (12), (13), (14) and (19). In figure 1, we present plots of the differences of experimental values of moments calculated from the real computer data and appropriate formulas for . All these plots suggest that the error term is given by , where is very close to 1 and the prefactors increases rapidly with the order of moments. Because all approximate expressions give values larger than experimental values of moments we write:
[TABLE]
In the Table IV we present a sample of coefficients calculated from the above equation for , as then the exponent in power of is closest to 1. Thus, generalizing to non–integer , we formulate the Conjecture:
[TABLE]
TABLE IV Prefactors calculated for .
7.674 3.624 5.624
2003.517 985.198 1482.890
508697.096 252978.305 376492.431
In paper [9] on p. 2057 the authors consider corrections to (5) given by the series in powers of :
[TABLE]
In this paper the table of values of obtained from the least – square fitting to data for is given for for . We have checked that increasing the order completely changes the values of coefficients , except , thus they depend on the order . To explain this we notice that the fitting was done in the very short interval . On such a narrow interval each smooth function by the Taylor expansion is a linear function in the first approximation plus a part of parabola plus a cubic term etc. In the Taylor expansion of around point coefficients are and they does not change with increasing the number of terms. However in [9] were determined from the least –square method.
The correct expansion in powers of of formulas for moments we obtain using the asymptotic series for the logarithmic integral in (6) and putting it into ours expressions for moments involving the prime counting function . In this manner we obtain from (13) for second moment:
[TABLE]
and for third moment:
[TABLE]
In general from our conjecture (19) we get
[TABLE]
For the coefficients in [9] the values very close to 1 were obtained and indeed from above expansions we have that they are always 1.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] E. Bombieri and H. Davenport. Small differences between prime numbers. Proc. Royal Soc. , A 293:1–18, 1966.
- 2[2] L. Carlitz, D. C. Kurtz, R. Scoville, and O. P. Stackelberg. Asymptotic properties of Eulerian numbers. Probability Theory and Related Fields , 23, 1972.
- 3[3] H. Cramer. On the order of magnitude of difference between consecutive prime numbers. Acta Arith. , II:23–46, 1937.
- 4[4] R. K. Guy. Unsolved Problems in Number Theory . Springer-Verlag, 2nd ed. New York, 1994.
- 5[5] G. H. Hardy and J. E. Littlewood. Some problems of ‘Partitio Numerorum’ III: On the expression of a number as a sum of primes. Acta Mathematica , 44:1–70, 1922.
- 6[6] D. R. Heath-Brown. Gaps between primes, and the pair correlation of zeros of the zeta-function. Acta Arithmetica , XLI:85–99, 1982.
- 7[7] D. R. Heath-Brown. The Differences between Consecutive Primes, IV. In A. T. e. B la Bollob s, editor, A Tribute to Paul Erdos , pages 277–288. CUP, 1990.
- 8[8] H. Montgomery. Topics in Multiplicative Number Theory . Springer-Verlag, Heidelberg, New York, Inc, 1971. Springer Lecture Notes 227.
