Lecture 1: Catalan Numbers and Recurrence Relations
Lecture 1: Catalan Numbers and Recurrence Relations
1 Catalan Numbers[2]
1.1 Introduction
In combinatorial mathematics, the Catalan numbers form a sequence of natural numbers
that occur in various counting problems, often involving recursively-defined objects. They
are named after the Belgian mathematician Eugne Charles Catalan.
The nth Catalan number is given directly in terms of binomial coefficients by:
1 2n 2n!
Cn = . = ∀n ≥ 0 (1)
n+1 n (n + 1)!n!
The first Catalan numbers for n = 0, 1, 2, 3, are 1, 1, 2, 5, 14, 42, 132, 429, 1430,
4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 35357670, 129644790, 477638700,
1767263190, 6564120420, 24466267020, 91482563640, 343059613650, 1289904147324,.....
1-1
Figure 1: The green portion of the path is flipped. The old grid is n x n. The new grid is
(n - 1) x (n + 1).
Since every monotonic path in the (n − 1) (n + 1) grid is of length 2n and every such
path involves n + 1 vertical edges in any order, the number of these paths is equal to:
2n
(2)
n+1
Therefore, to calculate the number of monotonic n n paths which do not cross the diagonal,
we need to subtract this from the total number of monotonic n n paths, so we finally obtain
2n 2n
− (3)
n n+1
1-2
Figure 2: A path with exceedance 5..
monotonic path whose exceedance is not zero, then we may apply the following method to
construct a new path whose exceedance is one less than the one we started with.
1. Starting from the bottom left, follow the path until it first travels above the diagonal.
2. Continue to follow the path until it touches the diagonal again. Denote by X the first
such edge that is reached.
3. Swap the portion of the path occurring before X with the portion occurring after X.
1-3
step starting on the diagonal. This implies that the number of paths of exceedance n is
equal to the number of paths of exceedance n 1, which is equal to the number of paths of
exceedance n 2, and so on, down to zero. In other words, we have split up the set of all
monotonic paths into n + 1 equally sized classes, corresponding to the possible exceedances
between 0 and n. Since there are:
2n
(4)
n
1-4
2 Linear Recurrence Solutions with constant coefficients
[3] Let us suppose an , an−1 , an−1 ..........an−k are the values of the relation at n, n-1 upto n
- k, A linear recurrence relation of degree with coefficients is a recurrence relation of the
form:
A homogeneous solution of linear equation with constant coefficient is of the form Aαr
which is called the characteristic root and A is a constant which are determined by boundary
conditions, since Aαr is a root,it will satisfy the homogeneous equation.
=⇒
c0 Aαn + c1 Aαn−1 ......ck Aα(n−k) = 0 (8)
so, α is a characteristic root for this equation.
e .g.
an − an−1 − an−1 (9)
If the roots of the solution are not all distinct,α1 = α is a root with multiplicity m. The
corresponding homogeneous equation
1-5
becomes the following :
as the derivative of the original root becomes the another solution.Now multiplying all
the terms of the equation by α :
Now, A(n−1) n α(n−1) is a solution for this homogeneous equation. Similarly we will
have solutions for other derivatives, as follows :
A(n−2) n2 αn A(n−3) n3 αn
References
[1] Rukavika Joseph. On generalized Dyck paths. http://www.emis.de/journals/EJC/
Volume_18/PDF/v18i1p40.pdf, [Online, accessed 28 August, 2014].
1-6