Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

While the sequence of Fibonacci numbers entered the public imagination a long time ago, it can be argued that the sequence introduced in this chapter is of greater importance in combinatorics today. Here we will study the Catalan numbers,

$$\displaystyle{1,1,2,5,14,42,429,1430,4862,16796,58786,\ldots,}$$

and a triangle of numbers that refine the Catalan numbers, known as the Narayana numbers. Throughout the book, the Narayana numbers will be shown to possess the same (or nearly the same) properties as the Eulerian numbers.

1 Catalan numbers

The Catalan numbers are denoted C n , n ≥ 0, and are given by the explicit formula \(C_{n} = \frac{1} {n+1}\binom{2n}{n}\). The sequence of Catalan numbers is among the most famous sequences in mathematics. One reason for the ubiquity of the Catalan numbers may be that they satisfy the following quadratic, convolutive recurrence for n ≥ 1:

$$\displaystyle{ C_{n} =\sum _{ i=0}^{n-1}C_{ i}C_{n-1-i}, }$$
(2.1)

and this numeric recurrence is a shadow of natural structural recurrences possessed by many families of combinatorial objects.

From (2.1), we can derive the generating function:

$$\displaystyle{C(z) =\sum _{n\geq 0}C_{n}z^{n},}$$

as follows.

$$\displaystyle\begin{array}{rcl} C(z)& =& \sum _{n\geq 0}C_{n}z^{n} {}\\ & =& 1 + z\sum _{n\geq 1}\sum _{i=0}^{n-1}C_{ i}z^{i}C_{ n-1-i}z^{n-1-i} {}\\ & =& 1 + zC(z)^{2}. {}\\ \end{array}$$

Therefore,

$$\displaystyle{zC(z)^{2} - C(z) + 1 = 0,}$$

and we get

$$\displaystyle{ C(z) = \frac{1 -\sqrt{1 - 4z}} {2z}. }$$
(2.2)

We mention the Catalan numbers because they enumerate an important subset of permutations that we will now describe. Counting these permutations according to descents gives rise to the array of Narayana numbers, a distribution that has many of the same properties as the Eulerian distribution.

2 Pattern-avoiding permutations

The permutations we will study in this chapter are 231-avoiding permutations. These are permutations w such that there is no triple of indices i < j < k such that w(k) < w(i) < w(j). That is, the letters w(i), w(j), and w(k) are not in the same relative positions as 2, 3, and 1. If a permutation w contains such a triple, we say w contains the pattern 231; otherwise, we say w avoids the pattern 231. For example, the permutation 53412 contains the pattern 231 since w(4) < w(2) < w(3) (or since w(5) < w(2) < w(3)), whereas the permutation 32154 avoids 231. The notion of pattern avoidance is easy to understand visually when we draw the graph of a permutation as an array of dots on a square grid. See Figure 2.1.

Fig. 2.1
figure 1

The permutation 53412 contains the pattern 231 in several ways. Two occurrences of the pattern are indicated with dashed line boxes.

Let S n (231) denote the set of permutations in S n avoiding the pattern 231. The 231-avoiding permutations, for n ≤ 5, are listed in Table 2.1.

Table 2.1 The 231-avoiding permutations of n with k descents, 0 ≤ k < n ≤ 5.

We will now show that the 231-avoiding permutations obey a structural recurrence compatible with the numeric recurrence in (2.1). For the moment, let c n  =  | S n (231) | and define c 0 = 1 for convenience. We will show that for n ≥ 1:

$$\displaystyle{c_{n} =\sum _{ i=0}^{n-1}c_{ i}c_{n-1-i},}$$

and hence c n  = C n for all n.

First of all, suppose u is a permutation in S i (231) and v is a permutation of \(\{i + 1,\ldots,n - 1\}\) that avoids 231. Then since every letter of u is smaller than every letter of v, the permutation

$$\displaystyle{w = u(1)\cdots u(i)\,n\,v(1)\cdots v(n - 1 - i),}$$

formed by inserting n between u and v, is a 231-avoiding permutation. There are c i choices for u and \(c_{n-1-i}\) choices for v, so summing over all i, we have

$$\displaystyle{\sum _{i=0}^{n-1}c_{ i}c_{n-1-i} \leq c_{n}.}$$

On the other hand, suppose w ∈ S n is 231-avoiding, with \(w(i + 1) = n\). Let u = w(1)⋯w(i) denote the word to the left of n, and let \(v = w(i + 2)\cdots w(n)\) denote the word to the right of n. Clearly both of these words must avoid the pattern 231. Further, if there was a letter a in u that was greater than a letter b in v, then there would be a 231 pattern formed by the letters a, n, b in w. Hence, every letter of u must be smaller than every letter of v. In other words, u ∈ S i (231) and v is a permutation of \(\{i + 1,\ldots,n - 1\}\) that avoids 231. This shows

$$\displaystyle{c_{n} \leq \sum _{i=0}^{n-1}c_{ i}c_{n-1-i},}$$

and so in light of our earlier discussion, the two quantities must equal each other:

$$\displaystyle{c_{n} =\sum _{ i=0}^{n-1}c_{ i}c_{n-1-i}.}$$

Since the c n satisfy the same recurrence as the Catalan numbers with the same initial values, c n  = C n , and we have the following combinatorial characterization of Catalan numbers. (The first of many, as we will discover later in the chapter.)

Theorem 2.1.

For n ≥ 1,

$$\displaystyle{\vert S_{n}(231)\vert = C_{n}.}$$

While showing that | S n (231) |  = C n recursively is fine, one would like to also have a direct combinatorial proof, e.g., by showing \((n + 1)\vert S_{n}(231)\vert = \binom{2n}{n}\) via a bijection. This is left to Problem 2.2, though we will do something similar in Section 2.4 for another set of objects counted by Catalan numbers.

Before moving on, we remark that there is nothing particularly interesting about the pattern 231 for Theorem 2.1. It is possible to exhibit bijections between the set S n (231) and the set S n (p), where p ∈ { 123, 132, 213, 312, 321} is any pattern of length three. See Problem 2.1.

3 Narayana numbers

Similarly to how we defined the Eulerian numbers, we define the Narayana number N n, k to be the number of permutations in S n (231) with k descents:

$$\displaystyle{N_{n,k} = \vert \{w \in S_{n}(231):\mathop{ \mathrm{des}}\nolimits (w) = k\}\vert.}$$

We have the Narayana numbers shown in Table 2.2.

Table 2.2 The Narayana numbers N n, k , 0 ≤ k < n ≤ 10.

We will show in Section 2.4 that the Narayana numbers are given by the formula

$$\displaystyle{ N_{n,k} = \frac{1} {k + 1}\binom{n}{k}\binom{n - 1}{k}. }$$
(2.3)

It is easily shown that this formula is equivalent to

$$\displaystyle{N_{n,k} =\det \left (\begin{array}{c c} \binom{n - 1}{k}& \binom{n}{k + 1}\\ \\ \binom{n} {k} &\binom{n + 1} {k + 1} \end{array} \right ) = \binom{n - 1}{k}\binom{n + 1}{k + 1}-\binom{n}{k}\binom{n}{k + 1},}$$

and therefore we can extract the triangle of Narayana numbers as 2 × 2 minors of Pascal’s triangle. See Figure 2.2.

Fig. 2.2
figure 2

The triangle of Narayana numbers obtained as determinants.

We will see that the generating function for Narayana numbers (with n fixed) obeys a refined Catalan recurrence. Define

$$\displaystyle{C_{n}(t) =\sum _{w\in S_{n}(231)}t^{\mathop{\mathrm{des}}\nolimits (w)} =\sum _{ k=0}^{n-1}N_{ n,k}t^{k},}$$

with C 0(t): = 1. We will refer to C n (t) as the Narayana polynomial.

If we follow the recursive argument that led to Theorem 2.1 while keeping track of descents, we will get a recurrence for the Narayana polynomials that refines (2.1). In that proof was an implicit bijection between elements w ∈ S n (231) and pairs (u, v) with u ∈ S i (231) (for some i) and v a permutation of \(\{i + 1,\ldots,n - 1\}\) that avoids 231. Namely, we can write

$$\displaystyle{w = u(1)\cdots u(i)\,n\,v(1)\cdots v(n - 1 - i),}$$

as shown in Figure 2.3.

Fig. 2.3
figure 3

The idea behind Equation (2.5).

Since the number of descents of w is one more than the number of descents in u plus the number of descents in v, we get

$$\displaystyle{ \sum _{\begin{array}{c}w\in S_{n}(231) \\ w(i+1)=n \end{array}}t^{\mathop{\mathrm{des}}\nolimits (w)} = tC_{ i}(t)C_{n-1-i}(t). }$$
(2.4)

Of course if \(i = n - 1\) then v is the empty word and the number of descents of w equals only the number of descents of u. This contributes a C n−1(t) term to the distribution, and then summing (2.4) over all i < n − 1 gives the following result, which is similar to Theorem 1.5 for Eulerian polynomials.

Theorem 2.2.

For n ≥ 1,

$$\displaystyle{ C_{n}(t) = C_{n-1}(t) + t\sum _{i=0}^{n-2}C_{ i}(t)C_{n-1-i}(t). }$$
(2.5)

Now that we have the recurrence from Theorem 2.2 it is a straightforward matter to construct the generating function for the Narayana polynomials,

$$\displaystyle{C(t,z):=\sum _{n\geq 0}C_{n}(t)z^{n}.}$$

We have:

$$\displaystyle\begin{array}{rcl} C(t,z)& =& \sum _{n\geq 0}C_{n}(t)z^{n}, {}\\ & =& 1 +\sum _{n\geq 1}\left [C_{n-1}(t) + t\sum _{i=0}^{n-2}C_{ i}(t)C_{n-1-i}(t)\right ]z^{n}, {}\\ & =& 1 + z\sum _{n\geq 1}C_{n-1}z^{n-1} + tz\sum _{ n\geq 1}\sum _{i=0}^{n-2}C_{ i}(t)z^{i}C_{ n-1-i}(t)z^{n-1-i}, {}\\ & =& 1 + zC(t,z) + tzC(t,z)(C(t,z) - 1). {}\\ \end{array}$$

From this we can conclude that C(t, z) satisfies:

$$\displaystyle{tzC(t,z)^{2} - (1 + z(t - 1))C(t,z) + 1 = 0.}$$

Solving for C(t, z) gives:

$$\displaystyle{ C(t,z) = \frac{1 + z(t - 1) -\sqrt{1 - 2z(t + 1) + z^{2 } (t - 1)^{2}}} {2tz}. }$$
(2.6)

The 231-avoiding permutations are one combinatorial interpretation for the Catalan numbers, but there are many, many others. (See the notes at the end of the chapter.) There are three others that we will introduce and discuss now, with more deferred to the problems at the end of the chapter.

4 Dyck paths

A Dyck path of length 2n is a lattice path from (0, 0) to (n, n) consisting of n horizontal steps “East” from (i, j) to (i + 1, j) and n vertical steps “North” from (i, j) to (i, j + 1), such that all points on the path satisfy i ≤ j, i.e., the path, when drawn in the cartesian plane, lies on or above the line y = x. We can either draw the picture of the path or write the list of steps the path follows as a word on the set {N, E}. For example, the path p = NNENNEEENENNNEEE would be drawn as in Figure 2.4.

Fig. 2.4
figure 4

One of the 4862 paths in \(\mathop{\mathrm{Dyck}}\nolimits (8)\).

Let \(\mathop{\mathrm{Dyck}}\nolimits (n)\) denote the set of Dyck paths of length 2n. A peak of a Dyck path p is a point (i, j) such that (i, j − 1) and (i + 1, j) are on p as well. Similarly, a valley of p is a point (i, j) such that (i − 1, j) and (i, j + 1) are on p. In other words, a peak corresponds to a North step followed immediately by an East step, while a valley corresponds to an East step followed immediately by a North step. The number of peaks of p is denoted \(\mathop{\mathrm{pk}}\nolimits (p)\) and the number of valleys is \(\mathop{\mathrm{val}}\nolimits (p)\). For example, the path of Figure 2.4 has four peaks, \(\mathop{\mathrm{pk}}\nolimits (p) = 4\), and three valleys, \(\mathop{\mathrm{val}}\nolimits (p) = 3\). It is easy to see that for \(p \in \mathop{\mathrm{Dyck}}\nolimits (n)\), \(1 \leq \mathop{\mathrm{pk}}\nolimits (p) \leq n\), while \(0 \leq \mathop{\mathrm{val}}\nolimits (p) =\mathop{ \mathrm{pk}}\nolimits (p) - 1 \leq n - 1\). The Dyck paths for n ≤ 4 are shown in Table 2.3, grouped according to the number of peaks in the path.

Table 2.3 The paths in \(\mathop{\mathrm{Dyck}}\nolimits (n)\), n ≤ 4, grouped by number of peaks, k.

At the end of this section we will provide a bijection between Dyck paths and 231-avoiding permutations, but first we will give bijective proofs that there are Catalan-many Dyck paths and that counting Dyck paths according to the number of peaks gives rise to the Narayana numbers.

4.1 Counting all Dyck paths

The Catalan number C n can be written as a difference of two binomial coefficients:

$$\displaystyle{C_{n} = \frac{1} {n + 1}\binom{2n}{n} = \binom{2n}{n} -\binom{2n}{n - 1}.}$$

Notice that there are a total of \(\binom{2n}{n}\) lattice paths from (0, 0) to (n, n) since we have 2n steps and exactly n of them must be N steps. Similarly, we can think of \(\binom{2n}{n - 1}\) as counting the paths from (0, 0) to \((n + 1,n - 1)\). Thus to give a direct combinatorial proof that \(\vert \mathop{\mathrm{Dyck}}\nolimits (n)\vert = C_{n}\), we will write \(\binom{2n}{n} = C_{n} + \binom{2n}{n - 1}\) and describe a bijection

$$\displaystyle{\left \{\begin{array}{c} \mbox{ lattice paths from}\\ (0, 0)\mbox{ to } (n, n) \end{array} \right \}\longleftrightarrow \mathop{\mathrm{Dyck}}\nolimits (n)\bigcup \left \{\begin{array}{c} \mbox{ lattice paths from}\\ (0, 0)\mbox{ to } (n + 1, n -1) \end{array} \right \}.}$$

The idea here is called the reflection principle. Let p be a path from (0, 0) to (n, n). If p never passes below the line y = x, it is a Dyck path. If it does go below this line, say the reflection point of p is the first time the path hits the line \(y = x - 1\). The reflection of p, r(p), is the path obtained by swapping E for N on every step after the reflection point. For example, if

$$\displaystyle{p = NNEEE\vert NNENEEENNEN,}$$

then

$$\displaystyle{r(p) = NNEEE\vert EENENNNEENE,}$$

is its reflection. The vertical bar here is used to mark the reflection point. In terms of words on {N, E}, this is simply the first time, in reading from left to right, that we have more letters E than N. This example is drawn in Figure 2.5.

Fig. 2.5
figure 5

The reflection of a lattice path.

The reflection map is easily reversed (the reflection point is well defined for both sets of paths), so the paths from (0, 0) to (n, n) that go below the line y = x are in bijection with all the paths from (0, 0) to \((n + 1,n - 1)\). This shows

$$\displaystyle{\vert \mathop{\mathrm{Dyck}}\nolimits (n)\vert = \binom{2n}{n} -\binom{2n}{n - 1} = C_{n},}$$

as desired.

4.2 Counting Dyck paths by peaks

Earlier we claimed the Narayana numbers are given by

$$\displaystyle{N_{n,k} = \frac{1} {k + 1}\binom{n}{k}\binom{n - 1}{k}.}$$

We will now show that

$$\displaystyle{\vert \{p \in \mathop{\mathrm{Dyck}}\nolimits (n):\mathop{ \mathrm{pk}}\nolimits (p) = k + 1\}\vert = \frac{1} {k + 1}\binom{n}{k}\binom{n - 1}{k}.}$$

We will subsequently show that

$$\displaystyle{\vert \{p \in \mathop{\mathrm{Dyck}}\nolimits (n):\mathop{ \mathrm{pk}}\nolimits (p) = k + 1\}\vert = \vert \{w \in S_{n}(231):\mathop{ \mathrm{des}}\nolimits (w) = k\}\vert,}$$

justifying the formula for the Narayana numbers.

Our goal will be to show

$$\displaystyle{(k + 1)\vert \{p \in \mathop{\mathrm{Dyck}}\nolimits (n):\mathop{ \mathrm{pk}}\nolimits (p) = k + 1\}\vert = \binom{n}{k}\binom{n - 1}{k}.}$$

To do so, we will exhibit a certain set \(\mathcal{P}\) of \(\binom{n}{k}\binom{n - 1}{k}\) lattice paths and show that it can be partitioned into equivalence classes. We will then show each equivalence class has k + 1 elements and contains exactly one path that corresponds to a Dyck path with k + 1 peaks.

Define \(\mathcal{P}\) to be the set of lattice paths from (0, −1) to (n, n) that begin with a North step, end with an East step, and have exactly k + 1 peaks, or k valleys. Each such path can be reconstructed from the coordinates of its valleys: (x 1, y 1), (x 2, y 2), , (x k , y k ). There are \(\binom{n}{k}\) ways to choose the vertical coordinates: 0 ≤ y 1 < y 2 < ⋯ < y k  ≤ n − 1 in such a path, and \(\binom{n - 1}{k}\) ways to choose the horizontal coordinates: 1 ≤ x 1 < x 2 < ⋯ < x k  ≤ n − 1. Hence \(\vert \mathcal{P}\vert = \binom{n}{k}\binom{n - 1}{k}\). See Figure 2.6.

Fig. 2.6
figure 6

A path from (0, −1) to (n, n) with initial North step, final East step, and k valleys. Here \(n = 8,k = 4\).

On the other hand, we can also characterize a path in \(\mathcal{P}\) by a sequence of k + 1 valley-less paths. In Figure 2.6, these valley-less paths are NNNEEE, NNE, NEE, NNE, and NE and we can write

$$\displaystyle{p = (NNNEEE)(NEE)(NNE)\bullet (NNE)(NE).}$$

An important marker in our path (indicated in the word with a \(\bullet\)) will be the rightmost valley (x i , y i ) for which y i x i  < 0 is minimized. In terms of the {N, E}-word for the path, this is the rightmost position where the letters E most outnumber the letters N. If there are always more letters N than E, we put the marker on the far left.

We will now lump together these lattice paths into equivalence classes given by cyclically permuting the valley-less paths. Let [p] denote the class of p. To continue our example,

$$\displaystyle{[p] = \left \{\begin{array}{c} (NNNEEE)(NEE)(NNE)\bullet (NNE)(NE) \\ (NE)(NNNEEE)(NEE)(NNE)\bullet (NNE) \\ \bullet (NNE)(NE)(NNNEEE)(NEE)(NNE) \\ (NNE)\bullet (NNE)(NE)(NNNEEE)(NEE) \\ (NEE)(NNE)\bullet (NNE)(NE)(NNNEEE) \end{array} \right \}.}$$

Notice that the marker gets cyclically permuted along with the valley-less paths. (This is because the path from the marker onward always has more letters N than E when reading from left to right.) Hence, the marker uniquely identifies the cyclic permutation of p and the class [p] must contain k + 1 distinct paths. Moreover, there is always one path that has the marker on the far left. This path has all its valleys satisfying y i x i  ≥ 0, and hence (if we ignore the initial North step) it is a Dyck path. The cyclic action is shown in pictures in Figure 2.7.

Fig. 2.7
figure 7

An equivalence relation on lattice paths for n = 4, \(k + 1 = 3\) peaks.

Hence, we can conclude

$$\displaystyle\begin{array}{rcl} (k + 1)\vert \{p \in \mathop{\mathrm{Dyck}}\nolimits (n):\mathop{ \mathrm{pk}}\nolimits (p) = k + 1\}\vert & =& \vert \mathcal{P}\vert, {}\\ & =& \binom{n}{k}\binom{n - 1}{k}, {}\\ \end{array}$$

as desired.

4.3 A bijection with 231-avoiding permutations

We can construct a playful bijection between Dyck paths and 231-avoiding permutations as follows. First draw a permutation as an array of nonattacking rooks on a chessboard, i.e., if w(i) = j, put a rook in column i (from left to right), row j (from bottom to top). Then shade in all squares on the board that either contain a rook, or are weakly to the left and weakly above a square with a rook. The boundary of the shaded region is a path that stays below or on the line y = x, so it is the mirror image of a Dyck path. Let \(\psi: S_{n}(231) \rightarrow \mathop{\mathrm{Dyck}}\nolimits (n)\) denote this bijection. See Figure 2.8.

Fig. 2.8
figure 8

Constructing a Dyck path from a 231-avoiding permutation.

The pre-image of a path p is constructed as follows. First, draw the mirror-image of path p, and place rooks, from right to left, in the lowest unoccupied row that is above the path, as shown in Figure 2.9.

Fig. 2.9
figure 9

Constructing a 231-avoiding permutation from a Dyck path.

From this construction, we can see that each peak of the path p (where we placed the corner rooks in ψ −1) corresponds to a maximal decreasing run w(i) > w(i + 1) > ⋯ > w(j) of \(\psi ^{-1}(p) = w\). The number of maximal decreasing runs is necessarily \(n -\mathop{\mathrm{des}}\nolimits (w)\), and so we have the following.

Proposition 2.1.

For any w ∈ S n (231), the bijection ψ satisfies

$$\displaystyle{\mathop{\mathrm{des}}\nolimits (w) = n - 1 -\mathop{\mathrm{val}}\nolimits (p) = n -\mathop{\mathrm{pk}}\nolimits (p).}$$

Hence,

$$\displaystyle{\vert \{w \in S_{n}(231):\mathop{ \mathrm{des}}\nolimits (w) = k\}\vert = \vert \{p \in \mathop{\mathrm{Dyck}}\nolimits (n):\mathop{ \mathrm{pk}}\nolimits (p) =\mathop{ \mathrm{val}}\nolimits (p) + 1 = k + 1.\}\vert.}$$

This justifies the formula for the Narayana numbers \(N_{n,k} = \frac{1} {k+1}\binom{n}{k}\binom{n - 1}{k}\).

We finish the chapter with brief discussion of two other popular combinatorial models counted by the Narayana numbers.

5 Planar binary trees

A planar binary tree is a rooted tree such that every interior node has precisely two successors. If there are n internal nodes, this means there are n + 1 leaves. Let PB(n) denote the number of planar binary trees with n internal nodes. Table 2.4 shows the planar binary trees with at most n = 4 internal nodes, grouped according to the number of left-pointing leaves.

Table 2.4 Planar binary trees grouped according to the number of left-pointing leaves.

The planar binary trees are combinatorial representations for ways to evaluate an associative product of n + 1 elements. For example, if n = 2, we have ((xy)z) and (x(yz)) as the two possible ways to evaluate the product xyz, and these would correspond to the following trees:

where we labeled the leaves by x, y, z to indicate the natural bijection. As a larger example,

Planar binary trees can be shown to satisfy the Catalan recurrence (see Problem 2.3), but one can also give a direct bijection with 231-avoiding permutations that takes left-pointing leaves to descents, as suggested by the example in Figure 2.10.

Fig. 2.10
figure 10

A correspondence between planar binary trees and 231-avoiding permutations.

Proof of the following proposition is deferred to Problem 2.4.

Proposition 2.2.

There is a bijection between PB(n) and S n (231) such that planar binary trees with k + 1 left-pointing leaves are mapped to 231-avoiding permutations with k descents.

In other words, the Narayana numbers count planar binary trees according to left-pointing leaves:

$$\displaystyle{N_{n,k} = \vert \{\tau \in \mbox{ PB}(n):\tau \mbox{ has $k + 1$ left-pointing leaves}\}\vert.}$$

6 Noncrossing partitions

A noncrossing partition π = { R 1, R 2, , R k }, is a set partition of [n], such that if \(\{a,c\} \subseteq R_{i}\) and \(\{b,d\} \subseteq R_{j}\), with 1 ≤ a < b < c < d ≤ n, then i = j. That is, two pairs of numbers from distinct blocks cannot be interleaved. Let NC(n) denote the set of all noncrossing partitions of [n]. We will often draw partitions as graphs with vertex set [n], e.g.,

Notice how the notion of a “crossing” manifests itself visually in these diagrams. So that our pictures are canonical, we will only have arcs between consecutive elements in the blocks of the partition. For example, if i < j < k are in the same block, we would draw

but not

Table 2.5 shows all the noncrossing partitions on at most 4 elements, grouped according to the number of blocks.

Table 2.5 Noncrossing partitions on up to four elements, grouped according to number of blocks.

We can define a bijection ϕ: S n (231) → NC(n) by mapping the decreasing runs of a permutation to blocks in a partition. See Figure 2.11.

Fig. 2.11
figure 11

The decreasing runs of a 231-avoiding permutation form a noncrossing partition.

Moreover, we can see that the number of decreasing runs of w, i.e., the number of blocks in π, is \(n -\mathop{\mathrm{des}}\nolimits (w)\).

Proposition 2.3.

For any w ∈ S n (231), the bijection ϕ satisfies

$$\displaystyle{\mathop{\mathrm{des}}\nolimits (w) = n -\vert \phi (w)\vert.}$$

Hence,

$$\displaystyle{\vert \{w \in S_{n}(231):\mathop{ \mathrm{des}}\nolimits (w) = k\}\vert = \vert \{\pi \in \mathrm{NC}(n): \vert \pi \vert = n - k\}\vert.}$$

In other words, the Narayana numbers count noncrossing partitions by the number of blocks:

$$\displaystyle{N_{n,k} = \vert \{\pi \in \mbox{ NC}(n): \vert \pi \vert = n - k\}\vert.}$$

Verification of this claim is left to Problem 2.5.

Notes

Despite the name, it seems that it was Euler who first studied the Catalan numbers, which he defined as the number of ways to triangulate a convex polygon. (See Problem 2.6.) There is correspondence between Euler and Christian Goldbach from the middle of the 18th century that shows Euler knew the formula for the Catalan number generating function given in (2.2). Johann Segner was the first to publish a paper about these numbers, in which he proves the recurrence relation from (2.1). The Catalan numbers are named for Eugène Charles Catalan, a 19th century mathematician who wrote several papers about what he knew as the “Segner numbers.” It was Catalan who proved that \(C_{n} = \binom{2n}{n} -\binom{2n}{n - 1}\).

Many famous mathematicians have studied the Catalan numbers, in many different guises. One can find more than two hundred different combinatorial interpretations for Catalan numbers in a book of Richard Stanley, with historical notes by Igor Pak [155]. See also [153, Problem 6.19].

The Narayana numbers are named for Tadepalli Narayana, who wrote several papers on them in the mid-twentieth century, including [110]. In this paper he essentially counts Dyck paths according to the number of peaks. Our method of counting Dyck paths can be found in the work of Robert Sulanke from 1993 [160].

Problems

2.1. Suppose p is any pattern of length three, i.e., p ∈ { 123, 132, 213, 231, 312, 321}. Show that the Catalan numbers count the permutations of length n that avoid p.

2.2. Find a bijective proof of the fact that

$$\displaystyle{(n + 1)C_{n} = \binom{2n}{n}.}$$

2.3. Let b n  =  | PB(n) | denote the number of planar binary trees with n internal nodes. Show that b n  = C n by describing a structural recurrence on the trees that yields the numeric recurrence

$$\displaystyle{b_{n} =\sum _{ i=0}^{n-1}b_{ i}b_{n-1-i},}$$

with b 0: = 1.

2.4. Prove Proposition 2.2. That is, construct a bijection between PB(n) and S n (231) such that trees with k + 1 left-pointing leaves are mapped to 231-avoiding permutations with k descents.

2.5. Prove Proposition 2.3. That is, show that the map ϕ suggested in Figure 2.11 is indeed a bijection from S n (231) to NC(n) that takes decreasing runs to blocks of a noncrossing partition.

2.6 (Triangulations). Show that C n counts the number of dissections of a convex (n + 2)-gon into n triangles, using only lines from vertices to vertices. For example, when n = 3 there are five such triangulations of a pentagon:

2.7 (Nonnesting partitions). Show that C n counts the number of nonnesting partitions of [n]. A nonnesting partition is a set partition π = { R 1, , R k } such that if \(\{a,d\} \subseteq R_{i}\) and \(\{b,c\} \subseteq R_{j}\) with a < b < c < d, then R i  = R j . Here are the fourteen nonnesting partitions of {1, 2, 3, 4}:

Hint: Create a bijection between noncrossing and nonnesting partitions. Conclude that counting nonnesting partitions by number of blocks gives the Narayana numbers.

2.8 (Noncrossing matchings, balanced parenthesizations). Show that C n counts the number of noncrossing matchings on [2n]. A noncrossing matching is a noncrossing partition with all the blocks having size two. For example, here are the five noncrossing matchings on {1, 2, 3, 4, 5, 6}:

The noncrossing matchings can also be thought of as n pairs of parentheses, by mapping the beginning of an arc to a left parenthesis, “(”, and mapping the end of an arc to a right parenthesis, “)”. The five matchings above would then be:

$$\displaystyle{()()(),()(()),(())(),(()()),((())).}$$

A string of n pairs of parentheses that never has more right parentheses than left when reading from left to right is called a balanced parenthesization.

Refined counting: Describe a statistic for noncrossing matchings so that the distribution of this statistic gives the Narayana numbers.

2.9 (Standard Young tableaux). Show that C n counts the number of 2 by n standard Young tableaux. A Young tableau is a two dimensional array of numbers that increases across rows and down columns. A standard Young tableau contains all distinct integers, from 1 to the number of entries. The fourteen 2 by 4 tableaux are:

Refined counting: Describe a statistic for Young tableaux so that the distribution of this statistic gives the Narayana numbers.

2.10 (Motzkin paths). A Motzkin path of length n is a lattice path from (0, 0) to (n, n) that never passes below the line y = 0 and uses only “up” steps from (i, j) to \((i + 1,j + 1)\), “down” steps from (i, j) to \((i + 1,j - 1)\), and “horizontal” steps from (i, j) to (i + 1, j). For example, here are the nine Motzkin paths of length four:

(Note that Motzkin paths that contain no horizontal steps are in bijection with Dyck paths.) Let M n denote the number of Motzkin paths of length n, with M 0 = 1. Here are the first few values of M n , sometimes called Motzkin numbers:

$$\displaystyle{1,1,2,4,9,21,51,127,323,835,2188,5798,\ldots.}$$

Let \(M(z) =\sum _{n\geq 0}M_{n}z^{n}\). Show that

$$\displaystyle{M(z) = \frac{1 - z -\sqrt{1 - 2z - 3z^{2}}} {2z^{2}}.}$$

Hint: each Motzkin path is built from a Dyck path by inserting horizontal steps between the steps of the Dyck path. Use this fact to show

$$\displaystyle{M(z) = \frac{1} {1 - z}C\left ( \frac{z^{2}} {(1 - z)^{2}}\right ),}$$

where C(z) is the Catalan generating function. The formula for M(z) now follows from Equation (2.2).

2.11. Show that the Motzkin number M n also counts the number of noncrossing partial matchings of [n]. In other words, M n is the number of noncrossing partitions of [n] for which the blocks have size one or two.

2.12 (Schröder paths). A Schröder path of size n is a lattice path from (0, 0) to (n, n) that never passes below the line y = x and uses only steps “North” from (i, j) to (i, j + 1), “East” from (i, j) to (i + 1, j) and “Northeast” from (i, j) to \((i + 1,j + 1)\). For example, here are the six Schröder paths of size 2:

(Note that Schröder paths with no northeast steps are Dyck paths.) Let R n denote the number of Schröder paths of size n, with R 0 = 1. We call the number R n a Schröder number. Here are the first few values for R n :

$$\displaystyle{1,2,6,22,90,394,1806,8558,41586,206098,\ldots .}$$

Let \(R(z) =\sum _{n\geq 0}R_{n}z^{n}\). Show that

$$\displaystyle{R(z) = \frac{1 - z -\sqrt{1 - 6z + z^{2}}} {2z}.}$$

Hint: Just as with Motzkin paths, each Schröder path can be built from a Dyck path by inserting northeast steps between the steps of the Dyck path. Use this fact to show

$$\displaystyle{R(z) = \frac{1} {1 - z}C\left ( \frac{z} {(1 - z)^{2}}\right ),}$$

where C(z) is the Catalan generating function. The formula then follows from Equation (2.2).

2.13 (Small Schröder numbers). Show the Schröder numbers (apart from R 0 = 1) are always even. You can do this by manipulating the generating function in Problem 2.12, but try to explain it combinatorially. Hint: find a bijection between the Schröder paths with a peak on the line \(y = x + 1\) and those without. The number of Schröder paths with no peak on the line \(y = x + 1\) are called small Schröder numbers, denoted r n . Here are the first few values of the small Schröder numbers:

$$\displaystyle{1,1,3,11,45,197,903,4279,20793,103049,\ldots.}$$

Given that r 0 = 1 and \(r_{n} = R_{n}/2\) for n ≥ 1, use the generating function found in Problem 2.12 to conclude that

$$\displaystyle{\sum _{n\geq 0}r_{n}z^{n} = \frac{1 + z -\sqrt{1 - 6z + z^{2}}} {4z}.}$$

2.14. Show that the small Schröder numbers r n count the number of valid parenthesizations of n + 1 symbols with at most n − 1 pairs of parentheses. Parentheses around the entire expression are not allowed, and each pair of parentheses must enclose at least two sub-expressions. For example, here are the eleven parenthesizations of four symbols:

$$\displaystyle{((wx)y)z\quad (w(xy))z\quad (wx)(yz)\quad w((xy)z)\quad w(x(yz))}$$
$$\displaystyle{(wx)yz\quad (wxy)z\quad w(xy)z\quad w(xyz)\quad wx(yz)}$$
$$\displaystyle{wxyz}$$

Can you interpret these parenthesizations in terms of planar rooted trees of some kind?