Catalan Numbers
The Catalan numbers count balanced bracket sequences, triangulations of polygons, binary trees and many other structures. They are used throughout combinatorics and computer science.
LaTeX
C_n=\frac{1}{n+1}\binom{2n}{n}=\frac{(2n)!}{(n+1)!\,n!}Variables
- n-th Catalan number
- non-negative integer
Example
How many ways can pairs of brackets be balanced?
- .
- .
Answer: .