Partition function (number theory): Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>David Eppstein
Undid revision 1264848756 by 2A00:23C6:5493:4C01:1106:FCC:5188:F299 (talk) nothing wrong with formulas in English. If this were the Latin Wikipedia, it would be a case error.
 
imported>JayBeeEll
Undid revision 1329550538 by Loverthehater (talk) this does not seem to me to be in "plain"er language, it is just more muddled and uses symbols before they're defined, with ambiguous quantification
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Short description|The number of partitions of an integer}}
{{Short description|Number of partitions of an integer}}
{{CS1 config|mode=cs2}}
{{CS1 config|mode=cs2}}
[[File:Ferrer partitioning diagrams.svg|thumb|The values <math>p(1), \dots, p(8)</math> of the partition function (1, 2, 3, 5, 7, 11, 15, and 22) can be determined by counting the [[Young diagram]]s for the partitions of the numbers from 1 to 8.]]
[[File:Ferrer partitioning diagrams.svg|thumb|The values <math>p(1), \dots, p(8)</math> of the partition function (1, 2, 3, 5, 7, 11, 15, and 22) can be determined by counting the [[Young diagram]]s for the partitions of the numbers from 1 to 8.]]
In [[number theory]], the '''partition function''' {{math|''p''(''n'')}} represents the [[number]] of possible [[Integer partition|partitions]] of a non-negative integer {{mvar|n}}. For instance, {{math|1=''p''(4) = 5}} because the integer 4 has the five partitions {{math|1 + 1 + 1 + 1}}, {{math|1 + 1 + 2}}, {{math|1 + 3}}, {{math|2 + 2}}, and {{math|4}}.
In [[number theory]], the '''partition function''' {{math|''p''(''n'')}} represents the [[number]] of possible [[Integer partition|partitions]] of a non-negative integer {{mvar|n}}. For instance, {{math|1=''p''(4) = 5}} because the integer 4 has the five partitions {{math|1 + 1 + 1 + 1}}, {{math|1 + 1 + 2}}, {{math|1 + 3}}, {{math|2 + 2}}, and {{math|4}}.


No [[closed-form expression]] for the partition function is known, but it has both [[asymptotic analysis|asymptotic expansions]] that accurately approximate it and [[recurrence relation]]s 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.
No [[closed-form expression]] for the partition function is known, but it has both [[asymptotic analysis|asymptotic expansions]] that accurately approximate it and [[recurrence relation]]s 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 {{mvar|n}} ends in the digit 4 or 9, the number of partitions of {{mvar|n}} will be divisible by 5.
[[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 {{mvar|n}} ends in the digit 4 or 9, the number of partitions of {{mvar|n}} will be divisible by 5.


==Definition and examples==
==Definition and examples==
For a positive integer {{math|''n''}}, {{math|''p''(''n'')}} is the number of distinct ways of representing {{mvar|n}} as a [[summation|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.
For a positive integer {{math|''n''}}, {{math|''p''(''n'')}} is the number of distinct ways of representing {{mvar|n}} as a [[summation|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 (e.g.,  {{math|1 + 1 + 2}} and {{math|1 + 2 + 1}}) are not considered distinct.{{efn|The corresponding objects where order is taken into account are called [[Composition (combinatorics)|compositions]].}}


By convention {{math|1=''p''(0) = 1}}, as there is one way (the [[empty sum]]) of representing zero as a sum of positive integers. Furthermore {{math|1=''p''(''n'') = 0}} when {{mvar|n}} is negative.
By convention {{math|1=''p''(0) = 1}}, as there is one way of representing 0 as a sum of positive integers (the [[empty sum]]). Furthermore {{math|1=''p''(''n'') = 0}} when {{mvar|n}} is negative.


The first few values of the partition function, starting with {{math|1=''p''(0) = 1}}, are:
The first few values of the partition function, starting with {{math|1=''p''(0) = 1}}, are
{{block indent | em = 1.5 | text = 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, ... {{OEIS|id=A000041}}.}}
{{block indent | em = 1.5 | text = 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, ... {{OEIS|id=A000041}}.}}


Some exact values of {{math|''p''(''n'')}} for larger values of {{mvar|n}} include:{{r|oeis}}
Some exact values of {{math|''p''(''n'')}} for larger values of {{mvar|n}} include{{r|oeis}}
<math display="block">\begin{align}
<math display="block">\begin{align}
p(100) &= 190,\!569,\!292\\
p(100) &= 190,\!569,\!292\\
Line 33: Line 33:
&=\frac{1}{1 - x - x^2 + x^5 + x^7 - x^{12} - x^{15} + x^{22} + x^{26} - \cdots}\\
&=\frac{1}{1 - x - x^2 + x^5 + x^7 - x^{12} - x^{15} + x^{22} + x^{26} - \cdots}\\
&=1 \Big/ \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k-1)/2}.
&=1 \Big/ \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k-1)/2}.
\end{align}</math>
\end{align}</math>The equality between the products on the first and second lines of this formula is obtained by expanding each factor <math>1/(1-x^k)</math> into the [[geometric series]] <math>(1+x^k+x^{2k}+x^{3k}+\cdots).</math> 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 [[monomial]]s of the form <math>x^{a_1} x^{2a_2} x^{3a_3} \cdots</math> for some sequence of coefficients <math>a_i</math>, only finitely many of which can be non-zero. The exponent of the term is <math display="inline">n = \sum i a_i</math>, and this sum can be interpreted as a representation of <math>n</math> as a partition into <math>a_i</math> copies of each number <math>i</math>. Therefore, the number of terms of the product that have exponent <math>n</math> is exactly <math>p(n)</math>, the same as the coefficient of <math>x^n</math> in the sum on the left. Therefore, the sum equals the product.
The equality between the products on the first and second lines of this formula
is obtained by expanding each factor <math>1/(1-x^k)</math> into the [[geometric series]] <math>(1+x^k+x^{2k}+x^{3k}+\cdots).</math>
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 [[monomial]]s of the form <math>x^{a_1} x^{2a_2} x^{3a_3} \cdots</math> for some sequence of coefficients
<math>a_i</math>, only finitely many of which can be non-zero.
The exponent of the term is <math display="inline">n = \sum i a_i</math>, and this sum can be interpreted as a representation of <math>n</math> as a partition into <math>a_i</math> copies of each number <math>i</math>. Therefore, the number of terms of the product that have exponent <math>n</math> is exactly <math>p(n)</math>, the same as the coefficient of <math>x^n</math> 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 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]].
Line 92: Line 85:
<math display="block">p(11^3 \cdot 13 \cdot k + 237)\equiv 0 \pmod {13}.</math>
<math display="block">p(11^3 \cdot 13 \cdot k + 237)\equiv 0 \pmod {13}.</math>


{{harvs|first=Ken|last=Ono|authorlink=Ken Ono|year=2000|txt}} proved that there are such congruences for every prime modulus greater than 3. Later, {{harvtxt|Ahlgren|Ono|2001}} showed there are partition congruences modulo every integer [[coprime integers|coprime]] to&nbsp;6.{{r|o2k|ao}}
{{harvs|first=Ken|last=Ono|authorlink=Ken Ono|year=2000|txt}} proved that there are such congruences for every prime modulus greater than 3. Later, {{harvtxt|Ahlgren|Ono|2001}} showed there are partition congruences modulo every integer [[coprime integers|coprime]] to 6.{{r|o2k|ao}}
 
[[Newman's conjecture]] is an unsolved problem regarding the congruences of the partition function, formulated by mathematician Morris Newman in 1960.<ref>{{Cite journal|last=Newman|first=Morris|date=1960|title=Periodicity Modulo m and Divisibility Properties of the Partition Function|journal=Transactions of the American Mathematical Society|volume=97|issue=2|pages=225–236|doi=10.2307/1993300|issn=0002-9947|jstor=1993300}}</ref> The conjecture posits that, given any integers {{Mvar|r}}, {{Mvar|m}} where <math>0 \leq r \leq m - 1</math>, there are infinitely many non-negative integers {{Mvar|n}} for which <math>p(n) \equiv r \pmod m</math>.


==Approximation formulas==
==Approximation formulas==
Line 247: Line 242:


==References==
==References==
{{reflist|refs=
{{notelist}}
<references>


<ref name=aa>{{citation
<ref name=aa>{{citation
  | last1 = Al | first1 = Busra
  | last1 = Al
  | last2 = Alkan | first2 = Mustafa
| first1 = Busra
  | last2 = Alkan
| first2 = Mustafa
  | contribution = A note on relations among partitions
  | contribution = A note on relations among partitions
  | pages = 35–39
  | pages = 35–39
  | title = Proc. Mediterranean Int. Conf. Pure & Applied Math. and Related Areas (MICOPAM 2018)
  | title = Proc. Mediterranean Int. Conf. Pure & Applied Math. and Related Areas (MICOPAM 2018)
  | url = https://elibrary.matf.bg.ac.rs/handle/123456789/4699
  | url = https://elibrary.matf.bg.ac.rs/handle/123456789/4699
  | year = 2018}}</ref>
  | year = 2018
| access-date = 2018-12-17
| archive-date = 2024-04-27
| archive-url = https://web.archive.org/web/20240427205845/http://elibrary.matf.bg.ac.rs/handle/123456789/4699
| url-status = dead
}}</ref>


<ref name=ab>{{citation
<ref name=ab>{{citation
  | last1 = Ahlgren | first1 = Scott
  | last1 = Ahlgren
  | last2 = Boylan | first2 = Matthew
| first1 = Scott
  | last2 = Boylan
| first2 = Matthew
  | doi = 10.1007/s00222-003-0295-6
  | doi = 10.1007/s00222-003-0295-6
  | issue = 3
  | issue = 3
Line 269: Line 274:
  | url = https://www.math.sc.edu/~boylan/reprints/nomoreramafinal.pdf
  | url = https://www.math.sc.edu/~boylan/reprints/nomoreramafinal.pdf
  | volume = 153
  | volume = 153
  | year = 2003| bibcode = 2003InMat.153..487A
  | year = 2003
| bibcode = 2003InMat.153..487A
  | s2cid = 123104639
  | s2cid = 123104639
| access-date = 2018-12-17
| archive-date = 2008-07-19
| archive-url = https://web.archive.org/web/20080719184728/http://www.math.sc.edu/~boylan/reprints/nomoreramafinal.pdf
| url-status = dead
  }}</ref>
  }}</ref>


Line 283: Line 293:


<ref name=ao>{{citation
<ref name=ao>{{citation
  | last1 = Ahlgren | first1 = Scott
  | last1 = Ahlgren
  | last2 = Ono | first2 = Ken | author2-link = Ken Ono
| first1 = Scott
  | last2 = Ono
| first2 = Ken
| author2-link = Ken Ono
  | bibcode = 2001PNAS...9812882A
  | bibcode = 2001PNAS...9812882A
  | doi = 10.1073/pnas.191488598
  | doi = 10.1073/pnas.191488598
Line 294: Line 307:
  | url = https://www.mathcs.emory.edu/~ono/publications-cv/pdfs/061.pdf
  | url = https://www.mathcs.emory.edu/~ono/publications-cv/pdfs/061.pdf
  | volume = 98
  | volume = 98
  | year = 2001| pmid = 11606715
  | year = 2001
| pmid = 11606715
  | pmc = 60793
  | pmc = 60793
  | doi-access = free
  | doi-access = free
| access-date = 2018-12-17
| archive-date = 2019-03-04
| archive-url = https://web.archive.org/web/20190304030350/http://www.mathcs.emory.edu/~ono/publications-cv/pdfs/061.pdf
| url-status = dead
  }}</ref>
  }}</ref>


Line 314: Line 332:


<ref name=bo>{{citation
<ref name=bo>{{citation
  | last1 = Berndt | first1 = Bruce C. | author1-link = Bruce C. Berndt
  | last1 = Berndt
  | last2 = Ono | first2 = Ken | author2-link = Ken Ono
| first1 = Bruce C.
| author1-link = Bruce C. Berndt
  | last2 = Ono
| first2 = Ken
| author2-link = Ken Ono
  | contribution = Ramanujan's unpublished manuscript on the partition and tau functions with proofs and commentary
  | contribution = Ramanujan's unpublished manuscript on the partition and tau functions with proofs and commentary
  | contribution-url = https://www.mathcs.emory.edu/~ono/publications-cv/pdfs/044.pdf
  | contribution-url = https://www.mathcs.emory.edu/~ono/publications-cv/pdfs/044.pdf
Line 323: Line 345:
  | title = The Andrews Festschrift (Maratea, 1998)
  | title = The Andrews Festschrift (Maratea, 1998)
  | volume = 42
  | volume = 42
  | year = 1999}}</ref>
  | year = 1999
| access-date = 2018-12-17
| archive-date = 2019-03-04
| archive-url = https://web.archive.org/web/20190304030309/http://www.mathcs.emory.edu/~ono/publications-cv/pdfs/044.pdf
| url-status = dead
}}</ref>


<ref name=e>{{citation
<ref name=e>{{citation
  | last = Euler | first = Leonhard | author-link = Leonhard Euler
  | last = Euler
| first = Leonhard
| author-link = Leonhard Euler
  | journal = Novi Commentarii Academiae Scientiarum Petropolitanae
  | journal = Novi Commentarii Academiae Scientiarum Petropolitanae
  | language = la
  | language = la
Line 333: Line 362:
  | url = https://eulerarchive.maa.org/pages/E191.html
  | url = https://eulerarchive.maa.org/pages/E191.html
  | volume = 3
  | volume = 3
  | year = 1753}}</ref>
  | year = 1753
| access-date = 2018-12-17
| archive-date = 2023-08-05
| archive-url = https://web.archive.org/web/20230805000145/http://eulerarchive.maa.org//pages/E191.html
| url-status = dead
}}</ref>


<ref name=erdos42>{{citation
<ref name=erdos42>{{citation
Line 413: Line 447:
  | zbl = 0953.11002}}</ref>
  | zbl = 0953.11002}}</ref>


<ref name=oeis>{{Cite OEIS| sequencenumber=A070177| mode=cs2}}</ref>
<ref name=oeis>{{Cite OEIS| sequencenumber=A070177}}</ref>


<ref name=o2k>{{citation
<ref name=o2k>{{citation
Line 463: Line 497:
  | year = 1982| jstor = 2321713 }}</ref>
  | year = 1982| jstor = 2321713 }}</ref>


}}
</references>


==External links==
==External links==

Latest revision as of 20:37, 26 December 2025

Template:Short description Template:CS1 config

File:Ferrer partitioning diagrams.svg
The values p(1),,p(8) of the partition function (1, 2, 3, 5, 7, 11, 15, and 22) can be determined by counting the Young diagrams for the partitions of the numbers from 1 to 8.

In number theory, the partition function p(n)Script error: No such module "Check for unknown parameters". represents the number of possible partitions of a non-negative integer Template:Mvar. For instance, p(4) = 5Script error: No such module "Check for unknown parameters". because the integer 4 has the five partitions 1 + 1 + 1 + 1Script error: No such module "Check for unknown parameters"., 1 + 1 + 2Script error: No such module "Check for unknown parameters"., 1 + 3Script error: No such module "Check for unknown parameters"., 2 + 2Script error: No such module "Check for unknown parameters"., and 4Script error: No such module "Check for unknown parameters"..

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 Template:Mvar ends in the digit 4 or 9, the number of partitions of Template:Mvar will be divisible by 5.

Definition and examples

For a positive integer nScript error: No such module "Check for unknown parameters"., p(n)Script error: No such module "Check for unknown parameters". is the number of distinct ways of representing Template:Mvar 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 (e.g., 1 + 1 + 2Script error: No such module "Check for unknown parameters". and 1 + 2 + 1Script error: No such module "Check for unknown parameters".) are not considered distinct.Template:Efn

By convention p(0) = 1Script error: No such module "Check for unknown parameters"., as there is one way of representing 0 as a sum of positive integers (the empty sum). Furthermore p(n) = 0Script error: No such module "Check for unknown parameters". when Template:Mvar is negative.

The first few values of the partition function, starting with p(0) = 1Script error: No such module "Check for unknown parameters"., are Template:Block indent

Some exact values of p(n)Script error: No such module "Check for unknown parameters". for larger values of Template:Mvar includeTemplate:R p(100)=190,569,292p(1000)=24,061,467,864,032,622,473,692,149,727,9912.40615×1031p(10000)=36,167,251,325,,906,916,435,1443.61673×10106

Generating function

File:Euler partition function.svg
Using Euler's method to find p(40)Script error: No such module "Check for unknown parameters".: A ruler with plus and minus signs (grey box) is slid downwards, the relevant terms added or subtracted. The positions of the signs are given by differences of alternating natural (blue) and odd (orange) numbers. In [ the SVG file,] hover over the image to move the ruler.

Script error: No such module "Labelled list hatnote". The generating function for p(n) is given byTemplate:R n=0p(n)xn=k=1(11xk)=(1+x+x2+)(1+x2+x4+)(1+x3+x6+)=11xx2+x5+x7x12x15+x22+x26=1/k=(1)kxk(3k1)/2.The equality between the products on the first and second lines of this formula is obtained by expanding each factor 1/(1xk) into the geometric series (1+xk+x2k+x3k+). 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 xa1x2a2x3a3 for some sequence of coefficients ai, only finitely many of which can be non-zero. The exponent of the term is n=iai, and this sum can be interpreted as a representation of n as a partition into ai copies of each number i. Therefore, the number of terms of the product that have exponent n is exactly p(n), the same as the coefficient of xn 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 x in these lines are the pentagonal numbers Pk=k(3k1)/2 for k{0,1,1,2,2,} (generalized somewhat from the usual pentagonal numbers, which come from the same formula for the positive values of k). The pattern of positive and negative signs in the third line comes from the term (1)k in the fourth line: even choices of k produce positive terms, and odd choices produce negative terms.

More generally, the generating function for the partitions of n into numbers selected from a set A of positive integers can be found by taking only those terms in the first product for which kA. This result is due to Leonhard Euler.Template:R The formulation of Euler's generating function is a special case of a q-Pochhammer symbol and is similar to the product formulation of many modular forms, and specifically the Dedekind eta function.

Recurrence relations

The same sequence of pentagonal numbers appears in a recurrence relation for the partition function:Template:R p(n)=k{0}(1)k+1p(nk(3k1)/2)=p(n1)+p(n2)p(n5)p(n7)+p(n12)+p(n15)p(n22) As base cases, p(0) is taken to equal 1, and p(k) is taken to be zero for negative k. Although the sum on the right side appears infinite, it has only finitely many nonzero terms, coming from the nonzero values of k in the range 24n+116k24n+1+16. The recurrence relation can also be written in the equivalent form p(n)=k=1(1)k+1(p(nk(3k1)/2)+p(nk(3k+1)/2)).

Another recurrence relation for p(n) can be given in terms of the sum of divisors function σScript error: No such module "Check for unknown parameters".:Template:R p(n)=1nk=0n1σ(nk)p(k). If q(n) denotes the number of partitions of n 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, thatTemplate:R p(n)=k=0n/2q(n2k)p(k).

Congruences

Script error: No such module "Labelled list hatnote". 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 n ends in the digit 4 or 9, as expressed by the congruenceTemplate:R p(5k+4)0(mod5) 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 k=0p(5k+4)xk=5(x5)5(x)6, also by Ramanujan,Template:R where the notation (x) denotes the product defined by (x)=m=1(1xm). A short proof of this result can be obtained from the partition function generating function.

Ramanujan also discovered congruences modulo 7 and 11:Template:R p(7k+5)0(mod7),p(11k+6)0(mod11). The first one comes from Ramanujan's identityTemplate:R k=0p(7k+5)xk=7(x7)3(x)4+49x(x7)7(x)8.

Since 5, 7, and 11 are consecutive primes, one might think that there would be an analogous congruence for the next prime 13, p(13k+a)0(mod13) for some Template:Mvar. However, there is no congruence of the form p(bk+a)0(modb) for any prime b other than 5, 7, or 11.Template:R Instead, to obtain a congruence, the argument of p should take the form cbk+a for some c>1. 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: p(11313k+237)0(mod13).

Ken Ono (2000) proved that there are such congruences for every prime modulus greater than 3. Later, Script error: No such module "Footnotes". showed there are partition congruences modulo every integer coprime to 6.Template:R

Newman's conjecture is an unsolved problem regarding the congruences of the partition function, formulated by mathematician Morris Newman in 1960.[1] The conjecture posits that, given any integers Template:Mvar, Template:Mvar where 0rm1, there are infinitely many non-negative integers Template:Mvar for which p(n)r(modm).

Approximation formulas

Approximation formulas exist that are faster to calculate than the exact formula given above.

An asymptotic expression for p(n) is given by

p(n)14n3exp(π2n3) as n.

This asymptotic formula was first obtained by G. H. Hardy and Ramanujan in 1918 and independently by J. V. Uspensky in 1920. Considering p(1000), the asymptotic formula gives about 2.4402×1031, reasonably close to the exact answer given above (1.415% larger than the true value).

Hardy and Ramanujan obtained an asymptotic expansion with this approximation as the first term:Template:R p(n)12π2k=1vAk(n)kddn(1n124exp[πk23(n124)]), where Ak(n)=0m<k,(m,k)=1eπi(s(m,k)2nm/k). Here, the notation (m,k)=1 means that the sum is taken only over the values of m that are relatively prime to k. The function s(m,k) is a Dedekind sum.

The error after v terms is of the order of the next term, and v may be taken to be of the order of n. As an example, Hardy and Ramanujan showed that p(200) is the nearest integer to the sum of the first v=5 terms of the series.Template:R

In 1937, Hans Rademacher was able to improve on Hardy and Ramanujan's results by providing a convergent series expression for p(n). It isTemplate:R p(n)=1π2k=1Ak(n)kddn(1n124sinh[πk23(n124)]).

The proof of Rademacher's formula involves Ford circles, Farey sequences, modular symmetry and the Dedekind eta function.

It may be shown that the kth term of Rademacher's series is of the order exp(πk2n3), so that the first term gives the Hardy–Ramanujan asymptotic approximation. Paul Erdős (1942) published an elementary proof of the asymptotic formula for p(n).Template:R

Techniques for implementing the Hardy–Ramanujan–Rademacher formula efficiently on a computer are discussed by Script error: No such module "Footnotes"., who shows that p(n) can be computed in time O(n1/2+ε) for any ε>0. This is near-optimal in that it matches the number of digits of the result.Template:R The largest value of the partition function computed exactly is p(1020), which has slightly more than 11 billion digits.Template:R

Strict partition function

Definition and properties

A partition in which no part occurs more than once is called strict, or is said to be a partition into distinct parts. The function q(n) gives the number of these strict partitions of the given sum n. For example, q(3) = 2 because the partitions 3 and 1 + 2 are strict, while the third partition 1 + 1 + 1 of 3 has repeated parts. The number q(n) is also equal to the number of partitions of n in which only odd summands are permitted.[2]

Example values of q(n) and associated partitions
n q(n) Strict partitions Partitions with only odd parts
0 1 () empty partition () empty partition
1 1 1 1
2 1 2 1+1
3 2 1+2, 3 1+1+1, 3
4 2 1+3, 4 1+1+1+1, 1+3
5 3 2+3, 1+4, 5 1+1+1+1+1, 1+1+3, 5
6 4 1+2+3, 2+4, 1+5, 6 1+1+1+1+1+1, 1+1+1+3, 3+3, 1+5
7 5 1+2+4, 3+4, 2+5, 1+6, 7 1+1+1+1+1+1+1, 1+1+1+1+3, 1+3+3, 1+1+5, 7
8 6 1+3+4, 1+2+5, 3+5, 2+6, 1+7, 8 1+1+1+1+1+1+1+1, 1+1+1+1+1+3, 1+1+3+3, 1+1+1+5, 3+5, 1+7
9 8 2+3+4, 1+3+5, 4+5, 1+2+6, 3+6, 2+7, 1+8, 9 1+1+1+1+1+1+1+1+1, 1+1+1+1+1+1+3, 1+1+1+3+3, 3+3+3, 1+1+1+1+5, 1+3+5, 1+1+7, 9

Generating function

The generating function for the numbers q(n) is given by a simple infinite product:[3] n=0q(n)xn=k=1(1+xk)=(x;x2)1, where the notation (a;b) represents the Pochhammer symbol (a;b)=k=0(1abk). From this formula, one may easily obtain the first few terms (sequence A000009 in the OEIS): n=0q(n)xn=1+1x+1x2+2x3+2x4+3x5+4x6+5x7+6x8+8x9+10x10+. This series may also be written in terms of theta functions as n=0q(n)xn=ϑ00(x)1/6ϑ01(x)1/3{116x[ϑ00(x)4ϑ01(x)4]}1/24, where ϑ00(x)=1+2n=1xn2 and ϑ01(x)=1+2n=1(1)nxn2. In comparison, the generating function of the regular partition numbers p(n) has this identity with respect to the theta function: n=0p(n)xn=(x;x)1=ϑ00(x)1/6ϑ01(x)2/3{116x[ϑ00(x)4ϑ01(x)4]}1/24.

Identities about strict partition numbers

Following identity is valid for the Pochhammer products:

(x;x)1=(x2;x2)1(x;x2)1

From this identity follows that formula:

[n=0p(n)xn]=[n=0p(n)x2n][n=0q(n)xn]

Therefore those two formulas are valid for the synthesis of the number sequence p(n):

p(2n)=k=0np(nk)q(2k)
p(2n+1)=k=0np(nk)q(2k+1)

In the following, two examples are accurately executed:

p(8)=k=04p(4k)q(2k)=
=p(4)q(0)+p(3)q(2)+p(2)q(4)+p(1)q(6)+p(0)q(8)=
=5×1+3×1+2×2+1×4+1×6=22
p(9)=k=04p(4k)q(2k+1)=
=p(4)q(1)+p(3)q(3)+p(2)q(5)+p(1)q(7)+p(0)q(9)=
=5×1+3×2+2×3+1×5+1×8=30

Restricted partition function

More generally, it is possible to consider partitions restricted to only elements of a subset A of the natural numbers (for example a restriction on the maximum value of the parts), or with a restriction on the number of parts or the maximum difference between parts. Each particular restriction gives rise to an associated partition function with specific properties. Some common examples are given below.

Euler and Glaisher's theorem

Two important examples are the partitions restricted to only odd integer parts or only even integer parts, with the corresponding partition functions often denoted po(n) and pe(n).

A theorem from Euler shows that the number of strict partitions is equal to the number of partitions with only odd parts: for all n, q(n)=po(n). This is generalized as Glaisher's theorem, which states that the number of partitions with no more than d-1 repetitions of any part is equal to the number of partitions with no part divisible by d.

Gaussian binomial coefficient

If we denote p(N,M,n) the number of partitions of n in at most M parts, with each part smaller or equal to N, then the generating function of p(N,M,n) is the following Gaussian binomial coefficient:

n=0p(N,M,n)qn=(N+MM)q=(1qN+M)(1qN+M1)(1qN+1)(1q)(1q2)(1qM)

Asymptotics

Some general results on the asymptotic properties of restricted partition functions are known. If pA(n) is the partition function of partitions restricted to only elements of a subset A of the natural numbers, then:

If A possesses positive natural density α then logpA(n)Cαn, with C=π23

and conversely if this asymptotic property holds for pA(n) then A has natural density α.Template:Sfn This result was stated, with a sketch of proof, by Erdős in 1942.[4]Template:Sfn

If A is a finite set, this analysis does not apply (the density of a finite set is zero). If A has k elements whose greatest common divisor is 1, thenTemplate:Sfn

pA(n)=(aAa1)nk1(k1)!+O(nk2).

References

Template:Notelist

  1. Script error: No such module "Citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".

Cite error: <ref> tag with name "aa" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "ab" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "andrews" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "ao" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "as" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "bo" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "e" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "ew" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "fredrikj" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "hw" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "hr" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "johansson" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "nathanson" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "oeis" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "o2k" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "ono" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "rad" defined in <references> is not used in prior text.
Cite error: <ref> tag with name "wilf" defined in <references> is not used in prior text.

External links