Dyck paths

# 1. Definition

A **Dyck path** of size $n$ is

a lattice path from $(0,0)$ to $(2n,0)$ consisting of $n$ up steps of the form $(1,1)$ and $n$ down steps of the form $(-1,1)$ which never goes below the x-axis $y=0$.

Clearly equivalently, one can see a Dyck path as

a lattice path from $(0,0)$ to $(n,n)$ consisting of $n$ up steps of the form $(1,0)$ and $n$ down steps of the form $(0,1)$ which never goes below the diagonal $y=x$.

A Dyck path can also be identified with its **Dyck word** being $(0,1)$-sequence with $1$'s representing up steps and $0$'s representing down steps. Denote all Dyck paths of size $n$ by $\mathfrak{D}_n$.

# 2. Examples

$\mathfrak{D}_1 = \{ [1,0] \}$

$\mathfrak{D}_2 = \{ [1,0,1,0],[1,1,0,0] \}$

$\mathfrak{D}_3 = \{[1,0,1,0,1,0], [1,1,0,0,1,0], [1,1,1,0,0,0], [1,0,1,1,0,0], [1,1,0,1,0,0] \}$

$\mathfrak{D}_4 = $

# 3. Properties

The cardinality of $\mathfrak{D}_n$ is the $n^{th}$ Catalan number $\operatorname{Cat}_n = \frac{1}{n+1} \binom{2n}{n}$. This can for example be seen using the reflection principle.

A Dyck path $D$ of size $n+1$ can be decomposed into a Dyck path $D_1$ of size $k$ and a Dyck path $D_2$ of size $n-k$, where

$(2k+2,0)$ is the first touch point of $D$ at the x-axis,

$D_1$ is the prefix of $D$ from $(1,1)$ to $(2k-1,1)$ never going below the line $y=1$, and where

$D_2$ is the suffix of $D$ from $(2k,0)$ to $(2n,0)$.

This yields the recurrence $\operatorname{Cat}_{n+1} = \sum_{k=1}^n \operatorname{Cat}_k \operatorname{Cat}_{n-k}$.

# 4. Remarks

There is a natural extension of Dyck paths to $m$-Dyck paths which can be seen as lattice paths from $(0,0)$ to $(mn,n)$ that never go below the diagonal $y = \frac{1}{m} x$. The number of $m$-Dyck paths is given by the

**Fuss-Catalan number**$C_n^{(m)} = \frac{1}{mn+1} \binom{(m+1)n}{n}$ [Kra89].Dyck paths and $m$-Dyck paths can be seen as

*type A*instances of a more general combinatorial object for root systems, namely positive chambers in the**(generalized) Shi arrangement**[Ath04].

# 5. Statistics

We have the following **47 statistics** in the database:

# 6. Maps

We have the following **19 maps** in the database:

# 7. References

*Generalized Catalan numbers, Weyl groups and arrangements of hyperplanes*, Bull. London Math. Soc.,

**36**(2004), pp. 294-392.

[Kra89] C. Krattenthaler, *Counting lattice paths with a linear boundary II*, Sitz.ber. d. ÖAW Math.-naturwiss. Klasse **198** (1989), 171-199.

# 8. Sage examples