Exponential Generating Functions
Exponential generating functions (EGFs) encode sequences using factorial denominators, which makes them naturally suited for counting labeled structures like permutations, arrangements, and set partitions. Where ordinary generating functions (OGFs) pair coefficients with plain powers of , EGFs divide each coefficient by , and that single change unlocks a different set of algebraic tools.
This section covers the definition and key properties of EGFs, the exponential formula for set partitions, Bell and Stirling numbers, and connections to moment and probability generating functions.
Exponential Generating Functions
Understanding Exponential Generating Functions
For a sequence , the exponential generating function is defined as:
Compare this with the ordinary generating function . The only structural difference is the factor, but it changes what algebraic operations mean combinatorially.
Why the factorial denominator matters. When you multiply two OGFs, the coefficients combine via convolution, which corresponds to choosing how many objects come from each structure (selections). When you multiply two EGFs, the coefficients combine via exponential convolution, which corresponds to choosing how to label objects across two structures. Concretely, if and are EGFs for sequences and , then the product is the EGF for:
That binomial coefficient is exactly what you need when you're splitting a labeled set of size into a part of size and a part of size .
Common EGFs to know:
- is the EGF for the constant sequence (there's exactly 1 way to arrange labeled items into a single "all-in" structure).
- is the EGF for for (non-empty sets).
- is the EGF for (the number of permutations of elements).
EGFs also tend to converge more often than OGFs because the in the denominator tames rapid growth in the sequence.
Factorial Powers and Their Role
The falling factorial (sometimes called the factorial power) is:
This is the product of consecutive decreasing integers starting from . It shows up constantly in combinatorics because it directly counts the number of ways to choose and arrange items from items (i.e., permutations): .
A useful identity ties falling factorials to binomial coefficients:
This means choosing items from (the binomial coefficient) is just the falling factorial divided by , which removes the ordering.
Falling factorials play a role in EGFs because many sequences that arise from labeled counting problems can be expressed neatly using them. They also appear in finite difference calculus, where they serve the same role that ordinary powers serve in standard calculus.

Exponential Formula and Applications
The exponential formula is one of the most powerful results connecting EGFs to set partitions. Here's the setup:
Suppose you have a notion of a "connected" or "block" structure on a non-empty labeled set, and is the EGF counting the number of such structures by size. Then the EGF for the number of ways to partition a labeled set into any number of these blocks is:
Why does this work? Expanding the exponential gives:
The term counts ways to split a labeled set into exactly blocks. The in the denominator accounts for the fact that the blocks themselves are unordered (a partition doesn't care which block you list first). Summing over all gives the total count across all possible numbers of blocks.
Example: If each block is simply a non-empty set (one structure per size), then , and the number of set partitions is counted by . That's exactly the EGF for Bell numbers, as you'll see below.
Combinatorial Numbers
Bell Numbers and Set Partitions
The Bell number counts the total number of ways to partition a set of labeled elements into non-empty, non-overlapping subsets. For example, the set can be partitioned in 5 ways:
So .
The first several Bell numbers (starting at ): 1, 1, 2, 5, 15, 52, 203, 877.
EGF for Bell numbers:
This follows directly from the exponential formula: each block is a non-empty set, and is the EGF where every non-empty set has exactly one structure.
Recursive formula (Bell's recurrence):
The idea: to build a partition of , decide which of the elements share a block with element , then partition the remaining elements freely. That gives , and re-indexing yields the formula above.
Bell numbers appear in clustering algorithms, information theory, and the analysis of equivalence relations.

Stirling Numbers and Their Types
Stirling numbers refine the counting that Bell numbers do in aggregate.
Stirling numbers of the second kind, , count the number of ways to partition a set of labeled elements into exactly non-empty subsets. Since Bell numbers count partitions into any number of subsets:
The EGF (with fixed, summing over ) is:
Again, this is the exponential formula at work: counts ordered sequences of non-empty blocks, and dividing by makes the blocks unordered.
Stirling numbers of the first kind, (or sometimes written with square brackets ), count the number of permutations of elements that consist of exactly disjoint cycles. These are sometimes called signless Stirling numbers of the first kind (the signed version introduces a factor of ).
Quick comparison:
- (second kind) = partitions of a set into subsets
- or (first kind, unsigned) = permutations of elements with cycles
Both types of Stirling numbers satisfy useful recurrences and appear in problems involving recurrence relations, polynomial basis conversion (between ordinary powers and falling factorials), and algorithm analysis.
Probability and Statistics Applications
Moment Generating Functions
The moment generating function (MGF) of a random variable is:
If you expand as a power series, you get:
This is exactly an EGF for the sequence of moments . That's the direct connection to this unit: the MGF is an exponential generating function whose coefficients are the moments of the distribution.
To extract the -th moment, differentiate times and evaluate at :
Key properties of MGFs:
- If and are independent, then . This makes working with sums of independent random variables straightforward.
- The MGF (when it exists in a neighborhood of 0) uniquely determines the distribution. Two distributions with the same MGF are the same distribution.
- The variance can be found as .
Probability Generating Functions and Their Uses
For a discrete random variable taking non-negative integer values, the probability generating function (PGF) is:
Notice this is actually an ordinary generating function for the probability sequence . To recover individual probabilities:
Useful properties:
- (probabilities sum to 1).
- .
- .
- For independent and : .
PGFs are widely used in queuing theory, branching processes, and other stochastic models where you need to track distributions of counts. Their connection to EGFs comes through the relationship between PGFs and MGFs: setting in the PGF gives the MGF, which bridges the ordinary and exponential generating function perspectives.