Σn=0aₙxⁿ
Analysis · Concept hubDeep story

Generating Functions

1748 CE18th-century Switzerland (Euler)

Concept

Encoding entire sequences as functions — a unifying tool for combinatorics.

Understand it in one breath

"Encode a sequence as the coefficients of a function and apply analytic tools." The Fibonacci numbers, Catalan numbers, and integer partitions all yield closed-form generating functions that are far easier to manipulate than the sequences themselves. Pioneered by De Moivre in the 18th century and systematized by Laplace in 1812 (Théorie analytique des probabilités), the technique became a core tool of modern combinatorics and probability.

At a glance

Sequence

Generating function (closed form)

What it reveals

1, 1, 1, 1, …

1 / (1 − x)

Geometric series

1, 2, 3, 4, …

1 / (1 − x)²

Differentiate once

Fibonacci 0, 1, 1, 2, 3, 5, 8…

x / (1 − x − x²)

Binet’s formula from coefficient extraction

Catalan 1, 1, 2, 5, 14, 42…

(1 − √(1 − 4x)) / 2x

Counts trees and balanced parentheses

Bernoulli numbers

x / (eˣ − 1)

Connected to ζ(2k)

Moment-generating function of a probability distribution

M(t) = E[eᵗˣ]

Every moment of the distribution in one function

The trick of turning a sequence into a function converts relations among sequences into algebra among functions — the same spirit as the Laplace transform.

Key formula

G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n

Key moments

1748 CE

Euler — a generating function for partitions

Euler encoded the number of ways to write an integer as a sum through an infinite product, joining combinatorics, number theory, and analysis.

1837 CE

Dirichlet — Dirichlet series

Series of the form ∑aₙ/nˢ became a powerful bridge between arithmetic sequences and analysis, later central to the study of the zeta function.

1990 CE

generatingfunctionology

Herbert Wilf’s book presented generating functions as a unified language and practical toolkit for enumerative combinatorics.

Modern applications

Asymptotic algorithm analysis, partition functions in number theory, graph counting, and moment-generating functions in probability.

Beyond MathVoyage

Loading…