PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: Very high
[parent] things counted by the Catalan numbers (Example)

The Catalan numbers count literally hundreds of interesting things. See Richard Stanley's web site for a list. Here are a few, including the examples given in the parent article. In each case, the item given is counted by $C_n$ .

  1. The number of Dyck paths of length $2n$ , or, equivalently, paths from $(0,0)$ to $(n,n)$ in the Euclidean plane with steps $(1,0)$ or $(0,1)$ .

    See the articles on the ballot numbers and on the generating function for the Catalan numbers for a discussion of this fact.

  2. The number of ways to arrange $n$ pairs of matching parentheses, e.g.:
    $\displaystyle ()$    
    $\displaystyle (())$ $\displaystyle ()()$    
    $\displaystyle ((()))$ $\displaystyle (()())$ $\displaystyle ()(())$ $\displaystyle (())()$ $\displaystyle ()()()$    

    There is an obvious bijection between $n$ pairs of matching parentheses and Dyck paths of length $2n$ : each left parenthesis corresponds to an up step, and each right parenthesis to a down step. The fact that a Dyck path never goes below the $x$ -axis corresponds to the statement that the parentheses match (if an arrangement of parentheses is unmatched, it means exactly that at some point, scanning from left to right, there are more right than left parentheses, which would mean that the corresponding path would drop below the $x$ -axis).

  3. The number of rooted complete binary trees with exactly $n+1$ leaves. (A rooted binary tree is complete if every vertex has either zero or two children).

    A simple bijection between such trees and Dyck paths with length $2n$ is constructed as follows. Given a rooted complete binary tree, perform a preorder traversal of the tree. For each step away from the root on a left child, generate an up step in the Dyck path. For each step towards the root on a left child, generate a down step in the Dyck path. Ignore steps on right children. Since the binary tree is complete, it is clear that one can reconstruct the binary tree from just the information about the left children that is encoded in the Dyck path. Thus, for example,

    \begin{displaymath}\mbox{\xy <0cm,.3cm>\entrymodifiers={[o]}\xymatrix @R1pc@C1pc... ...]\ \bullet & & & & \bullet & & \bullet & & \bullet } \endxy} \end{displaymath}

  4. Arrangements of the numbers $1,2,\ldots,2n$ in a $2\times n$ rectangle so that the numbers in each row and column are increasing.

    These are bijective with Dyck paths of length $2n$ as follows: given such a rectangle, put an up step in the Dyck path for each element on the top row, and a down step for each element in the bottom row. This has an obvious inverse. It's easy to see that each Dyck path generates a different arrangement of elements in the rectangle, and a few moments' thought leads to the conclusion that each such rectangle indeed leads to a Dyck path (never drops below the $x$ -axis). Thus, for example, if $n=3$ ,

    \begin{displaymath} \begin{tabular}{\vert c\vert c\vert c\vert} \hline $1$&$2$&$... ...] \ar@{-}[rd]\ \bullet & & & & \bullet & & \bullet } \endxy} \end{displaymath}

    Note that these are standard Young tableaux in two dimensions. Tables with $3$ rows, such as

    $1$ $2$ $5$
    $3$ $4$  
    $6$ $7$  
    correspond to paths in $3$ dimensions staying inside a particular part of an octant, and similarly for higher dimensions. Young tableaux are related to representations of $S_n$ .
  5. Sequences $1\leq a_1\leq a_2\leq \cdots\leq a_n$ of integers with $a_i\leq i$ .

    There is a bijection between such sequences and paths from $(1,1)$ to $(n+1,n+1)$ that stay weakly below the line $y=x$ , and the latter are bijective with paths from $(0,0)$ to $(n,n)$ staying weakly below the line $y=x$ , which are counted by $C_n$ . Given such a sequence, the number of $a_i$ that are equal to $k$ gives the number of horizontal steps in the path along the line $y=k$ . The fact that the $a_i$ are in nondecreasing order means that each possible path can be so represented in only one way; the fact that $a_i\leq i$ means that the path stays below $y=x$ . For example, if $n=3$ ,

    \begin{displaymath} \begin{tabular}{ccc} $1$&$1$&$3$ \end{tabular}\qquad\longlef... ...\ \bullet \ar@{-}[r] & \bullet \ar@{-}[r] &\bullet } \endxy} \end{displaymath}

  6. Sequences $a_1,a_2,\ldots,a_n$ of integers such that $a_1=0$ and $0\leq a_{i+1}\leq a_i+1$ .

    There is a bijection between such sequences and Dyck paths of length $2n$ . Such a Dyck path has exactly $n$ up steps; the integers $a_i$ specify the starting level of each step. This uniquely determines the path. Thus, if $a_i=0$ , the up step starts from the $x$ -axis, while if $a_i=1$ , it starts one unit above the $x$ -axis. Again, if $n=3$ , then for example

    \begin{displaymath} \begin{tabular}{ccc} $0$&$1$&$0$ \end{tabular}\qquad\longlef... ...] \ar@{-}[rd]\ \bullet & & & & \bullet & & \bullet } \endxy} \end{displaymath}

  7. Sequences $b_1, b_2,\ldots,b_{n-1}$ of integers such that $b_i\leq 1$ and all partial sums are nonnegative.

    There is a bijection between these sequences of $b_i$ and the sequences $a_i$ of the previous part. Given a sequence $a_1,\ldots,a_n$ with $a_1=0$ , $0\leq a_{i+1}\leq a_i+1$ , define $b_i=a_{i+1}-a_i$ . Conversely, given a sequence $b_0,\ldots,b_{n-1}$ , define $a_i=a_{i-1}+b_{i-1}, i=1,\ldots,n$ . This is obviously a bijection.

  8. A Motzkin path is a path with steps $(1,-1), (1,0), (1,1)$ that starts at $(0,0)$ , ends on the $x$ -axis, and never goes below the $x$ -axis. A two-colored Motzkin path is a Motzkin path in which each level step is colored either red or blue. Motzkin paths ending at $(n-1,0)$ are counted by $C_n$ .

    Define a map from two-colored Motzkin paths ending at $(n-1,0)$ to Dyck paths ending at $(2n,0)$ as follows. Each Dyck path always starts with an up step and ends with a down step. In between, there are $2n-2$ steps. Map the step from $i$ to $i+1$ in the Motzkin path to two steps in the Dyck path, from $2i-1$ to $2i+1$ , as follows:

    \begin{displaymath} \mbox{\xy <0cm,.4cm>\entrymodifiers={[o]}\xymatrix @R1pc@C1p... ...let \ar@{-}[rd]\ &\bullet \ar@{-}[rd]\ &&\bullet } \endxy} \end{displaymath}

    \begin{displaymath} \mbox{\entrymodifiers={[o]}\xymatrix @R1pc@C1pc{ \bullet \ar... ...bullet\ar@{-}[dr] & & \bullet\ar@{-}[dl]\ &\bullet } \endxy} \end{displaymath}

    Define a map from Dyck paths to two-colored Motzkin paths as follows: ignore the initial and final steps in the Dyck path, and map each successive two-step sequence back to a two-colored Motzkin path by the inverse of this mapping.

    It is clear that each map is injective, and that the two are inverses, so they are bijections. But Dyck paths of length $2n$ are counted by $C_n$ .

  9. The number of ways a convex polygon of $n+2$ sides can be split into $n$ triangles.

    There is a bijection between such decompositions of a polygon and rooted complete binary trees with $n+1$ leaves (and thus $2n+1$ total vertices). Given a polygon with $n+2$ sides, fix a particular side $s$ , which will be the root of the complete binary tree. For each decomposition into triangles, the vertices of the corresponding tree will be the $2n+1$ edges of the decomposition. The left child of $s$ is the counterclockwise edge from $s$ ; its right child is its clockwise edge. Those left and right children then form a root edge for the smaller polygons; continue this process iteratively. It is clear that this results in a complete rooted binary tree with $n+1$ leaves (the leaves correspond to the remaining $n+1$ edges of the original polygon), and it is easy to see that this is a bijection by figuring out how to reconstruct a decomposition from a tree. For example, for $n=2$ , we have

    \begin{displaymath}\mbox{\xy <0cm,.6cm>\entrymodifiers={[o]}\xymatrix @R1pc@C1pc... ...ullet\ar@{-}[ld]\ar@{-}[rd]\ & \bullet & & \bullet } \endxy} \end{displaymath}

  10. The number of configurations of $n$ nonintersecting chords joining, in pairs, $2n$ points on the circumference of a circle.

    Given any collection of chords, label the points sequentially around the circle from $1$ to $2n$ , break the circle between $2n$ and $1$ , and represent it as a straight line. Since the chords are nonintersecting, we get a diagram with noncrossing arcs from the line to itself. Diagrams with such noncrossing arcs are obviously equivalent to either Dyck paths or to paired parentheses, both of which are counted by $C_n$ .




"things counted by the Catalan numbers" is owned by rm50.
(view preamble | get metadata)

View style:

See Also: Dyck language


This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: equivalent, arcs, diagram, straight, represent, label, collection, circle, circumference, chords, configurations, complete, right child, edges, fix, vertices, decompositions, triangles, sides, polygon, convex, injective, mapping, map, conversely, partial sums, unit, level, order, line, integers, sequences, representations, Young tableaux, octant, dimensions, standard Young tableaux, conclusion, inverse, element, bijective, increasing, column, row, rectangle, information, generate, left child, root, preorder traversal, trees, simple, children, vertex, binary tree, complete binary trees, mean, point, right, bijection, obvious, matching, generating function for the Catalan numbers, ballot numbers, Euclidean plane, paths, length, Dyck paths, number, parent, hundreds, Catalan numbers
There is 1 reference to this entry.

This is version 2 of things counted by the Catalan numbers, born on 2007-12-10, modified 2007-12-10.
Object id is 10119, canonical name is ExampleOfCatalanNumbers.
Accessed 1149 times total.

Classification:
AMS MSC05A10 (Combinatorics :: Enumerative combinatorics :: Factorials, binomial coefficients, combinatorial functions)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add example | add (any)