Catalan's triangle explained

In combinatorial mathematics, Catalan's triangle is a number triangle whose entries

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[1] shows that

C(n,k)

satisfy the following properties:

C(n,0)=1forn\geq0

.

C(n,1)=nforn\geq1

.

C(n+1,k)=C(n+1,k-1)+C(n,k)for1<k<n+1

C(n+1,n+1)=C(n+1,n)forn\geq1

.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

C(n,k)

is given by[4]

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

So

C(n,k)=

n-k+1
n+1

\binom{n+k}{k}

When

k=n

, the diagonal is the -th Catalan number.

The row sum of the -th row is the -th Catalan number, using the hockey-stick identity and an alternative expression for Catalan numbers.

Table of values

Some values are given by[5]

012345678
01
11 1
21 2 2
31 3 5 5
41 4 9 14 14
51 5 14 28 42 42
61 6 20 48 90 132 132
71 7 27 75 165 297 429 429
81 8 35 110 275 572 1001 1430 1430

Properties

C(n,k)=

k
\sum
i=0

C(n-1,i)=

n
\sum
i=k

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).

k>n

, then at some stage there must be more 's than 's, so

C(n,k)=0

.

(n,k-1)

-th value is the number of non-decreasing partitions with exactly parts with maximum part such that each part is less than or equal to its index. So, for example,

(4,2)=9

counts

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 is a number trapezoid whose entries

Cm(n,k)

give the number of strings consisting of X-s and 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 or more. By definition, Catalan's trapezoid of order is Catalan's triangle, i.e.,

C1(n,k)=C(n,k)

.

Some values of Catalan's trapezoid of order are given by

012345678
01 1
11 2 2
21 3 5 5
31 4 9 14 14
41 5 14 28 42 42
51 6 20 48 90 132 132
61 7 27 75 165 297 429 429
71 8 35 110 275 572 1001 1430 1430

Some values of Catalan's trapezoid of order are given by

0123456789
01 1 1
11 2 3 3
21 3 6 9 9
31 4 10 19 28 28
41 5 15 34 62 90 90
51 6 21 55 117 207 297 297
61 7 28 83 200 407 704 1001 1001
71 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

Cm(n,k)

is given by

Cm(n,k)=\begin{cases} \left(\begin{array}{c} n+k\\ k \end{array}\right)&0\leqk<m\\ \\ \left(\begin{array}{c} n+k\\ k \end{array}\right)-\left(\begin{array}{c} n+k\\ k-m \end{array}\right)&m\leqk\leqn+m-1\\ \\ 0&k>n+m-1 \end{cases}

.

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)

to the top right

(k,n)

of the diagram that crosses the constraint

n-k+m-1=0

can also be reflected to the end point

(n+m,k-m)

.

We consider three cases to determine the number of paths from

(0,0)

to

(k,n)

that do not cross the constraint:

(1) when

m>k

the constraint cannot be crossed, so all paths from

(0,0)

to

(k,n)

are valid, i.e.

Cm(n,k)=\left(\begin{array}{c} n+k\\ k \end{array}\right)

.

(2) when

k-m+1>n

it is impossible to form a path that does not cross the constraint, i.e.

Cm(n,k)=0

.

(3) when

m\leqk\leqn+m-1

, then

Cm(n,k)

is the number of 'red' paths

\left(\begin{array}{c} n+k\\ k \end{array}\right)

minus the number of 'yellow' paths that cross the constraint, i.e.

\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)

to

(k,n)

that do not cross the constraint

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

Cm(n,k)=Cm(n-1,k)+Cm(n,k-1)

by breaking down

Cm(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

Cm(n-1,k)

valid combinations and the second has

Cm(n,k-1)

. Proof 2 is completed by verifying the solution satisfies the recurrence relation and obeys initial conditions for

Cm(n,0)

and

Cm(0,k)

.

Notes and References

  1. Bailey. D. F.. Counting Arrangements of 1's and -1's. Mathematics Magazine. 1996. 69. 2. 128–131. 10.1080/0025570X.1996.11996408.
  2. Book: Arbogast. L. F. A.. 1800. Du Calcul des Derivations. 214. Levrault .
  3. Shapiro. L. W.. A Catalan Triangle. Discrete Mathematics. 1976. 14. 1. 83–90. 10.1016/0012-365x(76)90009-1. free.
  4. Web site: Catalan's Triangle. Eric W. Weisstein. MathWorld − A Wolfram Web Resource. March 28, 2012.
  5. A009766. Catalan's triangle. March 28, 2012.