In mathematics, the Catalan numbers are a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. They are named after Eugène Catalan, though they were previously discovered in the 1730s by Minggatu. The n-th Catalan number can be expressed directly in terms of central binomial coefficients by Cn=1n+1(2nn)=(2n)!(n+1)!n!for n≥0. The first few Catalan numbers are
1,1,2,5,14,42,132,429,1430,4862,16796,58786,… (sequence A000108 in the OEIS).
Properties An alternative expression for Cn is Cn=(2nn)−(2nn+1)for n≥0, which is equivalent to the expression given above because (2nn+1)=nn+1(2nn). This expression notably shows that Cn is an integer, which is not immediately obvious from the first formula. This expression forms the basis for a proof of the correctness of the formula. Another alternative expression is Cn=12n+1(2n+1n), which can be directly interpreted in terms of the cycle lemma; see below. The Catalan numbers satisfy the recurrence relations C0=1andCn=∑i=1nCi−1Cn−ifor n>0 and C0=1andCn=2(2n−1)n+1Cn−1for n>0. Asymptotically, the Catalan numbers grow as Cn∼4nn3/2π, in the sense that the quotient of the nth Catalan number and the expression on the right tends towards 1 as n approaches infinity. This can be proved by using the asymptotic growth of the central binomial coefficients, by Stirling's approximation for n!, or via generating functions. The only odd Catalan numbers Cn are those for which n = 2k − 1; all others are even. The only prime Catalan numbers are C2 = 2 and C3 = 5. More generally, the multiplicity with which a prime p divides Cn can be determined by first expressing n + 1 in base p. For p=2, the multiplicity is the number of 1 bits, minus 1. For p an odd prime, count all digits greater than p+12; also count digits equal to p+12 unless final; and count digits equal to p−12 if not final and the next digit is counted. The only known odd Catalan numbers that do not have last digit 5 are C0 = 1, C1 = 1, C7 = 429, C31, C127 and C255. The odd Catalan numbers, Cn for n = 2k − 1, do not have last digit 5 if n + 1 has a base 5 representation containing 0, 1 and 2 only, except in the least significant place, which could also be a 3. The Catalan numbers have the integral representations Cn=12π∫04xn4−xxdx=2π4n∫−11t2n1−t2dt. which immediately yields ∑n=0∞Cn4n=2. This has a simple probabilistic interpretation. Consider a random walk on the integer line, starting at 0. Let −1 be a "trap" state, such that if the walker arrives at −1, it will remain there. The walker can arrive at the trap state at times 1, 3, 5, 7,… and the number of ways the walker can arrive at the trap state at time 2k + 1 is Ck. Since the one-dimensional random walk is recurrent, the probability that the walker eventually arrives at −1 is ∑n=0∞Cn22n+1=1.
Applications in combinatorics There are many counting problems in combinatorics whose solution is given by the Catalan numbers. The book Enumerative Combinatorics: Volume 2 by combinatorialist Richard P. Stanley contains a set of exercises which describe 66 different interpretations of the Catalan numbers. Following are some examples, with illustrations of the cases C3 = 5 and C4 = 14.
Cn is the number of Dyck words of length 2n. A Dyck word is a string consisting of n X's and n Y's such that no initial segment of the string has more Y's than X's. For example, the following are the Dyck words up to length 6:
Re-interpreting the symbol X as an opening parenthesis and Y as a closing parenthesis, Cn counts the number of expressions containing n pairs of parentheses which are correctly matched. For instance, for n = 3 these are
Cn is the number of different ways n + 1 factors can be completely parenthesized, i.e. the number of ways of associating n applications of a binary operator (as in the matrix chain multiplication problem). For n = 3, for example, we have the following five different complete parenthesizations of four factors:
Successive applications of a binary operator can be represented in terms of a full binary tree, by labeling each leaf a, b, c, d. It follows that Cn is the number of full binary trees with n + 1 leaves, or, equivalently, with a total of n internal nodes:
Cn is the number of non-isomorphic ordered (or plane) trees with n + 1 vertices. See encoding ordered trees as binary trees. For example, Cn is the number of possible parse trees for a sentence (assuming binary branching), in natural language processing. Cn is the number of monotonic lattice paths along the edges of a grid with n × n square cells, which do not pass above the diagonal. A monotonic path is one which starts in the lower left corner, finishes in the upper right corner, and consists entirely of edges pointing rightwards or upwards. Counting such paths is equivalent to counting Dyck words: X stands for "move right" and Y stands for "move up". The following diagrams show the case n = 4:
This can be represented by listing the Catalan elements by column height:
A convex polygon with n + 2 sides can be cut into triangles by connecting vertices with non-crossing line segments (a form of polygon triangulation). The number of triangles formed is n and the number of different ways that this can be achieved is Cn. The following hexagons illustrate the case n = 4:
… excerpt ends here. Continue reading the full article.





