Count the ways to arrange two pairs of balanced parentheses: (()) and ()() — that's 2. With three pairs the answer is 5: ((())), (()()), (())(), ()(()), ()()(). With four pairs: 14.
The sequence 1, 1, 2, 5, 14, 42, 132, 429… is called the Catalan numbers, named after the Belgian mathematician Eugène Charles Catalan, who studied them in the 1830s. (The sequence was actually known earlier to Chinese mathematician Mingantu around 1730, and to Leonhard Euler.)
What makes the Catalan numbers remarkable is not just their growth — they grow roughly as — but their uncanny habit of showing up in completely different counting problems that all turn out to share the same answer:
- Balanced bracket strings of length 2n
- Full binary trees with n+1 leaves
- Triangulations of a convex polygon with n+2 vertices
- Paths below the diagonal in an n×n grid
- Ways to multiply a chain of n+1 numbers (parenthesizing a product)
- And more than 200 other combinatorial families
Each of these is a different problem with the same count. That can't be a coincidence — and it isn't. Every one of them satisfies the same recurrence, and that shared structure is the key to understanding why the sequence is so universal.
Comments
Loading comments...