Aller au contenu principal

Catalan's triangle


Catalan's triangle


In combinatorial mathematics, Catalan's triangle is a number triangle whose entries C ( n , k ) {\displaystyle C(n,k)} 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 shows that C ( n , k ) {\displaystyle C(n,k)} satisfy the following properties:

  1. C ( n , 0 ) = 1  for  n 0 {\displaystyle C(n,0)=1{\text{ for }}n\geq 0} .
  2. C ( n , 1 ) = n  for  n 1 {\displaystyle C(n,1)=n{\text{ for }}n\geq 1} .
  3. C ( n + 1 , k ) = C ( n + 1 , k 1 ) + C ( n , k )  for  1 < k < n + 1 {\displaystyle C(n+1,k)=C(n+1,k-1)+C(n,k){\text{ for }}1<k<n+1}
  4. C ( n + 1 , n + 1 ) = C ( n + 1 , n )  for  n 1 {\displaystyle C(n+1,n+1)=C(n+1,n){\text{ for }}n\geq 1} .

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 by Louis François Antoine Arbogast.

Shapiro introduces another triangle which he calls the Catalan triangle that is distinct from the triangle being discussed here.

General formula

The general formula for C ( n , k ) {\displaystyle C(n,k)} is given by

C ( n , k ) = ( n + k k ) ( n + k k 1 ) {\displaystyle C(n,k)={\binom {n+k}{k}}-{\binom {n+k}{k-1}}}

So

C ( n , k ) = n k + 1 n + 1 ( n + k k ) {\displaystyle C(n,k)={\frac {n-k+1}{n+1}}{\binom {n+k}{k}}}

When k = n {\displaystyle k=n} , 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

Properties

  • Formula 3 from the first section can be used to prove both
C ( n , k ) = i = 0 k C ( n 1 , i ) = i = k n C ( i , k 1 ) {\displaystyle C(n,k)=\sum _{i=0}^{k}C(n-1,i)=\sum _{i=k}^{n}C(i,k-1)}

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 k > n {\displaystyle k>n} , then at some stage there must be more Y's than X's, so C ( n , k ) = 0 {\displaystyle C(n,k)=0} .
  • A combinatorial interpretation of the ( n , k 1 ) {\displaystyle (n,k-1)} -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, ( 4 , 2 ) = 9 {\displaystyle (4,2)=9} counts
1111 , 1112 , 1113 , 1122 , 1123 , 1133 , 1222 , 1223 , 1233 {\displaystyle 1111,1112,1113,1122,1123,1133,1222,1223,1233}

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 C m ( n , k ) {\displaystyle C_{m}(n,k)} 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. By definition, Catalan's trapezoid of order m = 1 is Catalan's triangle, i.e., C 1 ( n , k ) = C ( n , k ) {\displaystyle C_{1}(n,k)=C(n,k)} .

Some values of Catalan's trapezoid of order m = 2 are given by

Some values of Catalan's trapezoid of order m = 3 are given by

Again, each element is the sum of the one above and the one to the left.

A general formula for C m ( n , k ) {\displaystyle C_{m}(n,k)} is given by

C m ( n , k ) = { ( n + k k ) 0 k < m ( n + k k ) ( n + k k m ) m k n + m 1 0 k > n + m 1 {\displaystyle C_{m}(n,k)={\begin{cases}\left({\begin{array}{c}n+k\\k\end{array}}\right)&\,\,\,0\leq k<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>n+m-1\end{cases}}}

( 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 ( 0 , 0 ) {\displaystyle (0,0)} to the top right ( k , n ) {\displaystyle (k,n)} of the diagram that crosses the constraint n k + m 1 = 0 {\displaystyle n-k+m-1=0} can also be reflected to the end point ( n + m , k m ) {\displaystyle (n+m,k-m)} .

We consider three cases to determine the number of paths from ( 0 , 0 ) {\displaystyle (0,0)} to ( k , n ) {\displaystyle (k,n)} that do not cross the constraint:

(1) when m > k {\displaystyle m>k} the constraint cannot be crossed, so all paths from ( 0 , 0 ) {\displaystyle (0,0)} to ( k , n ) {\displaystyle (k,n)} are valid, i.e. C m ( n , k ) = ( n + k k ) {\displaystyle C_{m}(n,k)=\left({\begin{array}{c}n+k\\k\end{array}}\right)} .

(2) when k m + 1 > n {\displaystyle k-m+1>n} it is impossible to form a path that does not cross the constraint, i.e. C m ( n , k ) = 0 {\displaystyle C_{m}(n,k)=0} .

(3) when m k n + m 1 {\displaystyle m\leq k\leq n+m-1} , then C m ( n , k ) {\displaystyle C_{m}(n,k)} is the number of 'red' paths ( n + k k ) {\displaystyle \left({\begin{array}{c}n+k\\k\end{array}}\right)} minus the number of 'yellow' paths that cross the constraint, i.e. ( ( n + m ) + ( k m ) k m ) = ( n + k k m ) {\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)} .

Therefore the number of paths from ( 0 , 0 ) {\displaystyle (0,0)} to ( k , n ) {\displaystyle (k,n)} that do not cross the constraint n k + m 1 = 0 {\displaystyle n-k+m-1=0} is as indicated in the formula in the previous section "Generalization".

Proof 2

Firstly, we confirm the validity of the recurrence relation C m ( n , k ) = C m ( n 1 , k ) + C m ( n , k 1 ) {\displaystyle C_{m}(n,k)=C_{m}(n-1,k)+C_{m}(n,k-1)} by breaking down C m ( n , k ) {\displaystyle C_{m}(n,k)} into two parts, the first for XY combinations ending in X and the second for those ending in Y. The first group therefore has C m ( n 1 , k ) {\displaystyle C_{m}(n-1,k)} valid combinations and the second has C m ( n , k 1 ) {\displaystyle C_{m}(n,k-1)} . Proof 2 is completed by verifying the solution satisfies the recurrence relation and obeys initial conditions for C m ( n , 0 ) {\displaystyle C_{m}(n,0)} and C m ( 0 , k ) {\displaystyle C_{m}(0,k)} .

References


Text submitted to CC-BY-SA license. Source: Catalan's triangle by Wikipedia (Historical)


INVESTIGATION