WOLFRAM|DEMONSTRATIONS PROJECT

Euler's Generating Function for the Partition Numbers

​
n
3
(1+x+
2
x
+
3
x
)(1+
2
x
+
4
x
+
6
x
)(1+
3
x
+
6
x
+
9
x
)
=
1+x+2
2
x
+3
3
x
+ … +
18
x
This Demonstration shows the partition numbers
p
n
up to
n
as the coefficients of
n
x
in the polynomial on the right.
The partition numbers
p
n
are 1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 56, 77, 101, 135, 176, 231, 297, 385, 490, 627, …. They count the number of ways of splitting an integer
n
into a sum of positive integers, without regard to order. For instance,
p
4
, the number of ways to partition 4, is 5 because there are 5 possible sums that add to 4: 4, 1+3, 2+2, 1+1+2, 1+1+1+1. By convention,
p
0
=1
.
The left-hand side of the identity shows the product of geometric series
1
1-r
=1+r+
2
r
+
3
r
+…
with common ratios
r=x
,
2
x
,
3
x
,…,
n
x
, each truncated to
n
terms. The right-hand side multiplies them out and collects terms.
As an example, let
n=4
; the term
5
4
x
on the right is the sum of the five products
1×1×1×
4
x
,
1
x
×1×
3
x
×1
,
1×
4
x
×1×1
,
2
x
×
2
x
×1×1
,
4
x
×1×1×1
, where the factors in each product are in the order of the series they come from. These products correspond to the partitions 4, 1+3, 2+2, 1+1+2, 1+1+1+1.
In general, an uncollected term in the expansion of the left side is of the form
m
1
x
2
m
2
x
3
m
3
x
K
m
K
…x
. The factor
k
m
k
x
comes from the
th
m
k
term of the
th
k
truncated series
1+
k
x
+
2k
x
+…+
nk
x
and contributes
k+k+…+k
(
m
k
times) in the corresponding partition. Collecting terms amounts to counting the number of ways
n=
m
1
+2
m
2
+3
m
3
+…+K
m
K
can be partitioned.
The generating function for
p
n
is thus
∞
∏
k=1
1
1-
k
x
=
∞
∑
n=1
p
n
n
x
.