Math 2.0

Combinatorics Definition

Motzkin number

Builds on Lattice path

Definition

Let n≥0n \ge 0 be an integer. A Motzkin path of length nn is a lattice path (p0,p1,…,pn)(p_0, p_1, \ldots, p_n) in ℤ2\Z^2 with these properties:

  1. p0=(0,0)p_0 = (0, 0) and pn=(n,0)p_n = (n, 0);
  2. each step pi−pi−1p_i - p_{i-1} is one of U=(1,1)U = (1, 1), D=(1,−1)D = (1, -1) and H=(1,0)H = (1, 0);
  3. each point pip_i has second coordinate at least 00.

The Motzkin number MnM_n is the number of Motzkin paths of length nn.

Remarks

Example: the Motzkin paths of length 33 are HHHHHH, UDHUDH, HUDHUD and UHDUHD, so M3=4M_3 = 4. Non-example: the path HDUHDU ends at (3,0)(3, 0) but fails clause 3, because after two steps it is at height −1-1.

The first values are M0,…,M7=1,1,2,4,9,21,51,127M_0, \ldots, M_7 = 1, 1, 2, 4, 9, 21, 51, 127. Splitting a path at its first step gives the recurrence Mn+1=Mn+∑k=0n−1MkMn−1−k.M_{n+1} = M_n + \sum_{k=0}^{n-1} M_k M_{n-1-k}. The generating function M(z)=∑nMnznM(z) = \sum_n M_n z^n satisfies M=1+zM+z2M2M = 1 + z M + z^2 M^2, hence M(z)=1−z−1−2z−3z22z2.M(z) = \frac{1 - z - \sqrt{1 - 2z - 3z^2}}{2 z^2}. Choosing the positions of the HH steps gives Mn=∑k(n2k)CkM_n = \sum_{k} \binom{n}{2k} C_k, where CkC_k is the Catalan number. The Motzkin paths without HH steps are the Dyck words.

Reading path

To understand this page from the ground up, read these 2 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Lattice path concept
  2. Motzkin number definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Motzkin_number
About this page
TagPHA1S6GQGV
URIm2://PHA1S6GQGV
Kinddefinition
WritingW0 stub
MSC05A15, 11B83
DefinesMotzkin number
UsesLattice path
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.