A variation of Dyck paths allows for down-steps of arbitrary length, not just one. Credits for this invention are given to Emeric Deutsch. Surprisingly, the enumeration of them is somewhat akin to the analysis of Motzkin-paths; the last section contains a bijection.
Cameron [1] considers non-negative lattice paths with an up-step of one unit and down-steps of \(1,3,5,\dots\) units. She gives (loc. cit.) credits to Emeric Deutsch for inventing these paths. Before we engage into further analysis of this situation (in a future publication), we will consider here the more modest model of down-steps of \(1,2,3,4,\dots\) units. Lattice paths with various step sizes have been thoroughly studied by Banderier and Flajolet [2], but never for an infinite number of possible steps.
We will call these paths Deutsch paths\(^{1}\), and require that they are non-negative and finish on a prescribed level \(i\). If \(i=0\), which is the analogue of Dyck paths, we talk about a closed Deutsch path. Since the up-steps and down-steps are not symmetrical, we can also investigate the model where the paths develop from right to left. In this case we talk about reversed Deutsch paths.
Dyck paths are extremely popular in combinatorics; the Encyclopedia of Integer Sequences [3] produces over 1200 hits. We restrict ourselves here to three additional references, all related to bijective ideas, [4,5,6].
Somewhat surprisingly, the computations that we will perform, lead us the world of Motzkin paths. Recall that the generating function of Motzkin paths (up-step, level-step, down-step) leads to \(M=1+zM+z^2M^2\), or
\begin{equation*} M(z)=\frac{1-z-\sqrt{1-2z-3z^2}}{2z^2}=1+z+2\,{z}^{2}+4\,{z}^{3}+9\,{z}^{4}+21\,{z}^{5}+51\,{z}^{6}+\cdots . \end{equation*} Here, as first shown in [7], the substitution \(z=\dfrac{v}{1+v+v^2}\) is beneficial: \begin{equation*} M=1+v+v^2,\quad\text{and}\quad v=\frac{1-z-\sqrt{1-2z-3z^2}}{2z}. \end{equation*} Introducing trinomial coefficients via \begin{equation*} \binom{n,3}{k}:=[v^k](1+v+v^2)^n \end{equation*} (notation is from Comtet [8]), we can compute the Motzkin numbers \begin{align*} [z^n]M(z)&=\frac1{2\pi i}\oint \frac{dz}{z^{n+1}}M(z)\\* &=\frac1{2\pi i}\oint \frac{dv}{v^{n+1}}(1-v^2)(1+v+v^2)^{n}\\* &=\binom{n,3}{n}-\binom{n,3}{n-2}. \end{align*} For the analysis of Deutsch paths, we will see that the same substitution works extremely well, and explicit answers can be given in terms of trinomial coefficients. The last section contains a bijection between open Deutsch paths (level at the end arbitrary) and Motzkin paths, of the same length.We present the example of \(h=4\), and the generating functions \(\varphi_i(z)\) describe bounded Deutsch paths ending at level \(i\).
\begin{equation*} \left(\begin{matrix} 1&-z&-z&-z&-z\\ -z& 1&-z&-z&-z\\ 0& -z& 1&-z&-z\\ 0& 0& -z& 1&-z\\ 0& 0& 0& -z& 1\\ \end{matrix}\right) \left(\begin{matrix} \varphi_0\\ \varphi_1\\ \varphi_2\\ \varphi_3\\ \varphi_4\\ \end{matrix}\right)= \left(\begin{matrix} 1\\ 0\\ 0\\ 0\\ 0\\ \end{matrix}\right). \end{equation*} The \(n\times n \) determinant \begin{equation*} D_n=\frac{(1+v)^{n-1}}{(1+v+v^2)^n}\frac{1-v^{n+2}}{1-v} \end{equation*} of this system is of importance. It will eventually turn out that \begin{equation*} D_{h+1}=\frac{(1+v)^{h}}{(1+v+v^2)^{h+1}}\frac{1-v^{h+3}}{1-v}, \end{equation*} which can be obtained from the recursion \begin{equation*} (1+v+v^2)^2D_{n+2}-(1+v+v^2)(1+v)^2D_{n+1}+v(1+v)^2D_{n}=0. \end{equation*} Applying Cramer’s rule leads to \begin{align*} \varphi_i&=\frac{z^iD_{h-i}}{D_{h+1}}=\frac{v^i}{(1+v+v^2)^{i}} \frac{(1+v+v^2)^{h+1}}{(1+v)^{h}}\frac{1-v}{1-v^{h+3}}\frac{(1+v)^{h-i-1}}{(1+v+v^2)^{h-i}}\frac{1-v^{h-i+2}}{1-v}\\ &=\frac{v^i(1+v+v^2)}{(1+v)^{i+1} }\frac{1-v^{h-i+2}}{1-v^{h+3}}. \end{align*} Of special interest is the generating function of closed bounded Deutsch paths: \begin{align*} \varphi_0 &=\frac{1+v+v^2}{1+v }\frac{1-v^{h+2}}{1-v^{h+3}}. \end{align*} Taking the limit \(h\to\infty\) leads to the enumeration of closed Deutsch paths, as originally desired: \begin{align*} \varphi_0 &=\frac{1+v+v^2}{1+v }. \end{align*} We can read off the coefficients explicitly: \begin{align*} [z^n]\varphi_0&=\frac1{2\pi i}\oint \frac{dz}{z^{n+1}}\frac{1+v+v^2}{1+v }\\ &=\frac1{2\pi i}\oint \frac{dv}{v^{n+1}}(1-v)(1+v+v^2)^{n}\\ &=\binom{n,3}{n}-\binom{n,3}{n-1}. \end{align*} The enumeration of closed Deutsch paths of height \(\ge h\) \begin{align*} \frac{1+v+v^2}{1+v }&-\frac{1+v+v^2}{1+v }\frac{1-v^{h+1}}{1-v^{h+2}} =\frac{1+v+v^2}{1+v }\frac{v^{h+1}(1-v)}{1-v^{h+2}}\\ \end{align*} is of interest, and we will discuss asymptotics of the average height in a later section.Here is the generating function of bounded Deutsch paths with (arbitrary) open end:
\begin{align*} \sum_{i=0}^h\varphi_i &=(1+v+v^2)\frac{1-v^{h+1}}{1-v^{h+3}}. \end{align*} In the limit \(h\to\infty\), this leads to \begin{align*} 1+v+v^2, \end{align*} which is the generating function of Motzkin paths, according to length. A combinatorial explanation is given in the last section.We would also like to do this type of analysis for open Deutsch paths, as they are exactly enumerated by Motzkin numbers. Recall the generating function
\begin{align*} \sum_{i=0}^h\varphi_i &=(1+v+v^2)\frac{1-v^{h+1}}{1-v^{h+3}} \end{align*} of open Deutsch paths, with height \(\le h\). Taking differences, we get the generating function of open Deutsch paths, with height \(\ge h\): \begin{equation*} (1+v+v^2)(1-v^2)\frac{v^h}{1-v^{h+2}}. \end{equation*} This has to be summed: \begin{equation*} (1+v+v^2)(1-v^2)\sum_{h\ge1}\frac{v^h}{1-v^{h+2}}\sim -6\log(1-v)\sim-3\log(1-3z), \end{equation*} with coefficients asymptotic to \(\frac{3^{n+1}}{n}\).This has to be divided by
\begin{equation*} [z^n]M(z)\sim\frac{9}{2\sqrt{3\pi }}3^nn^{-3/2}; \end{equation*} which leads again to the average height \begin{equation*} 2\sqrt{\frac{\pi n}{3}}. \end{equation*} So open versus closed does not influence the (leading term of the) average height.Very briefly, we only cite the results of the transposed matrix (related to reversed Deutsch paths):
\begin{equation*} L_{i,i}=1 \end{equation*} and for \(j< i\) \begin{equation*} L_{i,j}=-v\frac{1-v^j}{1-v^{j+2}}. \end{equation*} Furthermore \begin{equation*} U_{i,i}=\frac{1+v}{1+v+v^2}\frac{1-v^{i+2}}{1-v^{i+1}}, \end{equation*} \begin{equation*} U_{i,i+1}=-\frac{v}{1+v+v^2}, \end{equation*} and zero for all other values of the \(U\)-matrix.We will define a map \(\psi\) in a recursive way, mapping an open Deutsch path to a Motzkin path; it is easily seen to be reversible. Of course the empty path is mapped to the empty path. Now, if the open Deutsch path never returns to the \(x\)-axis, it can be described by \(w=U\widetilde{w}\), where \(U\) describes an up-step, and \(\widetilde{w}\) is itself an open Deutsch path. Then we map it to \(F\psi(\widetilde{w})\), where \(F\) is a flat step. Otherwise, if the open Deutsch path returns to the \(x\)-axis for the first time, it may be written as \(w=U\widetilde{w}Dx\), where \(D\) is a down-step of any size. Note that both, \(\widetilde{w}\) and \(x\) are themselves open Deutsch paths. Then we map this to \(U\psi(\widetilde{w})D\psi(x)\), which is a Motzkin path (here, \(D\) is just a down-step of one unit).