Catalan number
s of a 5-element set (below, the other 10 of the 52 partitions) 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 -th Catalan number can be expressed directly in terms of the central binomial coefficients by C_n = \frac{1 {n+1 {2n\choose n = \frac{(2n) {(n+1) \,n \qquad\text{for n\ge 0. The first Catalan numbers for are :. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
s of a 5-element set (below, the other 10 of the 52 partitions) 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 -th Catalan number can be expressed directly in terms of the central binomial coefficients by C_n = \frac{1}{n+1}{2n\choose n} = \frac{(2n)!}{(n+1)!\,n!} \qquad\text{for }n\ge 0. The first Catalan numbers for are . C_n = \binom{2n}{n} - \binom{2n}{n+1} \quad \text{for } n\ge 0\,, which is equivalent to the expression given above because \binom{2n}{n+1}=\frac{n}{n+1}\binom{2n}n . This expression shows that is an integer, which is not immediately obvious from the first formula given. This expression forms the basis for a proof of the correctness of the formula. Another alternative expression is C_n = \frac{1}{2n+1} \binom{2n+1}{n}\,, which can be directly interpreted in terms of the cycle lemma; see below. The Catalan numbers satisfy the recurrence relations C_0 = 1 \quad \text{and} \quad C_{n}=\sum_{i=1}^{n}C_{i-1}C_{n-i}\quad\text{for }n > 0 and C_0 = 1 \quad \text{and} \quad C_{n} = \frac{2(2n-1)}{n+1}C_{n-1}\quad\text{for }n > 0. Asymptotically, the Catalan numbers grow as C_n \sim \frac{4^n}{n^\frac32\sqrt{\pi}}\,, in the sense that the quotient of the th Catalan number and the expression on the right tends towards 1 as approaches infinity. This can be proved by using the asymptotic growth of the central binomial coefficients, by Stirling's approximation for , or via generating functions. The only Catalan numbers that are odd are those for which ; all others are even. The only prime Catalan numbers are and . More generally, the multiplicity with which a prime divides can be determined by first expressing in base . For , the multiplicity is the number of 1 bits, minus 1. For an odd prime, count all digits greater than ; also count digits equal to unless final; and count digits equal to if not final and the next digit is counted. The only known odd Catalan numbers that do not have last digit 5 are , , , , and . The odd Catalan numbers, for , do not have last digit 5 if 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 C_n=\frac {1}{2\pi}\int_0^4 x^n\sqrt{\frac{4-x}{x}}\,dx\, =\frac{2}{\pi}4^n\int_{-1}^{1} t^{2n}\sqrt{1-t^2}\,dt. which immediately yields \sum_{n=0}^\infty \frac{C_n}{4^n} = 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 and the number of ways the walker can arrive at the trap state at time is . Since the one-dimensional random walk is recurrent, the probability that the walker eventually arrives at −1 is \sum_{n=0}^\infty \frac{C_n}{2^{2n+1}} = 1. of order 4 with the C 4 =14 full binary trees with 5 leaves is the number of non-isomorphic ordered (or plane) trees with vertices. See encoding ordered trees as binary trees. For example, is the number of possible parse trees for a sentence (assuming binary branching), in natural language processing. is the number of monotonic lattice paths along the edges of a grid with 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 : This can be represented by listing the Catalan elements by column height: A convex polygon with 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 and the number of different ways that this can be achieved is . The following hexagons illustrate the case : is the number of stack-sortable permutations of . A permutation is called stack-sortable if , where is defined recursively as follows: write where is the largest element in and and are shorter sequences, and set , with being the identity for one-element sequences. is the number of permutations of that avoid the permutation pattern 123 (or, alternatively, any of the other patterns of length 3); that is, the number of permutations with no three-term increasing subsequence. For , these permutations are 132, 213, 231, 312 and 321. For , they are 1432, 2143, 2413, 2431, 3142, 3214, 3241, 3412, 3421, 4132, 4213, 4231, 4312 and 4321. is the number of noncrossing partitions of the set . A fortiori, never exceeds the -th Bell number. is also the number of noncrossing partitions of the set in which every block is of size 2. is the number of ways to tile a stairstep shape of height with rectangles. Cutting across the anti-diagonal and looking at only the edges gives full binary trees. The following figure illustrates the case : is the number of standard Young tableaux whose diagram is a 2-by- rectangle. In other words, it is the number of ways the numbers can be arranged in a 2-by- rectangle so that each row and each column is increasing. As such, the formula can be derived as a special case of the hook-length formula. 123 124 125 134 135 456 356 346 256 246 is the number of length sequences that start with 1, and can increase by either 0 or 1, or decrease by any number (to at least 1). For these are 1234, 1233, 1232, 1231, 1223, 1222, 1221, 1212, 1211, 1123, 1122, 1121, 1112, 1111. From a Dyck path, start a counter at 0. An X increases the counter by 1 and a Y decreases it by 1. Record the values at only the X's. Compared to the similar representation of the Bell numbers, only 1213 is missing. C_n = \frac{1}{n+1}{2n\choose n} solves the combinatorial problems listed above. The first proof below uses a generating function. The other proofs are examples of bijective proofs; they involve literally counting a collection of some kind of object to arrive at the correct formula. C_0 = 1 \quad \text{and} \quad C_{n+1}=\sum_{i=0}^n C_i\,C_{n-i} \quad \text{for } n\ge 0 \,. For example, every Dyck word of length 2 or more can be written in a unique way in the form with (possibly empty) Dyck words and . The generating function for the Catalan numbers is defined by c(x)=\sum_{n=0}^\infty C_n x^n \,. The recurrence relation given above can then be summarized in generating function form by the relation c(x)=1+xc(x)^2 \,; in other words, this equation follows from the recurrence relation by expanding both sides into power series. On the one hand, the recurrence relation uniquely determines the Catalan numbers; on the other hand, interpreting as a quadratic equation of and using the quadratic formula, the generating function relation can be algebraically solved to yield two solution possibilities c(x) = \begin{cases} \dfrac{1+\sqrt{1-4x}}{2x} \\[4px] \dfrac{1-\sqrt{1-4x}}{2x} \end{cases}\,. From the two possibilities, the second must be chosen because only the second gives C_0 = \lim_{x \to 0} c(x) = 1 \,. The square root term can be expanded as a power series using the binomial series \begin{align} 1 - \sqrt{1-4x} & = -\sum_{n=1}^{\infty} \binom{\frac12}{n}(-4x)^{n} = -\sum_{n=1}^{\infty} \frac{(-1)^{n-1}(2n-3)!!}{2^{n}n!}(-4x)^{n} \\[6px] &= -\sum_{n=0}^{\infty} \frac{(-1)^n(2n-1)!!}{2^{n+1}(n+1)!}(-4x)^{n+1} = \sum_{n=0}^{\infty} \frac{2^{n+1}(2n-1)!!}{(n+1)!}x^{n+1} \\[6px] & = \sum_{n=0}^{\infty} \frac{2(2n)!}{(n+1)!n!}x^{n+1} = \sum_{n=0}^{\infty} \frac{2}{n+1} \binom{2n}{n}x^{n+1}\,. \end{align} Thus, c(x) = \frac{1-\sqrt{1-4x}}{2x} = \sum_{n=0}^{\infty} \frac{1}{n+1} \binom{2n}{n}x^{n}\,. The number of reflected paths can be counted in the usual way, by counting how many way upward steps may be distributed among total steps, which is \binom{2n}{n+1} , and the number of Catalan paths (good paths) is obtained by removing the number of bad paths from the total number of monotonic paths of the original grid, C_n = \binom{2n}{n} - \binom{2n}{n+1} = \binom{2n}{n} - \frac{n}{n+1}\binom{2n}{n} = \frac{1}{n+1}\binom{2n}{n}. This proof can be restated in terms of Dyck words. We start with a (non-Dyck) sequence of Xs and Ys and interchange all Xs and Ys after the first Y that violates the Dyck condition. This implies that the number of paths of exceedance is equal to the number of paths of exceedance , which is equal to the number of paths of exceedance , and so on, down to zero. In other words, we have split up the set of all monotonic paths into equally sized classes, corresponding to the possible exceedances between 0 and . Since there are \binom{2n}{n} monotonic paths, we obtain the desired formula C_n = \frac{1}{n+1}\binom{2n}{n}. Figure 4 illustrates the situation for . Each of the 20 possible monotonic paths appears somewhere in the table. The first column shows all paths of exceedance three, which lie entirely above the diagonal. The columns to the right show the result of successive applications of the algorithm, with the exceedance decreasing one unit at a time. There are five rows, that is , and the last column displays all paths no higher than the diagonal. Using Dyck words, start with a sequence from \binom{2n}{n} . Let be the first that brings an initial subsequence to equality, and configure the sequence as . The new sequence is . (4n+2)C_n = (n+2)C_{n+1}\,. Write \frac{4n-2}{n+1}C_{n-1} = C_n\,. Because (2n)!=(2n)!!(2n-1)!! = 2^nn!(2n-1)!! \,, we have \frac{(2n)!}{n!} = 2^n(2n-1)!! = (4n-2)!!!! \,. Applying the recursion with gives the result. C_0 = 1 \quad \text{and} \quad C_{n+1} = \sum_{i=0}^n C_i\,C_{n-i}\quad\text{for }n\ge 0 . Let be a balanced string of length , i.e. contains an equal number of and , so . A balanced string can also be uniquely decomposed into either or , so B_{n+1} = 2\sum_{i=0}^n B_i C_{n-i} \,. Any incorrect (non-Catalan) balanced string starts with , and the remaining string has one more than , so B_{n+1} - C_{n+1} = \sum_{i=0}^n \binom{2i+1}{i} C_{n-i} Also, from the definitions, we have: B_{n+1} - C_{n+1} = 2\sum_{i=0}^n B_i C_{n-i} - \sum_{i=0}^n C_i\,C_{n-i} = \sum_{i=0}^n (2B_i-C_i) C_{n-i} \,. Therefore, as this is true for all , \begin{align} 2B_i - C_i &= \binom{2i+1}{i} \\[6px] C_i &= 2B_i - \binom{2i+1}{i} \\[6px] &= 2\binom{2i}{i} - \binom{2i+1}{i} \\[6px] &= \frac{1}{i+1} \binom{2i}{i} \,. \end{align} A string is a Dyck word of Xs and Ys if and only if prepending an X to the Dyck word gives a dominating sequence with Xs and Ys, so we can count the former by instead counting the latter. In particular, when , there is exactly one dominating circular shift. There are \binom{2n+1}{n} sequences with exactly Xs and Ys. For each of these, only one of the circular shifts is dominating. Therefore there are distinct sequences of Xs and Ys that are dominating, each of which corresponds to exactly one Dyck word. \det\begin{bmatrix}1 & 1 & 2 & 5 \\ 1 & 2 & 5 & 14 \\ 2 & 5 & 14 & 42 \\ 5 & 14 & 42 & 132\end{bmatrix} = 1. Moreover, if the indexing is "shifted" so that the entry is filled with the Catalan number then the determinant is still 1, regardless of the value of . For example, for we have \det\begin{bmatrix}1 & 2 & 5 & 14 \\ 2 & 5 & 14 & 42 \\ 5 & 14 & 42 & 132 \\ 14 & 42 & 132 & 429 \end{bmatrix} = 1. Taken together, these two conditions uniquely define the Catalan numbers. Another feature unique to the Catalan–Hankel matrix is that the submatrix starting at has determinant . \det\begin{bmatrix} 2 \end{bmatrix} = 2 \det\begin{bmatrix} 2 & 5 \\5 & 14 \end{bmatrix} = 3 \det\begin{bmatrix} 2 & 5 & 14\\5 & 14 & 42\\ 14 & 42 & 132\end{bmatrix} = 4 \det\begin{bmatrix} 2 & 5 & 14 & 42 \\ 5 & 14 & 42 & 132 \\ 14 & 42 & 132 & 42 9\\ 42 & 132 & 429 & 1430\end{bmatrix} = 5 et cetera. For m=1 , this is just two times the ordinary Catalan numbers, and for m=n , the numbers have an easy combinatorial description. However, other combinatorial descriptions are only known for m=2, 3 and 4 , and it is an open problem to find a general combinatorial interpretation. Sergey Fomin and Nathan Reading have given a generalized Catalan number associated to any finite crystallographic Coxeter group, namely the number of fully commutative elements of the group; in terms of the associated root system, it is the number of anti-chains (or order ideals) in the poset of positive roots. The classical Catalan number C_n corresponds to the root system of type A_n . The classical recurrence relation generalizes: the Catalan number of a Coxeter diagram is equal to the sum of the Catalan numbers of all its maximal proper sub-diagrams. The Catalan numbers are a solution of a version of the Hausdorff moment problem. For coprime positive integers and , the rational Catalan numbers \frac{1}{r+s} \binom{r+s}{r} count the number of lattice paths with steps of unit length rightwards and upwards from to that never go above the line . ==Catalan k-fold convolution== The Catalan -fold convolution is: \sum_{i_1+\cdots+i_k=n\atop i_1,\ldots,i_k\ge 0} C_{i_1}\cdots C_{i_k} = \dfrac{k}{2n + k} \binom{2n+k}{n} ==References== Stanley, Richard P. (2015), Catalan numbers. Cambridge University Press, . Conway and Guy (1996) The Book of Numbers. New York: Copernicus, pp. 96–106. Koshy, Thomas & Zhenguang Gao (2011) "Some divisibility properties of Catalan numbers", Mathematical Gazette 95:96–102. ==External links== Davis, Tom: Catalan numbers. Still more examples. "Equivalence of Three Catalan Number Interpretations" from The Wolfram Demonstrations Project [http://demonstrations.wolfram.com/EquivalenceOfThreeCatalanNumberInterpretations/]
Cite this
"Catalan number". 1789733192. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375551910 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy