Catalan's triangle
In combinatorial mathematics, Catalan's triangle is a number triangle whose entries [math]\displaystyle{ C(n,k) }[/math] give the number of strings consisting of n X's and k Y's such that no initial segment of the string has more Y's than X's. It is a generalization of the Catalan numbers, and is named after Eugène Charles Catalan. Bailey[1] shows that [math]\displaystyle{ C(n,k) }[/math] satisfy the following properties:
- [math]\displaystyle{ C(n,0)=1 \text{ for } n\geq 0 }[/math].
- [math]\displaystyle{ C(n,1)=n \text{ for } n\geq 1 }[/math].
- [math]\displaystyle{ C(n+1,k)=C(n+1,k-1)+C(n,k) \text{ for } 1\lt k\lt n+1 }[/math]
- [math]\displaystyle{ C(n+1,n+1)=C(n+1,n) \text{ for } n\geq 1 }[/math].
Formula 3 shows that the entry in the triangle is obtained recursively by adding numbers to the left and above in the triangle. The earliest appearance of the Catalan triangle along with the recursion formula is in page 214 of the treatise on Calculus published in 1800[2] by Louis François Antoine Arbogast.
Shapiro[3] introduces another triangle which he calls the Catalan triangle that is distinct from the triangle being discussed here.
General formula
The general formula for [math]\displaystyle{ C(n,k) }[/math] is given by[1][4]
- [math]\displaystyle{ C(n,k)= \binom{n+k}{k} - \binom{n+k}{k-1} }[/math]
So
- [math]\displaystyle{ C(n,k) = \frac{n-k+1}{n+1}\binom{n+k}{k} }[/math]
When [math]\displaystyle{ k=n }[/math], the diagonal C(n, n) is the n-th Catalan number.
The row sum of the n-th row is the (n + 1)-th Catalan number, using the hockey-stick identity and an alternative expression for Catalan numbers.
Table of values
Some values are given by[5]
- kn
0 1 2 3 4 5 6 7 8 0 1 1 1 1 2 1 2 2 3 1 3 5 5 4 1 4 9 14 14 5 1 5 14 28 42 42 6 1 6 20 48 90 132 132 7 1 7 27 75 165 297 429 429 8 1 8 35 110 275 572 1001 1430 1430
Properties
- Formula 3 from the first section can be used to prove both
- [math]\displaystyle{ C(n,k) = \sum_{i=0}^k C(n-1,i) = \sum_{i=k}^n C(i,k-1) }[/math]
That is, an entry is the partial sum of the above row and also the partial sum of the column to the left (except for the entry on the diagonal).
- If [math]\displaystyle{ k\gt n }[/math], then at some stage there must be more Y's than X's, so [math]\displaystyle{ C(n,k)=0 }[/math].
- A combinatorial interpretation of the [math]\displaystyle{ (n,k-1) }[/math]-th value is the number of non-decreasing partitions with exactly n parts with maximum part k such that each part is less than or equal to its index. So, for example, [math]\displaystyle{ (4,2) = 9 }[/math] counts
- [math]\displaystyle{ 1111, 1112, 1113, 1122, 1123, 1133, 1222, 1223, 1233 }[/math]
Generalization
Catalan's trapezoids are a countable set of number trapezoids which generalize Catalan’s triangle. Catalan's trapezoid of order m = 1, 2, 3, ... is a number trapezoid whose entries [math]\displaystyle{ C_{m}(n,k) }[/math] give the number of strings consisting of n X-s and k Y-s such that in every initial segment of the string the number of Y-s does not exceed the number of X-s by m or more.[6] By definition, Catalan's trapezoid of order m = 1 is Catalan's triangle, i.e., [math]\displaystyle{ C_{1}(n,k)=C(n,k) }[/math].
Some values of Catalan's trapezoid of order m = 2 are given by
- kn
0 1 2 3 4 5 6 7 8 0 1 1 1 1 2 2 2 1 3 5 5 3 1 4 9 14 14 4 1 5 14 28 42 42 5 1 6 20 48 90 132 132 6 1 7 27 75 165 297 429 429 7 1 8 35 110 275 572 1001 1430 1430
Some values of Catalan's trapezoid of order m = 3 are given by
- kn
0 1 2 3 4 5 6 7 8 9 0 1 1 1 1 1 2 3 3 2 1 3 6 9 9 3 1 4 10 19 28 28 4 1 5 15 34 62 90 90 5 1 6 21 55 117 207 297 297 6 1 7 28 83 200 407 704 1001 1001 7 1 8 36 119 319 726 1430 2431 3432 3432
Again, each element is the sum of the one above and the one to the left.
A general formula for [math]\displaystyle{ C_{m}(n,k) }[/math] is given by
- [math]\displaystyle{ C_{m}(n,k)=\begin{cases} \left(\begin{array}{c} n+k\\ k \end{array}\right) & \,\,\,0\leq k\lt m\\ \\ \left(\begin{array}{c} n+k\\ k \end{array}\right)-\left(\begin{array}{c} n+k\\ k-m \end{array}\right) & \,\,\, m\leq k\leq n+m-1\\ \\ 0 & \,\,\, k\gt n+m-1 \end{cases} }[/math]
( n = 0, 1, 2, ..., k = 0, 1, 2, ..., m = 1, 2, 3, ...).
Proofs of the general formula
Proof 1
This proof involves an extension of Andre's reflection method as used in the second proof for the Catalan number to different diagonals. The following shows how every path from the bottom left [math]\displaystyle{ (0,0) }[/math] to the top right [math]\displaystyle{ (k, n) }[/math] of the diagram that crosses the constraint [math]\displaystyle{ n-k+m-1 = 0 }[/math] can also be reflected to the end point [math]\displaystyle{ (n + m, k - m) }[/math].
We consider three cases to determine the number of paths from [math]\displaystyle{ (0,0) }[/math] to [math]\displaystyle{ (k, n) }[/math] that do not cross the constraint:
(1) when [math]\displaystyle{ m \gt k }[/math] the constraint cannot be crossed, so all paths from [math]\displaystyle{ (0,0) }[/math] to [math]\displaystyle{ (k, n) }[/math] are valid, i.e. [math]\displaystyle{ C_{m}(n,k)=\left(\begin{array}{c} n+k\\ k \end{array}\right) }[/math].
(2) when [math]\displaystyle{ k - m + 1 \gt n }[/math] it is impossible to form a path that does not cross the constraint, i.e. [math]\displaystyle{ C_{m}(n,k)= 0 }[/math].
(3) when [math]\displaystyle{ m\leq k\leq n+m-1 }[/math], then [math]\displaystyle{ C_{m}(n,k) }[/math] is the number of 'red' paths [math]\displaystyle{ \left(\begin{array}{c} n+k\\ k \end{array}\right) }[/math] minus the number of 'yellow' paths that cross the constraint, i.e. [math]\displaystyle{ \left(\begin{array}{c} (n+m)+(k-m)\\ k-m \end{array}\right) = \left(\begin{array}{c} n+k\\ k-m \end{array}\right) }[/math].
Therefore the number of paths from [math]\displaystyle{ (0,0) }[/math] to [math]\displaystyle{ (k, n) }[/math] that do not cross the constraint [math]\displaystyle{ n - k + m - 1 = 0 }[/math] is as indicated in the formula in the previous section "Generalization".
Proof 2
Firstly, we confirm the validity of the recurrence relation [math]\displaystyle{ C_{m}(n,k)=C_{m}(n-1,k)+C_{m}(n,k-1) }[/math] by breaking down [math]\displaystyle{ C_{m}(n,k) }[/math] into two parts, the first for XY combinations ending in X and the second for those ending in Y. The first group therefore has [math]\displaystyle{ C_{m}(n-1,k) }[/math] valid combinations and the second has [math]\displaystyle{ C_{m}(n,k-1) }[/math]. Proof 2 is completed by verifying the solution satisfies the recurrence relation and obeys initial conditions for [math]\displaystyle{ C_{m}(n,0) }[/math] and [math]\displaystyle{ C_{m}(0,k) }[/math].
References
- ↑ 1.0 1.1 Bailey, D. F. (1996). "Counting Arrangements of 1's and -1's". Mathematics Magazine 69 (2): 128–131. doi:10.1080/0025570X.1996.11996408.
- ↑ Arbogast, L. F. A. (1800). Du Calcul des Derivations. Levrault. p. 214. https://archive.org/details/ducalculdesdriv00arbogoog.
- ↑ Shapiro, L. W. (1976). "A Catalan Triangle". Discrete Mathematics 14 (1): 83–90. doi:10.1016/0012-365x(76)90009-1.
- ↑ Eric W. Weisstein. "Catalan's Triangle". MathWorld − A Wolfram Web Resource. http://mathworld.wolfram.com/CatalansTriangle.html. Retrieved March 28, 2012.
- ↑ Sloane, N. J. A., ed. "Sequence A009766 (Catalan's triangle)". OEIS Foundation. https://oeis.org/A009766. Retrieved March 28, 2012.
- ↑ Reuveni, Shlomi (2014). "Catalan's trapezoids". Probability in the Engineering and Informational Sciences 28 (3): 4391–4396. doi:10.1017/S0269964814000047.
Original source: https://en.wikipedia.org/wiki/Catalan's triangle.
Read more |