On the asymptotic distinct prime partitions of integers
M. V. N. Murthy, M. Brack, R. K. Bhaduri

TL;DR
This paper derives an improved asymptotic formula for the number of ways to write an integer as a sum of distinct primes, including higher-order corrections, which significantly enhances approximation accuracy.
Contribution
It introduces a refined asymptotic expression for $Q(n)$ using saddle-point approximation and higher-order corrections, surpassing previous simple exponential estimates.
Findings
The new asymptotic form closely matches the exact $Q(n)$ for large $n$.
Higher-order corrections improve the approximation accuracy.
The method involves Laplace inversion of the fermionic partition function.
Abstract
We discuss , the number of ways a given integer may be written as a sum of distinct primes, and study its asymptotic form valid in the limit . We obtain by Laplace inverting the fermionic partition function of primes, in number theory called the generating function of the distinct prime partitions, in the saddle-point approximation. We find that our result of , which includes two higher-order corrections to the leading term in its exponent and a pre-exponential correction factor, approximates the exact far better than its simple leading-order exponential form given so far in the literature.
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 · History and Theory of Mathematics · Advanced Mathematical Identities
On the asymptotic distinct prime partitions of integers
M. V. N. Murthy
The Institute of Mathematical Sciences, Chennai 600 113, India
Matthias Brack
Institute of Theoretical Physics, University of Regensburg, D-93040 Regensburg, Germany
R. K. Bhaduri111Deceased in November 2019 after the submission of this paper
Department of Physics and Astronomy, McMaster University, Hamilton L8S4M1, Canada
Abstract
We discuss , the number of ways a given integer may be written as a sum of distinct primes, and study its asymptotic form valid in the limit . We obtain by Laplace inverting the fermionic partition function of primes, in number theory called the generating function of the distinct prime partitions, in the saddle-point approximation. We find that our result of , which includes two higher-order corrections to the leading term in its exponent and a pre-exponential correction factor, approximates the exact far better than its simple leading-order exponential form given so far in the literature.
I Introduction
The asymptotic form of the distinct prime partitions , called the sequence A000586 in oeis , has in the literature so far only been given in its leading exponential form roth , published as long ago as in 1954. We believe that it is time to improve the asymptotics by corrections to the leading exponential form which itself is rather poor oeis . Although this might appear as a straight-forward task, it requires quite some cumbersome algebraic efforts. For the unrestricted prime partions , called the sequence A000607 in oeis , the next-to-leading order correction has been derived and published in 2008 in this journal vaughan . The numerical coefficient of the next-to-leading order term was corrected recently in BBBM . For our present investigations we will employ here the same method as in BBBM . Although this method algebraically is very close to that used in vaughan , we present it as viewed from the standpoint of statistical mechanics. The fact that the two partitions mentioned above can be connected to many-body systems of particles obeying opposite statistics may, in our opinion, serve as a bridge between mathematical physics and pure number theory.
It is well established by now muoi that the techniques of statistical mechanics can be applied to obtain any type of partition of a positive integer . The partition function of a gas in statistical mechanics contains information on the distribution of the total energy among the constituents and hence plays the same role as the generating function of the corresponding partitions in number theory. This relation was used in muoi , where the number of partitions known from number theory is obtained from the quantum density of states given by the inverse Laplace transform of the partition function. Taking the Laplace transform approximately using the saddle-point method then yields the asymptotic forms .
This method was applied in BBBM to the unrestricted partitions of integers into primes, i.e., the sequence A000607. For a system whose single-particle levels are defined by the primes as an ordered set, the total energy is given by a sum of primes, and the corresponding density of states is related to the number of unrestricted prime partitions , assuming that the particles behave like bosons. The asymptotic form obtained in BBBM was found to approximate the exact for large much better than the asymptotic expressions given earlier in the literature yang ; vaughan . The same method was also applied more recently to distinct square partitions in MBBB .
In the present paper we study , the number of ways a given integer may be written as a sum of distinct primes, i.e., the sequence A000586. As only distinct primes are allowed in , this corresponds to a system of fermionic particles, obeying the Pauli exclusion principle, still with the primes as single-particle levels. We again use the saddle-point method for Laplace inverting their partition function to derive algebraically the asymptotic form valid in the limit . In numerical computations up to we find that, like in BBBM , our result for approaches the exact far better than the simple leading-order exponential form given so far in the literature roth .
The plan of our paper is as follows. In Section II.1, we establish the relation of to the partition function and the density of states . In Sec. II.2 we derive its asymptotic form using the saddle-point method, and in Sec. II.3 we give the explicit solution of the saddle-point equation leading to our final result for . In Sec. III our asymptotic result is compared numerically with the exact function for the distinct prime partitions. We conclude the paper with a short summary in Sec. IV.
II Partitions into primes
II.1 Fermionic partition function and its relation to
Consider a large number of fermions whose single-particle spectrum is given by the primes . The total energy of the system is given by
[TABLE]
(We use throughout dimensionless variables and take the particle mass , the Planck constant and the Boltzmann constant to be unity: .) Here and in the following, the sums run over all primes , and are the fermionic occupancies of the levels which must be zero or one, such that
[TABLE]
The number of possible energy partitions with the restriction (2) shall be denoted by , where the subscript keeps track of the total number of particles. Although is necessarily integer, we treat it as a continuous variable like in statistical mechanics. is the number of -restricted fermionic partitions of , i.e., the number of ways to write as a sum of distinct primes. In the limit , will tend towards the number of unrestricted but distinct prime partitions under consideration here.
For the purpose of this paper, we are only interested in the limit of the fermionic partitions which then become unrestricted as stated above. The quantum-statistical partition function is in this limit given by
[TABLE]
where is the inverse temperature and the product runs over all primes . Taylor expanding the expontential in (3) and reordering the terms yields the alternative form of the partition function
[TABLE]
which in number theory is known as the generating function of the . In the On-line Encyclopedia of Integer Sequences (OEIS) oeis , the sequence of numbers is called the sequence A000586. Its first ten members are = 1, 0, 1, 1, 0, 2, 0, 2, 1, 1 for , where by definition. Note also that the are a subset of the (bosonic) prime partitions , called the sequence A000607 in oeis .
From the partition function, we obtain the many-body density of states by an inverse Laplace transform:
[TABLE]
Hereby is taken as a complex variable and the integration above runs along the imaginary axis of the complex plane. Later the Laplace inversion shall be taken in the saddle-point approximation.
It is important now to realize that is related to the density of states in the following way. Taking directly the exact inverse Laplace transform of (4), we find
[TABLE]
where is the Dirac delta function peaked at . We see thus that can also be understood as the density of distinct prime partitions. Like it was argued in MBBB for the distinct square partitions, averaging over a sufficiently large energy interval is asymptotically the same as averaging over a sufficiently large interval :
[TABLE]
Therefore determing the asymptotic average part of the density of states valid in the limit , which can be obtained by the saddle-point approximation to its inverse Laplace transform (5), and equating will give the average asymptotic form of the distinct prime partitions.
II.2 Asymptotic partition function from saddle-point approximation
We first rewrite the inverse Laplace transform (5) by taking the natural log of into the exponent:
[TABLE]
We now evaluate this integral using the saddle-point method (also called the method of steepest descent). We define the exponent above as the canonical entropy function
[TABLE]
Applying the saddle-point method to (8) requires to find a stationary point of the function by solving the saddle-point equation
[TABLE]
If this equation has a solution , which will be a function , one evaluates the successive partial derivatives of at :
[TABLE]
The approximate result of the inverse Laplace transform then is given by
[TABLE]
where the dots indicate the so-called cumulants involving higher derivatives of the entropy, which become more important for large (see, e.g., Ref. jelovic ). Since we are interested here in the limit relevant for the asymptotics of large , we can neglect these cumulants.
Next, we take the natural log of the partition function given in Eq.(3)
[TABLE]
and approximate it by the integral
[TABLE]
where is the approximate density of primes, using the prime number theorem. If the density were exact, then the integral would give the exact result (13).
The evaluation the integral in the limit follows closely the method outlined in BBBM . Denoting , the integral becomes
[TABLE]
In the limit we may write this integral as an asymptotic series
[TABLE]
This is now a series in the expansion parameter since each term is divided by the power . As we shall see later, in the leading saddle-point approximation and hence this is an asymptotic series in as well. In the asymptotic limit we take the lower limit of the integral to be zero.
For the present analysis, we retain the leading term and the first correction, like for the bosonic prime partitions in BBBM , and define
[TABLE]
The integrals may again be evaluated analytically and we obtain
[TABLE]
where is the Euler constant.
II.3 Solution of saddle-point equation and
In order to find the saddle point from Eq. (10), we start from the entropy in the asymptotic limit. Using Eqs. (9) and (18) we get up to order
[TABLE]
where
[TABLE]
The infinite sum in may be expressed in a closed form in terms of a derivative of the Riemann zeta function, leading to
[TABLE]
Eq. (19) is identical in form with that of the bosonic case given in BBBM :
[TABLE]
where
[TABLE]
The constant may also be expressed in a closed form by
[TABLE]
where … is the Glaisher-Kinkelin constant (see A074962 in oeis ).
The only difference in going from bosonic to the fermionic case is that the coefficients and of BBBM are replaced here by the and , respectively. Therefore we obtain our result simply by replacing the coefficients in the bosonic case by the in the present fermionic case and following the steps outlined in BBBM .
Thus we can directly give the result for the fermionic case as
[TABLE]
with the constant
[TABLE]
The asymptotic is then obtained replacing by above, so that:
[TABLE]
This is the main result of the present paper. The corresponding result for the bosonic partitions in BBBM was
[TABLE]
with the constant
[TABLE]
Note that the leading exponential terms and the denominators of the pre-exponential terms in (27) and (28) differ by a factor . Note that since the are a subset of the , their values must be smaller, which asymptotically is brought about by the extra factor in the leading exponential term. The first correction term in the exponent, namely , is identical in both cases. As far as we know, the above result (27) for the distinct prime partitions has not been given in the literature so far.
In the next section, we compare numerically our asymptotic result (27) with the exact values of the distinct prime partitions.
III Numerical test of
In this section we test our asymptotic result (27) numerically. We have generated the exact up to . In Figs. 1 and 2 we show their values by the dots (red) on a logarithmic scale in two regions of . The dashed line (green) shows the leading-order exponential expression
[TABLE]
which is the only asymptotic result that has been given so far in the literature roth , and the solid (blue) line gives our full asymptotic result (27).
A large discrepancy between and is noticed for all . Our full asymptotic result (27) approaches the exact much better (except in the academic limit where it diverges due to the pre-exponential factor). In Fig. 2 for the values , the two curves can hardly be distinguished.
We have thus achieved a considerable improvement over the simple exponential form (30). A closer look reveals that the curve for , which for smaller overestimates the exact , crosses the curve of the latter around . A similar result was found in BBBM for the bosonic prime partitions, where crosses much earlier and then tends to approach it asymptotically from below for .
In order to focus on this asymptotic behavior, we show in Fig. 3 the difference of the natural logs relative to the lowest-order term, i.e., the quantity , plotted versus in a region of the largest available. The solid (red) curve gives the result obtained with our full asymptotic form (27). For comparison we show in this figure by the dotted (blue) curve also the corresponding quantity obtained in Ref. BBBM from the unrestricted (bosonic) prime partitions and their respective asymptotic forms. The overall behaviour of the two curves is similar. For the results in BBBM we had larger values of available. There we noticed a tendency for the difference to approach zero from below for (i.e. ), as can be recognized from the blue curve in Fig. 3.
Note added after completion of our work:
After the publication of our results on the arXiv server in 2019 MBBarx , V. Kotesovec has performed numerical studies of our and the exact , computing these quantities up to . In order to achieve this, he programmed in the assembler a special floating point arithmetic in which both the mantissa and the exponent of these quantities have 8 bytes. By this procedure it was possible to generate 10 million terms in 9 hours, and the calculation of terms took 31 days.
V. Kotesovec has kindly sent us his results which confirm our findings (red line) up to and furthermore show that, indeed, the difference tends towards zero from the same side as that of the bosonic (unrestricted) prime partitions (blue curve). Similarly to the situation for the latter, the asymptotic ratio first exceeds the value 1 but then reaches a maximum, occurring here at , has an inflection point at n\,\hbox{\kern 1.00006pt\lower 2.58334pt\hbox{\sim} \kern-11.19997pt\raise 2.58334pt\hbox{>} }33\,272\;000, and gradually decreases back towards 1. One or two million terms are far from enough for this finding; it is necessary to have at least 40 million terms. A graph of Kotesovec’s result for is posted at OEIS kotes .
IV Summary
In summary, we have shown how an improved asymptotic expression for the function , which counts the number of distinct prime partitions of an integer , can be obtained from asymptotic expansions of the partition function in (4) and the corresponding density of states in (5). can be understood as the quantum-statistical partition function of a system of fermions, whose single-particle energy spectrum is given by the primes , in the limit . It is identical to the generating function of the known in number theory. The density of states is identical to the the density of distinct prime partitions given in Eq. (6). Exploiting the connection between and using the saddle-point approximation for the inverse Laplace transform (5), we have obtained the asymptotic form in Eq. (27) and shown it numerically to approach the exact in the limit far better than the hitherto known expression given in (30).
We have used the same method as in Ref. BBBM where the non-distinct prime partitions were studied, and have found similar results as there. The asymptotic overestimates the exact for smaller but overshoots it for n\,\hbox{\kern 1.00006pt\lower 2.58334pt\hbox{\sim} \kern-11.19997pt\raise 2.58334pt\hbox{>} }50,000. Like in BBBM , the limit for cannot be demonstrated rigorously. However, forcing the calculation of our and of up to , V. Kotesovec has shown numerically that , indeed, approaches monotonously for n\,\hbox{\kern 1.00006pt\lower 2.58334pt\hbox{\sim} \kern-11.19997pt\raise 2.58334pt\hbox{>} }4\times 10^{7} kotes . He assumed that the difference can be approximated by a term in the square brackets of the asymptotic expansion (27) and showed that the results are very sensitive to the value of . We join his suggestion that the systematic evaluation of the algebraic value of , or of other correction terms in (27), could be a topic of interesting future research for the next generation of patient researchers.
But already now we can state that already with our present result (27), we have obtained an excellent asymptotic approximation for the distinct prime partitions which is far superior to the hitherto known result roth .
M.V.N.M. and M.B. acknowledge stimulating earlier correspondence with V. Kotesovec and, in particular, the communication of his most recent numerical results. R.K.B. is grateful to the IMSc, Chennai, for its hospitality during the final stages of our collaboration.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1)
- 2(2) The On-line Encyclopedia of Integer Sequences (OEIS), see < < http://oeis.org > > .
- 3(3) K. F. Roth and G. Szekeres, Q. J. Math. Oxf. Ser. (2) 5 , 241 (1954).
- 4(4) R. C. Vaughan, Ramanujan J. 15 , 109 (2008).
- 5(5) J. Bartel, R. K. Bhaduri, M. Brack and M. V. N. Murthy, Phys. Rev. E 95 , 052108 (2017).
- 6(6) M. N. Tran, M. V. N. Murthy and R. K. Bhaduri, Ann. Phys. 311 , 204 (2004).
- 7(7) Yifan Yang, Trans. Am. Math. Soc. 352 , 2581 (2000).
- 8(8) M. V. N. Murthy, M. Brack, R. K. Bhaduri, and J. Bartel, Phys. Rev. E 98 , 052131 (2018).
