TheoremComplete

Generating Functions - Main Theorem

The Catalan numbers appear in numerous combinatorial structures, and their generating function provides elegant derivations of both the recurrence and closed form.

DefinitionCatalan Number Generating Function

The ordinary generating function for the Catalan numbers CnC_n satisfies: C(x)=βˆ‘n=0∞Cnxn=1βˆ’1βˆ’4x2xC(x) = \sum_{n=0}^{\infty} C_n x^n = \frac{1 - \sqrt{1-4x}}{2x}

and the Catalan numbers are given by: Cn=1n+1(2nn)C_n = \frac{1}{n+1}\binom{2n}{n}

Derivation from Recurrence:

The Catalan numbers satisfy C0=1C_0 = 1 and: Cn=βˆ‘k=0nβˆ’1CkCnβˆ’1βˆ’kΒ forΒ nβ‰₯1C_n = \sum_{k=0}^{n-1} C_k C_{n-1-k} \text{ for } n \geq 1

This recurrence arises from decomposing binary trees: a tree with nn internal nodes has a root and two subtrees with kk and nβˆ’1βˆ’kn-1-k internal nodes respectively, summing over all kk.

Let C(x)=βˆ‘n=0∞CnxnC(x) = \sum_{n=0}^{\infty} C_n x^n. The convolution in the recurrence suggests: βˆ‘n=1∞Cnxn=βˆ‘n=1∞(βˆ‘k=0nβˆ’1CkCnβˆ’1βˆ’k)xn\sum_{n=1}^{\infty} C_n x^n = \sum_{n=1}^{\infty} \left(\sum_{k=0}^{n-1} C_k C_{n-1-k}\right) x^n

The right side is xβ‹…C(x)β‹…C(x)=xC(x)2x \cdot C(x) \cdot C(x) = xC(x)^2.

Therefore: C(x)βˆ’C0=xC(x)2C(x) - C_0 = xC(x)^2 C(x)βˆ’1=xC(x)2C(x) - 1 = xC(x)^2 xC(x)2βˆ’C(x)+1=0xC(x)^2 - C(x) + 1 = 0

Using the quadratic formula (treating C(x)C(x) as the unknown): C(x)=1Β±1βˆ’4x2xC(x) = \frac{1 \pm \sqrt{1-4x}}{2x}

Since C(x)C(x) should have C(0)=1C(0) = 1 and be analytic at x=0x=0, we need the negative sign (the positive sign gives ∞\infty at x=0x=0): C(x)=1βˆ’1βˆ’4x2xC(x) = \frac{1 - \sqrt{1-4x}}{2x}

Extracting the Coefficient:

We can expand (1βˆ’4x)1/2(1-4x)^{1/2} using the binomial series: (1βˆ’4x)1/2=βˆ‘k=0∞(1/2k)(βˆ’4x)k(1-4x)^{1/2} = \sum_{k=0}^{\infty} \binom{1/2}{k} (-4x)^k

where (1/2k)=(1/2)(1/2βˆ’1)β‹―(1/2βˆ’k+1)k!=(1/2)(βˆ’1/2)(βˆ’3/2)β‹―(3/2βˆ’k)k!\binom{1/2}{k} = \frac{(1/2)(1/2-1)\cdots(1/2-k+1)}{k!} = \frac{(1/2)(-1/2)(-3/2)\cdots(3/2-k)}{k!}.

After simplification: (1/2k)=(βˆ’1)kβˆ’122kβˆ’1k(2kβˆ’2kβˆ’1)\binom{1/2}{k} = \frac{(-1)^{k-1}}{2^{2k-1}k} \binom{2k-2}{k-1} for kβ‰₯1k \geq 1.

Substituting and comparing coefficients: Cn=1n+1(2nn)C_n = \frac{1}{n+1}\binom{2n}{n}

This is the closed form for Catalan numbers. β–‘\square

ExampleSmall Catalan Numbers

The first few Catalan numbers are:

  • C0=1C_0 = 1
  • C1=1C_1 = 1
  • C2=2C_2 = 2
  • C3=5C_3 = 5
  • C4=14C_4 = 14
  • C5=42C_5 = 42

These count:

  • C3=5C_3 = 5: Five ways to parenthesize four factors: ((ab)c)d((ab)c)d, (a(bc))d(a(bc))d, (ab)(cd)(ab)(cd), a((bc)d)a((bc)d), a(b(cd))a(b(cd))
  • C3=5C_3 = 5: Five binary trees with 3 internal nodes
  • C3=5C_3 = 5: Five Dyck paths of length 6 (lattice paths from (0,0)(0,0) to (6,0)(6,0) staying above the xx-axis)
Remark

The Catalan numbers have over 200 different combinatorial interpretations listed in Richard Stanley's "Enumerative Combinatorics." They appear in the enumeration of full binary trees, well-formed parentheses sequences, non-crossing partitions, triangulations of convex polygons, and many other structures. The asymptotic growth is Cn∼4nn3/2Ο€C_n \sim \frac{4^n}{n^{3/2}\sqrt{\pi}}, which can be derived using Stirling's approximation. The connection between the recurrence relation and the quadratic equation for the generating function is characteristic of algebraic generating functions arising from context-free grammars.