Ordinary and exponential generating functions turn sequences into formal power series so that counting problems can be solved with algebra. This cheat sheet compares when to use an ordinary generating function and when to use an exponential generating function. It is useful for recurrence relations, combinatorial classes, coefficient extraction, and enumerating objects with or without labels.
An ordinary generating function stores a sequence as , while an exponential generating function stores it as . Products usually model splitting a size into parts, but the binomial factors appear naturally in exponential generating functions. The main skill is choosing the correct model, manipulating the series, and extracting the coefficient with or .
Key Facts
- The ordinary generating function for a sequence is .
- The exponential generating function for a sequence is .
- Coefficient extraction for an ordinary generating function is .
- Coefficient extraction for an exponential generating function is .
- If and , then .
- If and , then .
- Use ordinary generating functions most often for unlabeled objects, integer partitions, tilings, and recurrences indexed only by size.
- Use exponential generating functions most often for labeled objects, permutations, set constructions, and structures where choosing labels contributes factors such as .
Vocabulary
- Ordinary generating function
- An ordinary generating function represents a sequence by the formal power series .
- Exponential generating function
- An exponential generating function represents a sequence by the formal power series .
- Coefficient extraction
- Coefficient extraction uses notation such as to mean the coefficient of in the series .
- Cauchy product
- The Cauchy product is the multiplication rule for ordinary generating functions.
- Labeled structure
- A labeled structure is a combinatorial object built on distinguishable labels, often counted naturally by exponential generating functions.
- Formal power series
- A formal power series is an algebraic series such as manipulated by coefficients rather than by analytic convergence.
Common Mistakes to Avoid
- Using an ordinary generating function for a labeled product is wrong when the labels must be distributed among components. Exponential generating functions include the needed factor automatically.
- Forgetting the factor when extracting from an exponential generating function gives coefficients that are too small. If , then .
- Multiplying exponential generating functions as if they used the ordinary Cauchy product loses the label-choice factor. The correct coefficient rule is .
- Treating convergence as necessary in every generating function problem can distract from the main argument. In enumerative combinatorics, and are often formal power series.
- Confusing and leads to the wrong constant sequence model. The series is an ordinary generating function for , while is the exponential generating function for .
Practice Questions
- 1 For the sequence , find the ordinary generating function and the exponential generating function .
- 2 If , compute .
- 3 If , compute where .
- 4 A counting problem builds labeled objects by splitting an -element label set into two parts and placing one structure on each part. Explain why an exponential generating function product is usually the natural choice.
Understanding Ordinary vs Exponential Generating Functions Reference
The product rule comes from a bookkeeping choice. Suppose an object is built from a left part and a right part. If its total size is n, the left part may have size zero through n.
For ordinary generating functions, each split contributes one count from the left sequence multiplied by one count from the right sequence. Adding over all possible splits gives the familiar convolution. This is useful for coin change and tiling problems.
A tile arrangement can begin with one allowed tile, leaving a smaller board. That direct size split often turns a recurrence into a product or a simple equation for a generating function.
Labels change the bookkeeping because a structure of size n has n distinct names available. If one component receives k labels, there are n choose k ways to decide which labels it gets. The remaining labels go to the other component.
This choice explains the extra binomial factor in an exponential generating function product. Think about arranging students into two named groups, then building a different structure inside each group. The group sizes alone are not enough.
The identities of the students matter. Factorials in exponential generating functions package all those label choices so that multiplication still works cleanly.
Composition needs even more care. In an ordinary setting, composition often represents an ordered sequence of components. For example, a path can be assembled from steps, where each step has a size.
In an exponential setting, composition usually represents replacing every element of an outer labeled structure by a nonempty labeled inner structure. The word nonempty matters. If empty inner structures were allowed, a fixed set of labels could produce infinitely many invisible replacements.
Students should first state what a single component is, what counts as its size, and whether order or labels matter. This prevents using a correct algebra rule for the wrong combinatorial model.
Differentiation is another practical tool because it shifts sequence indices. A recurrence that relates the count at size n to the count at size n minus one can often become a differential equation for the generating function. Initial values are essential, since they determine the missing constant term after solving.
When extracting an answer, check the first few sizes by direct counting. This catches common errors such as forgetting an empty object, treating identical parts as distinct, or losing a factorial. These ideas appear beyond pure counting.
They help analyze algorithms built from smaller subproblems, count seating arrangements, describe network components, and study random permutations. The reliable habit is to build a small table of counts before trusting a series manipulation.