MathorynMathematical Formula Database

Combinatorics

Catalan Numbers

The Catalan numbers 1,1,2,5,14,42,…1,1,2,5,14,42,\ldots count balanced bracket sequences, triangulations of polygons, binary trees and many other structures. They are used throughout combinatorics and computer science.

Cn=1n+1(2nn)=(2n)!(n+1)! n!C_n=\frac{1}{n+1}\binom{2n}{n}=\frac{(2n)!}{(n+1)!\,n!}
LaTeXC_n=\frac{1}{n+1}\binom{2n}{n}=\frac{(2n)!}{(n+1)!\,n!}

Variables

CnC_n
n-th Catalan number
nn
non-negative integer

Example

How many ways can 44 pairs of brackets be balanced?

  1. (84)=70\binom84=70.
  2. C4=705C_4=\frac{70}{5}.

Answer: C4=14C_4=14.

Related formulas