Cornerless, peakless, valleyless Motzkin paths (regular and skew) and applications to bargraphs
Helmut Prodinger
TL;DR
The paper addresses the enumeration of prefixes of cornerless Motzkin paths and their skew variants, and their connection to bargraphs via a bijection. It develops a generating-function framework using the kernel method and automata-based recurrences to count occurrences of the subwords $UD$ and $DU$, introducing parameters $z$, $u$, $\sigma$, and $\tau$ to track end height and pattern counts. It delivers explicit closed-form generating functions and series for cornerless, peakless, valleyless, borderless, and open-ended cases, and extends these results to skew Motzkin paths with a left-step layer. The results unify several known sequences and provide exact tools for prefix enumeration of constrained Motzkin-type paths, with a clear route to asymptotic analysis via square-root singularities and endpoint statistics.
Abstract
Motzkin paths consist of up-steps, down-steps, horizontal steps, never go below the $x$-axis and return to the $x$-axis. Versions where the return to the $x$-axis isn't required are also considered. A path is peakless (valleyless) if $UD$ (if $DU$) never occurs. If it is both peakless and valleyless, it is called cornerless. Deutsch and Elizalde have linked cornerless Motzkin paths and bargraphs bijectly. Thus, instead of prefixes of bargraphs one might consider prefixes of cornerless Motzkin paths. In this paper, this is extended by counting the occurrences of $UD$ resp., $DU$. The concepts are extended to so-called skew Motzkin paths. Methods are generating functions and the kernel method to compute explicit forms.
