1. Exponential Generating Functions
The Exponential Formula
Topics in Algebraic Combinatorics
Oliver Zhang • Proof School • 9th Grade, Block 1, 2016
The Exponential Formula
2. Exponential Generating Functions
What is an EGF?
An EGF or Exponential Generating Function
is a generating function over a factorial.
The Exponential Formula
3. Exponential Generating Functions
What is an EGF?
An EGF or Exponential Generating Function
is a generating function over a factorial.
For Example:
If A
egf
←→ {an}∞
0 then
The Exponential Formula
4. Exponential Generating Functions
What is an EGF?
An EGF or Exponential Generating Function
is a generating function over a factorial.
For Example:
If A
egf
←→ {an}∞
0 then
A =
∞
n=0
an
n!
xn
The Exponential Formula
6. Exponential Generating Functions
Multiplying EGFs
Given two EGFs A and B, what EGF would
A · B be?
In other words, if
∞
n=0
an
n! xn
∞
n=0
bn
n! xn
=
∞
n=0
cn
n! xn
then what would cn be in terms of an and bn?
The Exponential Formula
7. Exponential Generating Functions
Multiplying EGFs, cont.
Let’s take an example. To calculate c4
4! , we
simply take the sum
a0b4
0!4! + a1b3
1!3! + a2b2
2!2! + a3b1
3!1! + a4b0
4!0!
The Exponential Formula
8. Exponential Generating Functions
Multiplying EGFs, cont.
Let’s take an example. To calculate c4
4! , we
simply take the sum
a0b4
0!4! + a1b3
1!3! + a2b2
2!2! + a3b1
3!1! + a4b0
4!0!
Which is equal to
a0b4
4! +
4!
1!3!a1b3
4! +
4!
2!2!a2b2
4! +
4!
3!1!a3b1
4! + a4b0
4!
The Exponential Formula
10. Exponential Generating Functions
Multiplying EGFs, cont.
Therefore, c4 is equal to the sum:
4
0 a0b4 + 4
1 a1b3 + 4
2 a2b2 + 4
3 a3b1 + 4
4 a4b0
Generally, cn will be equal to
n
m=0
n
m ambn−m
The Exponential Formula
11. Exponential Generating Functions
The Exponential Function
Just as
1
1−x ←→ 1 + x + x2
+ ...
What f(x)
egf
←→ 1 + x
1! + x2
2! + ...?
The Exponential Formula
15. Exponential Generating Functions
Graph Theory
A few definitions:
A graph: a set of vertices and relations
between the vertices.
A connected component of a graph:
The Exponential Formula
16. Exponential Generating Functions
Graph Theory
A few definitions:
A graph: a set of vertices and relations
between the vertices.
A connected component of a graph: a set of
vertices within a graph such that any two
vertices are connected to each other by paths,
and which is connected to no additional vertices
in the supergraph.
The Exponential Formula
17. Exponential Generating Functions
Graph Theory
A few definitions:
A graph: a set of vertices and relations
between the vertices.
A connected component of a graph: a set of
vertices within a graph such that any two
vertices are connected to each other by paths,
and which is connected to no additional vertices
in the supergraph.
A picture:
The Exponential Formula
18. Exponential Generating Functions
Graph Theory
A few definitions:
A graph: a set of vertices and relations
between the vertices.
A connected component of a graph: a set of
vertices within a graph such that any two
vertices are connected to each other by paths,
and which is connected to no additional vertices
in the supergraph.
A picture: a connected graph such that the set
of vertices is the set {1, 2, ..., n}, where n is the
number of vertices of the graph.
The Exponential Formula
19. Exponential Generating Functions
Graph Theory
Note: These two pictures are considered
distinct because the labeling of their vertices
are different.
The Exponential Formula
20. Exponential Generating Functions
Million Dollar Question
Our Question is:
How many ways are there to build a graph with
n vertices and k connected components?
The Exponential Formula
21. Exponential Generating Functions
Million Dollar Question
Our Question is:
How many ways are there to build a graph with
n vertices and k connected components?
The Exponential Formula
25. Exponential Generating Functions
Poker Playing: The Basic Unit
A card C(S, p):
A non-empty ’label set’ S
A ’picture’ p
|S| = number of vertices in p.
The Exponential Formula
26. Exponential Generating Functions
Poker Playing: The Basic Unit
A card C(S, p):
A non-empty ’label set’ S
A ’picture’ p
|S| = number of vertices in p.
Each card represents a connected component
of a graph.
The Exponential Formula
31. Exponential Generating Functions
Card Example
A card is called standard if the label set S is
the set {1, 2, ..., n} for some n.
The Exponential Formula
33. Exponential Generating Functions
Hands
If a connected component can be represented
by a card, what would a graph be?
A hand H is a set of cards whose label sets
form a partition of {1, 2, ..., n} for some n.
The Exponential Formula
34. Exponential Generating Functions
Hands
If a connected component can be represented
by a card, what would a graph be?
A hand H is a set of cards whose label sets
form a partition of {1, 2, ..., n} for some n.
A hand is usually created with cards from a
specified Exponential Family,
The Exponential Formula
35. Exponential Generating Functions
Hands
If a connected component can be represented
by a card, what would a graph be?
A hand H is a set of cards whose label sets
form a partition of {1, 2, ..., n} for some n.
A hand is usually created with cards from a
specified Exponential Family, we’ll get to
that in a bit
The Exponential Formula
39. Exponential Generating Functions
Hand Example
The weight of a card is the size of the label
set. The weight of a hand is the sum of the
weight of the cards.
The Exponential Formula
43. Exponential Generating Functions
Notation!
We denote h(n, k) to be the number of
hands with weight n and k cards.
What would h(3,2) be? 3
What would h(2,3) be?
The Exponential Formula
44. Exponential Generating Functions
Notation!
We denote h(n, k) to be the number of
hands with weight n and k cards.
What would h(3,2) be? 3
What would h(2,3) be? 0
The Exponential Formula
45. Exponential Generating Functions
Notation!
We denote h(n, k) to be the number of
hands with weight n and k cards.
What would h(3,2) be? 3
What would h(2,3) be? 0
The Exponential Formula
46. Exponential Generating Functions
Million Dollar Question Revisited
Our Question:
How many ways are there to build a graph with
n vertices and k connected components?
The Exponential Formula
47. Exponential Generating Functions
Million Dollar Question Revisited
Our Question:
How many ways are there to build a graph with
n vertices and k connected components?
Can be rephrased to:
How many hands are there with weight n and k
cards?
The Exponential Formula
48. Exponential Generating Functions
Million Dollar Question Revisited
Our Question:
How many ways are there to build a graph with
n vertices and k connected components?
Can be rephrased to:
How many hands are there with weight n and k
cards?
or what is h(n, k)?
The Exponential Formula
49. Exponential Generating Functions
Decks
A deck Dn is a finite set of standard cards
whose weights are all n and whose pictures
are all different.
The Exponential Formula
50. Exponential Generating Functions
Decks
A deck Dn is a finite set of standard cards
whose weights are all n and whose pictures
are all different.
The Exponential Formula
52. Exponential Generating Functions
Exponential Families
An exponential family [EF] F is defined to
be a collection of decks with weights 1, 2, ...
In an exponential family, let dn be defined as
the number of cards in deck Dn
The Exponential Formula
56. Exponential Generating Functions
Exponential Families Example
If Dn was the deck with all cards of weight
n, then
What would d1 be? 1
What would d2 be? 1
What would d3 be?
The Exponential Formula
57. Exponential Generating Functions
Exponential Families Example
If Dn was the deck with all cards of weight
n, then
What would d1 be? 1
What would d2 be? 1
What would d3 be? 4
What about d4?
The Exponential Formula
58. Exponential Generating Functions
Exponential Families Example
If Dn was the deck with all cards of weight
n, then
What would d1 be? 1
What would d2 be? 1
What would d3 be? 4
What about d4? 38
The Exponential Formula
60. Exponential Generating Functions
Generating Functions pt. 1
We can finally start building generating
functions! Yay!
We introduce the 2-variable Hand
Enumerator
H(x, y) =
n,k≥0
h(n, k)
xn
n!
yk
The Exponential Formula
61. Exponential Generating Functions
Generating Functions pt. 1
We can finally start building generating
functions! Yay!
We introduce the 2-variable Hand
Enumerator
H(x, y) =
n,k≥0
h(n, k)
xn
n!
yk
This generating function is a half-blood.
The Exponential Formula
64. Exponential Generating Functions
Merging Families
Given two EFs F and F with no shared
pictures, we can merge them together to
create a new exponential family F such that
The Exponential Formula
65. Exponential Generating Functions
Merging Families
Given two EFs F and F with no shared
pictures, we can merge them together to
create a new exponential family F such that
For any Dn and Dn in F and F
respectively, Dn in F is the union of the card
sets of Dn and Dn.
The Exponential Formula
66. Exponential Generating Functions
A Quick Lemma
Lemma (Label Counting)
Let F, F , F be three exponential families
and let H(x, y), H (x, y), H (x, y) be their
respective 2-variable hand enumerators. If
The Exponential Formula
67. Exponential Generating Functions
A Quick Lemma
Lemma (Label Counting)
Let F, F , F be three exponential families
and let H(x, y), H (x, y), H (x, y) be their
respective 2-variable hand enumerators. If
F = F ⊗ F
The Exponential Formula
68. Exponential Generating Functions
A Quick Lemma
Lemma (Label Counting)
Let F, F , F be three exponential families
and let H(x, y), H (x, y), H (x, y) be their
respective 2-variable hand enumerators. If
F = F ⊗ F
Then
H(x,y) = H’(x,y)H”(x,y)
The Exponential Formula
69. Exponential Generating Functions
The Initial Case
Given a fixed r, let all decks besides Dr be
empty. Additionally, let Dr only contain one
card with r vertices.
The Exponential Formula
70. Exponential Generating Functions
The Initial Case
Given a fixed r, let all decks besides Dr be
empty. Additionally, let Dr only contain one
card with r vertices.
h(n, k) for this deck is zero unless n can be
represented by kr for some integer k.
But then how many hands are there?
The Exponential Formula
71. Exponential Generating Functions
The Initial Case
The first card labels can be picked in n
r
ways, the second card in n−r
r ways, ... the
last card can be picked in n−(k−1)r
r = 1 way.
The Exponential Formula
72. Exponential Generating Functions
The Initial Case
The first card labels can be picked in n
r
ways, the second card in n−r
r ways, ... the
last card can be picked in n−(k−1)r
r = 1 way.
Additionally, the order of the k cards doesn’t
matter so we divide out another k!.
The Exponential Formula
73. Exponential Generating Functions
The Initial Case
The first card labels can be picked in n
r
ways, the second card in n−r
r ways, ... the
last card can be picked in n−(k−1)r
r = 1 way.
Additionally, the order of the k cards doesn’t
matter so we divide out another k!.
h(kr, k) = 1
k!
n!
r!k
The Exponential Formula
75. Exponential Generating Functions
The Initial Case
If h(kr, k) = 1
k!
n!
r!k then the hand enumerator
of this family is
H(x, y) =
n,k
h(n, k)xn
yk
/n!
The Exponential Formula
76. Exponential Generating Functions
The Initial Case
If h(kr, k) = 1
k!
n!
r!k then the hand enumerator
of this family is
H(x, y) =
n,k
h(n, k)xn
yk
/n!
=
k
xkryk
k!r!k
The Exponential Formula
77. Exponential Generating Functions
The Initial Case
If h(kr, k) = 1
k!
n!
r!k then the hand enumerator
of this family is
H(x, y) =
n,k
h(n, k)xn
yk
/n!
=
k
xkryk
k!r!k
=
k
xry
r!
k
/k!
The Exponential Formula
78. Exponential Generating Functions
The Initial Case
If h(kr, k) = 1
k!
n!
r!k then the hand enumerator
of this family is
H(x, y) =
n,k
h(n, k)xn
yk
/n!
=
k
xkryk
k!r!k
=
k
xry
r!
k
/k!
= exp{yxr
r! }
The Exponential Formula
81. Exponential Generating Functions
Induction
Given an exponential family F and positive
integer r such that every deck besides Dr is
empty, we claim its hand enumerator is:
H(x, y) = exp{ydrxr
r! }
The Exponential Formula
83. Exponential Generating Functions
Induction
Suppose the claim is true for
dr = 1, 2, ...m − 1 and let F have m cards
in its rth deck. Then F is the result of
merging a family with m − 1 cards in the rth
deck and a family with 1 card in that deck.
The Exponential Formula
84. Exponential Generating Functions
Induction
Suppose the claim is true for
dr = 1, 2, ...m − 1 and let F have m cards
in its rth deck. Then F is the result of
merging a family with m − 1 cards in the rth
deck and a family with 1 card in that deck.
exp{y(m − 1)xr
/r!}
The Exponential Formula
85. Exponential Generating Functions
Induction
Suppose the claim is true for
dr = 1, 2, ...m − 1 and let F have m cards
in its rth deck. Then F is the result of
merging a family with m − 1 cards in the rth
deck and a family with 1 card in that deck.
exp{y(m − 1)xr
/r!}exp{yxr
/r!}
The Exponential Formula
86. Exponential Generating Functions
Induction
Suppose the claim is true for
dr = 1, 2, ...m − 1 and let F have m cards
in its rth deck. Then F is the result of
merging a family with m − 1 cards in the rth
deck and a family with 1 card in that deck.
exp{y(m − 1)xr
/r!}exp{yxr
/r!}= exp{ymxr
/r!}
The Exponential Formula
87. Exponential Generating Functions
Multi-deck Induction
Theorem (The Exponential Formula)
Let F be an exponential family whose deck and
hand enumerators are D(x) and H(x, y).
Then
H(x, y) = eyD(x)
and
h(n, k) = xn
n!
D(x)k
k!
The Exponential Formula
89. Exponential Generating Functions
Multi-deck Induction
By merging a sequence of decks D1, D2, ...
we can obtain any exponential family F.
= exp yd1x1
1! exp yd2x2
2! ...
The Exponential Formula
90. Exponential Generating Functions
Multi-deck Induction
By merging a sequence of decks D1, D2, ...
we can obtain any exponential family F.
= exp yd1x1
1! exp yd2x2
2! ...
= exp yd1x1
1! + yd2x2
2! + ...
The Exponential Formula
91. Exponential Generating Functions
Multi-deck Induction
By merging a sequence of decks D1, D2, ...
we can obtain any exponential family F.
= exp yd1x1
1! exp yd2x2
2! ...
= exp yd1x1
1! + yd2x2
2! + ...
= eyD(x)
The Exponential Formula
92. Exponential Generating Functions
Solving the question
The number of ways to build a graph with n
vertices and k connected components?
is just
The Exponential Formula
93. Exponential Generating Functions
Solving the question
The number of ways to build a graph with n
vertices and k connected components?
is just
h(n, k) = H(x, y) xn
n! yk
The Exponential Formula
94. Exponential Generating Functions
Solving the question
The number of ways to build a graph with n
vertices and k connected components?
is just
h(n, k) = H(x, y) xn
n! yk
= eyD(x) xn
n! yk
The Exponential Formula
95. Exponential Generating Functions
Solving the question
The number of ways to build a graph with n
vertices and k connected components?
is just
h(n, k) = H(x, y) xn
n! yk
= eyD(x) xn
n! yk
= xn
n! yk yk
D(x)k
k!
∞
0
The Exponential Formula
96. Exponential Generating Functions
Solving the question
The number of ways to build a graph with n
vertices and k connected components?
is just
h(n, k) = H(x, y) xn
n! yk
= eyD(x) xn
n! yk
= xn
n! yk yk
D(x)k
k!
∞
0
= xn
n!
D(x)k
k!
∞
0
The Exponential Formula
97. Exponential Generating Functions
Thanks For Watching!
Bibliography:
Generatingfunctionology by Herbert S. Wilf
https://www.math.upenn.edu/∼wilf/gfologyLinked2.pdf
The Exponential Formula