Catalan Number
Catalan Number
1
K2 has n − k + 1 sides, K2 can be divided into triangular regions in hn−k
ways. Hence, for a particular choice of the triangular region T containing
the base, there are hk hn−k ways of dividing K into triangular regions by
diagonals that do not intersect in the interior. Hence, there is a total
n−1
of hn = h1 hn−1 + h2 hn−2 + · · · + hn−1 h1 =
P
hk hn−k − − − − − (1)
k=1
ways to divide K into triangular regions in this way. This establishes the
recurrence relation (1).
We now turn to the solution of (1) with the initial condition h1 = 1.
This recurrence relation is not linear. Moreover, hn does not depend
on a fixed number of values that come before it but on all the values
h1 , h2 , ..., hn−1 that come before it. Thus, none of our methods for solving
recurrence relations apply. Let be the generating function for the sequence
h1 , h2 , h3 , ..., hn , ... .
Multiplying g(x) by itself, we find that (g(x))2 = h21 x2 +(h1 h2 +h2 h1 )x3 +
(h1 h3 + h2 h2 + h3 h1 )x4 + ... + (h1 hn−1 + h2 hn−2 + ... + hn−1 h1 )xn + ....
Using (1) and the fact that h1 = h2 = 1, we obtain (g(x))2 = h21 x2 +h3 x3 +
h4 x4 + ... + hn xn + · · · = h2 x2 + h3 x3 + h4 x4 + ... + hn xn + · · · = g(x) − x.
Thus, g(x) satisfies the equation (g(x)2 − g(x) + x = 0.
This is a quadratic equation for g(x), so, by√ the quadratic formula,g(x) √
=
g1 (X) or g(x) = g2 (X), where g1 (X) = 1+ 21−4x andg2 (X) = 1− 21−4x .
From the definition of g(x), it follows that g(0)√= 0. Since g1 (0) = 1 and
1
g2 (0) = 0, we conclude that g(x) = g2 (X) = 1− 21−4x = 21 − 12 (1 − 4x) 2
1
The coefficient of xn (n ≥ 1) in (1 − 4x) 2 is
1 1
− 1)( 12 − 2) · · · ( 21 − n + 1)
1
2 (−4)n = 2(2
n n!
1 1 · 1 · 3 · 5 · · · (2n − 3)
= (−4)n ( )n (−1)n−1
2 n!
n (2n − 2)! n (2n − 2)! 2 (2n − 2)! 2 2(n − 1)
= −2 = −2 =− = −
n!2 · 4 · 6 · · · (2n − 2) n!2n−1 (n − 1)! n (n − 1)!(n − 1)! n n−1
Thus
∞
1 1 1 X 1 2n − 2
g(x) = − (1 − 4x) 2 = xn
2 2 n n−1
n=1
Thus
1 2n − 2
hn =
n n−1
2
2. 2n points are chosen on a circle. In how many ways can you join pairs of
points by nonintersecting chords?
3. A "legal” sequence of parentheses is one in which the parentheses can be
properly matched, like ()(()) . It’s not hard to see that this is possible
precisely when the number of left and right parentheses is the same, and
every initial segment of the sequence has at least as many left parentheses
as right. For example, ()). . . cannot possibly be extended to a legal
sequence. Show that the number of legal sequences of length 2n is Cn =
2n 2n
. The numbers Cn are called the Catalan numbers.
n − n+1
4. The number of sequences < an > of 2n terms that can be formed by using
exactly n (1)s and exactly n (−1)s whose partial sums are always positive:
a1 + a2 + · · · + ak ≥ 0∀k1, 2, · · ·, 2n
3
sequences of (n + 1)(+1)s and (n − 1)(−1)s. The number of sequences of
(n + 1)(+1)s and (n − 1)(−1)s. is the number
(2n)! 2n
Un = =
(n + 1)!(n − 1)! n−1
OR
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 mono-
tonic 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
4
"move right" and Y stands for "move up". The following diagrams show
the case n = 4: