Catalan number



         


The Catalan numbers form a sequence of natural numbers that occur in various counting problems in combinatorics. The n-th Catalan number is defined by

<math>C_n = \frac{1}{n+1}{2n\choose n} \qquad\mbox{ for }n\ge 0<math>

(see binomial coefficient). The first Catalan numbers (sequence in OEIS) for n=0,1,2,3,... are

1, 1, 2, 5, 14, 42, 132, 429, 1430,...

All Catalan numbers are natural numbers because one can verify that

<math>C_n = {2n\choose n} - {2n\choose n-1} \qquad\mbox{ for }n\ge 1.<math>
[Top]

Applications in combinatorics

One can count Dyck words with the following trick due to D. André: focus on those words containing n X's and n Y's that are not Dyck words. In such a word, find the first Y that violates the Dyck condition, and then flip all letters following this Y from Y to X and vice versa. You obtain a word with n + 1 Y's and n − 1 X's, and in fact every word with n + 1 Y's and n − 1 X's can be obtained in this fashion in precisely one way. The number of these words is equal to
<math>{2n\choose n-1}<math>
which is therefore the same as the number of non-Dyck words; the number of Dyck words must then be
<math>{2n\choose n}-{2n\choose n-1}<math>
which is the nth Catalan number Cn.
If w is a finite sequence of different integers, we define a reordering S(w) of w recursively as follows: write w = unv where n is the largest element in w and u and v are shorter sequences, and set S(w) = S(u)S(v)n, with S being the identity for one-element sequences. A permutation w of {1, ..., n} is called stack-sortable if S(w) = (1, ..., n). The number of stack-sortable permutations of {1, ..., n} is equal to Cn.
[Top]

Recurrence relation and asymptotic expression

The Catalan numbers satisfy the recurrence relation

<math>C_0 = 1 \qquad \mbox{and} \qquad C_n=\sum_{i=0}^{n-1}C_i C_{n-1-i}\quad\mbox{for }n\ge 1.<math>

This follows from the fact that every Dyck word w of length ≥ 2 can be written in a unique way in the form

w = Xw1Yw2

with (possibly empty) Dyck words w1 and w2.

The generating function for the Catalan numbers is defined by

<math>c(x)=\sum_{n=0}^\infty C_n x^n<math>

and using the above recurrence relation we see that

<math>c(x)=1+xc(x)^2\,<math>

and hence

<math>c(x) = \frac{1-\sqrt{1-4x}}{2x}.<math>

Asymptotically, the Catalan numbers grow as

<math>C_n \sim \frac{4^n}{n^{3/2}\sqrt{\pi}}<math>

in the sense that the quotient of the n-th Catalan number and the expression on the right tends towards 1 for n → ∞. (This can be proved by using Stirling's approximation for n!.)

[Top]

History

The Catalan sequence was first described in the 18th century by Leonhard Euler, who was interested in the number of different ways of dividing a polygon into triangles. The sequence is named after Eugène Charles Catalan, who discovered the connection to parenthesized expressions. The counting trick for Dyck words was found by D. André in 1887.






  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License