Catalan Numbers and Ballot Problems
Catalan numbers count an astonishing variety of combinatorial objects (balanced parentheses, lattice paths that stay weakly above a diagonal, triangulations of polygons, binary trees). They arise as the solution to ballot problems, which ask for the probability that one candidate stays ahead throughout the counting of votes. The sequence begins . Studied by Euler (1750s), Catalan (1838), and named by Riordan; the ballot connection is due to Bertrand and Désiré André (1887).
Every Catalan structure is a sequence of "opening" and "closing" steps in which, reading left to right, the number of closings never exceeds the number of openings. Counting the bad sequences that violate this — and showing they biject with completely unconstrained sequences via a reflection — yields both the Catalan formula and the ballot theorem in one stroke. The reflection principle is the unifying engine of the entire topic.
Formal Statement
The -th Catalan number, for , is
Derivation hint: Start from the lattice-path count and subtract bad paths; the factor emerges from . An equivalent product form and an explicit difference form are
Derivation hint: Telescope the ratio ; the difference form comes directly from the reflection count of bad paths. Here is a non-negative integer; is the central binomial coefficient counting all monotone lattice paths from to .
A Dyck path of semilength is a lattice path from to using up steps and down steps that never goes below the -axis. Writing and gives a string of balanced parenthesis pairs. The number of Dyck paths of semilength is .
The Catalan numbers satisfy, with ,
Derivation hint: A nonempty Dyck path decomposes uniquely as , where sits inside the first matched pair. Equivalently, the generating function satisfies
Derivation hint: The convolution [3] is the coefficient form of ; solve the quadratic, choosing the root analytic at .
In an election where candidate A receives votes and candidate B receives votes with , the number of orderings of the ballots in which A is strictly ahead throughout the count is
so the probability of A leading throughout a uniformly random count is
Derivation hint: The total number of orderings is ; subtract the "tied at some point" orderings counted by the reflection principle.
Why It Holds / Derivation
We count vote orderings as lattice paths. Encode an A-vote as and a B-vote as ; the partial sum after votes is the running margin. A path runs from to .
Step 1. The total number of such paths (orderings) is , choosing positions for the A-votes.
Step 2. "A strictly ahead throughout" means the path's partial sum is for all . Since the first vote must give A the lead, it is an A-vote, reaching . We must count paths from to that never touch the line .
Step 3. Count the bad paths from to the endpoint that do touch . By the reflection principle, reflect the initial segment up to the first contact with across the -axis. This bijects bad paths from with all paths from to .
Step 4. A path from to has horizontal length and net rise . The number of up steps and down steps satisfy and , giving , . Thus there are bad paths.
Step 5. Paths from to the endpoint number . Subtracting the bad ones:
Derivation hint: This is the "good minus reflected bad" count; simplify the factorials next.
Step 6. Combine using and :
Derivation hint: Factor out and combine the numerators . Dividing by the total gives .
∎Set and in the weak-lead variant (A always B). A Dyck path of semilength corresponds to a vote sequence where A never trails. By the standard "tie-allowed" ballot count, the number of paths from to staying is
Derivation hint: , so the difference equals . The bad paths (those dipping below ) reflect across into unconstrained paths from to , of which there are .
∎Belgian-French mathematician, a student of Joseph Liouville, who worked extensively on continued fractions, number theory, and combinatorics. In 1838 he investigated the number of ways to dissect a convex polygon into triangles by non-crossing diagonals, deriving the numbers now bearing his name. He also posed Catalan's conjecture (that and are the only consecutive perfect powers), proved only in 2002 by Mihăilescu. The naming "Catalan numbers" was popularized by John Riordan in the 20th century, though Euler had found the polygon-triangulation count nearly a century earlier and the Mongolian mathematician Minggatu had studied related series even before.
Building Intuition
Picture stacking and unstacking plates. An up step puts a plate on the stack; a down step removes one. A valid sequence (a Dyck path) never tries to remove a plate from an empty stack. The Catalan number counts how many ways you can do pushes and pops without ever popping an empty stack — exactly the legal sequences of stack operations, exactly the balanced parenthesizations, exactly the binary tree shapes. The ballot problem is the probabilistic face of the same picture: if A leads with to , the "fraction of the lead" is precisely the chance the lead held the entire time. Notice the elegance: the answer depends only on the final margin relative to the total, not on the individual sizes. A landslide -to- gives probability ; a squeaker -to- gives — a mere chance A never once let B catch up.
Worked Examples
Given. Count the ways to divide a convex pentagon (5 vertices) into triangles using non-crossing diagonals.
Steps. A convex -gon triangulation count equals . A pentagon has , so .
Derivation hint: Plug into [1]; . Each triangulation uses diagonals and produces triangles. Listing them: fix the base edge and choose which vertex forms a triangle with it — the recurrence confirms it.
Answer. (dimensionless count).
Given. Candidate A gets votes, candidate B gets votes; ballots are counted in uniformly random order. Find the number of count orderings in which A is strictly ahead at every step, and the probability.
Steps. Total orderings: . Apply [5]:
Derivation hint: ; multiply by . The probability is
Derivation hint: This is [6] directly; equals .
Answer. .
Common Misconceptions
"Strictly ahead" and "never behind (ties allowed)" give different counts. The strict ballot theorem yields , while the weak version (A never trails, ties permitted) yields the larger count . Catalan numbers correspond to the weak version with adjusted to in the path setup. Confusing the two off-by-one variants is the single most common error in this topic.
The formula is NOT the probability that A wins. A wins with certainty here (we are told ). The quantity is the conditional probability that A led the entire count given the final tallies. Suppose someone reasons: "A got 60% of votes, so A should lead the count 60% of the time." With , the true probability of leading throughout is , not . The intuition that "vote share equals lead-probability" is flatly wrong.
Connections
Catalan numbers tie together a remarkable web of structures. They equal the number of Binary Trees with internal nodes, the number of non-crossing partitions of , and the dimension of certain invariant spaces in Representation Theory. The defining quadratic generating function [4] links them to Generating Functions and the Lagrange inversion formula. The reflection-principle proof is the discrete analogue of the Reflection Principle for Brownian Motion, where the ballot theorem becomes the arcsine law and the distribution of the maximum of a random walk. The recurrence [3] is a convolution, foreshadowing the role of Catalan numbers in Free Probability as the moments of the semicircle distribution.
Real-World Applications
Historical Development
Subtleties & Limits
While the closed form and recurrence are completely understood, Catalan-related enumerations remain a fertile research frontier. Open and active areas include: (1) the cyclic sieving phenomenon — explaining why and its -analogue track symmetries of Catalan objects under rotation, with many conjectured instances still unproven; (2) classifying which generalizations (Fuss–Catalan numbers , rational Catalan numbers for coprime ) admit clean bijective proofs; (3) understanding -Catalan numbers from the theory of diagonal harmonics, where positivity conjectures of Garsia–Haiman drove decades of work in algebraic combinatorics. The interplay between the analytic, algebraic, and bijective faces of these numbers continues to generate problems despite the elementary appearance of [1].
See Also
Lattice Paths · Generating Functions · Binary Trees · Reflection Principle · Random Walks · Fuss–Catalan Numbers · Associahedron · Free Probability