Partition function (number theory)
No closed-form expression for the partition function is known, but it has both asymptotic expansions that accurately approximate it and recurrence relations by which it can be calculated exactly. It grows as an exponential function of the square root of its argument. The multiplicative inverse of its generating function is the Euler function; by Euler's pentagonal number theorem this function is an alternating sum of pentagonal number powers of its argument.
Srinivasa Ramanujan first discovered that the partition function has nontrivial patterns in modular arithmetic, now known as Ramanujan's congruences. For instance, whenever the decimal representation of ends in the digit 4 or 9, the number of partitions of will be divisible by 5.
Definition and examples
For a positive integer , is the number of distinct ways of representing as a sum of positive integers. For the purposes of this definition, the order of the terms in the sum is irrelevant: two sums with the same terms in a different order are not considered to be distinct.
By convention , as there is one way (the empty sum) of representing zero as a sum of positive integers. For the same reason, by definition, when is negative.
The first few values of the partition function, starting with , are:
- 1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 56, 77, 101, 135, 176, 231, 297, 385, 490, 627, 792, 1002, 1255, 1575, 1958, 2436, 3010, 3718, 4565, 5604, … (sequence A000041 in the OEIS).
Some exact value of for larger values of include:
The equality between the products on the first and second lines of this formula is obtained by expanding each factor into the geometric series To see that the expanded product equals the sum on the first line, apply the distributive law to the product. This expands the product into a sum of monomials of the form for some sequence of coefficients , only finitely many of which can be non-zero. The exponent of the term is , and this sum can be interpreted as a representation of as a partition into copies of each number . Therefore, the number of terms of the product that that have exponent is exactly , the same as the coefficient of in the sum on the left. Therefore, the sum equals the product.
The function that appears in the denominator in the third and fourth lines of the formula is the Euler function. The equality between the product on the first line and the formulas in the third and fourth lines is Euler's pentagonal number theorem. The exponents of in these lines are the pentagonal numbers for (generalized somewhat from the usual pentagonal numbers, which come from the same formula for the positive values of ). The pattern of positive and negative signs in the third line comes from the term in the fourth line: even choices of produce positive terms, and odd choices produce negative terms.
More generally, the generating function for the partitions of into numbers selected from a set of positive integers can be found by taking only those terms in the first product for which . This result is due to Leonhard Euler. The formulation of Euler's generating function is a special case of a -Pochhammer symbol and is similar to the product formulation of many modular forms, and specifically the Dedekind eta function.
As base cases, is taken to equal , and is taken to be zero for negative . Although the sum on the right side appears infinite, it has only finitely many nonzero terms, coming from the nonzero values of in the range
If denotes the number of partitions of with no repeated parts then it follows by splitting each partition into its even parts and odd parts, and dividing the even parts by two, that
Srinivasa Ramanujan is credited with discovering that the partition function has nontrivial patterns in modular arithmetic. For instance the number of partitions is divisible by five whenever the decimal representation of ends in the digit 4 or 9, as expressed by the congruence
For instance, the number of partitions for the integer 4 is 5. For the integer 9, the number of partitions is 30; for 14 there are 135 partitions. This congruence is implied by the more general identity
A short proof of this result can be obtained from the partition function generating function.
Ramanujan also discovered congruences modulo 7 and 11:
They come from Ramanujan's identity
Since 5, 7, and 11 are consecutive primes, one might think that there would be an analogous congruence for the next prime 13, for some a. However, there is no congruence of the form for any prime b other than 5, 7, or 11. Instead, to obtain a congruence, the argument of should take the form for some . In the 1960s, A. O. L. Atkin of the University of Illinois at Chicago discovered additional congruences of this form for small prime moduli. For example:
Ken Ono (2000) proved that there are such congruences for every prime modulus greater than 3. Later, Ahlgren & Ono (2001) showed there are partition congruences modulo every integer coprime to 6.
Approximation formulas exist that are faster to calculate than the exact formula given above.
An asymptotic expression for p(n) is given by
- as .
This asymptotic formula was first obtained by G. H. Hardy and Ramanujan in 1918 and independently by J. V. Uspensky in 1920. Considering , the asymptotic formula gives about , reasonably close to the exact answer given above (1.415% larger than the true value).
The error after terms is of the order of the next term, and may be taken to be of the order of . As an example, Hardy and Ramanujan showed that is the nearest integer to the sum of the first terms of the series.
It may be shown that the th term of Rademacher's series is of the order
Techniques for implementing the Hardy–Ramanujan–Rademacher formula efficiently on a computer are discussed by Johansson (2012), who shows that can be computed in time for any . This is near-optimal in that it matches the number of digits of the result. The largest value of the partition function computed exactly is , which has slightly more than 11 billion digits.
- Sloane, N. J. A. (ed.). "Sequence A070177". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- Caldwell, Chris K. (2017), The Top Twenty
- Abramowitz, Milton; Stegun, Irene (1964), Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, United States Department of Commerce, National Bureau of Standards, p. 825, ISBN 0-486-61272-4
- Euler, Leonhard (1753), "De partitione numerorum", Novi Commentarii academiae scientiarum Petropolitanae (in Latin), 3: 125–169
- Ewell, John A. (2004), "Recurrences for the partition function and its relatives", The Rocky Mountain Journal of Mathematics, 34 (2): 619–627, doi:10.1216/rmjm/1181069871, JSTOR 44238988, MR 2072798
- Wilf, Herbert S. (1982), "What is an answer?", American Mathematical Monthly, 89 (5): 289–292, doi:10.2307/2321713, MR 0653502
- Al, Busra; Alkan, Mustafa (2018), "A note on relations among partitions", Proc. Mediterranean Int. Conf. Pure & Applied Math. and Related Areas (MICOPAM 2018), pp. 35–39
- Hardy, G. H.; Wright, E. M. (2008) , An Introduction to the Theory of Numbers (6th ed.), Oxford University Press, p. 380, ISBN 978-0-19-921986-5, MR 2445243, Zbl 1159.11001
- Berndt, Bruce C.; Ono, Ken (1999), "Ramanujan's unpublished manuscript on the partition and tau functions with proofs and commentary" (PDF), The Andrews Festschrift (Maratea, 1998), Séminaire Lotharingien de Combinatoire, 42, Art. B42c, 63, MR 1701582
- Ono, Ken (2004), The web of modularity: arithmetic of the coefficients of modular forms and -series, CBMS Regional Conference Series in Mathematics, 102, Providence, Rhode Island: American Mathematical Society, p. 87, ISBN 0-8218-3368-5, Zbl 1119.11026
- Ahlgren, Scott; Boylan, Matthew (2003), "Arithmetic properties of the partition function" (PDF), Inventiones Mathematicae, 153 (3): 487–502, doi:10.1007/s00222-003-0295-6, MR 2000466
- Ono, Ken (2000), "Distribution of the partition function modulo ", Annals of Mathematics, 151 (1): 293–307, arXiv:math/0008140, doi:10.2307/121118, MR 1745012, Zbl 0984.11050
- Ahlgren, Scott; Ono, Ken (2001), "Congruence properties for the partition function" (PDF), Proceedings of the National Academy of Sciences, 98 (23): 12882–12884, Bibcode:2001PNAS...9812882A, doi:10.1073/pnas.191488598, MR 1862931
- Hardy, G. H.; Ramanujan, S. (1918), "Asymptotic formulae in combinatory analysis", Proceedings of the London Mathematical Society, Second Series, 17 (75–115). Reprinted in Collected papers of Srinivasa Ramanujan, Amer. Math. Soc. (2000), pp. 276–309.
- Andrews, George E. (1976), The Theory of Partitions, Cambridge University Press, p. 69, ISBN 0-521-63766-X, MR 0557013
- Rademacher, Hans (1937), "On the partition function ", Proceedings of the London Mathematical Society, Second Series, 43 (4): 241–254, doi:10.1112/plms/s2-43.4.241, MR 1575213
- Erdős, P. (1942), "On an elementary proof of some asymptotic formulas in the theory of partitions" (PDF), Annals of Mathematics, Second Series, 43: 437–450, doi:10.2307/1968802, MR 0006749, Zbl 0061.07905
- Nathanson, M. B. (2000), Elementary Methods in Number Theory, Graduate Texts in Mathematics, 195, Springer-Verlag, p. 456, ISBN 0-387-98912-9, Zbl 0953.11002
- Johansson, Fredrik (2012), "Efficient implementation of the Hardy–Ramanujan–Rademacher formula", LMS Journal of Computation and Mathematics, 15: 341–59, arXiv:1205.5991, doi:10.1112/S1461157012001088, MR 2988821
- Johansson, Fredrik (March 2, 2014), New partition function record: p(1020) computed