Prodinger's periodic peakless Motzkin S-fraction: a reversible interpretation
Every nonempty peakless Motzkin excursion of length \(m\) corresponds bijectively to a Dyck excursion of total cost \(m-1\). A Motzkin excursion starts and ends at altitude zero, stays at nonnegative altitude and uses upsteps \(U\), horizontal steps \(H\) and downsteps \(D\), with altitude changes \(1,0,-1\). Peakless means that the consecutive steps \(UD\) are forbidden. A Dyck excursion uses only \(U\) and \(D\). In the correspondence, a Dyck upstep starting at altitude \(h\) costs \(1\) when \(h\equiv 0,1\pmod 3\) and \(3\) when \(h\equiv 2\pmod 3\). Downsteps cost zero. Prodinger obtained the continued fraction algebraically and asked for a combinatorial interpretation of this exact sequence of weights. The bijection gives one for all finite excursions. Prodinger, Peakless Motzkin paths of bounded height, Section 3, p. 106 A Dyck excursion traces an ordered rooted tree by taking an upstep on entering a child and a downstep on returning to its parent, visiting children in order. Give the root type \(0\) and each child the next type modulo three. An edge from a parent of type \(i\) costs \(c_i\), where \(c_0=c_1=1\) and \(c_2=3\). For each starting root type \(i\in\{0,1,2\}\), let \(T_i(z)\) count these trees by total edge cost, including the tree consisting of its root alone. Each child contributes its subtree and the edge to it, so the ordered list of children gives the formal power series relations \[T_i(z)=\frac{1}{1-z^{c_i}T_{(i+1)\bmod 3}(z)},\qquad A_\infty(z)=1+zT_0(z)=1+\frac{z}{1-\dfrac{z}{1-\dfrac{z}{1-\dfrac{z^3}{1-\dfrac{z}{\ddots}}}}}. \] Here \(z\) marks cost in \(T_i\) and length in \(A_\infty\). For each \(m\ge1\), the number of peakless Motzkin excursions of length \(m\) is the coefficient of \(z^{m-1}\) in \(T_0\). The outer factor \(z\) restores one unit of length, and the separate constant \(1\) counts the empty Motzkin excursion. To carry out the bijection, first encode the Motzkin word by a tree with costs on its nodes. The word \(H\) gives a leaf of cost zero. The words \(HQ\) and \(UQD\) give unary nodes of costs one and two respectively, each with the code of \(Q\) as its child. The word \(UQDR\) gives a binary node of cost three, with the codes of \(Q,R\) as its children in that order. Every recursive word is nonempty. For a word beginning with \(U\), the displayed \(D\) is its matching first return and \(Q\) is the enclosed excursion read one level lower. The arity and cost of each node recover the corresponding word form, and the sum of the node costs is \(m-1\). The conversion between node costs and edge costs uses the ordered child lists within the three types. Represent a pair consisting of a type-2 tree followed by a type-1 tree as a token word. First write one token for each child of the type-2 root, carrying the child's type-0 subtree and charging three units in addition to the subtree cost. Then, for each child of the type-1 root, write a delimiter of cost one followed by the same kind of tokens for that child's children. The tokens before the first delimiter rebuild the type-2 tree. Each delimiter starts the list for one child of the type-1 root, and any of these lists may be empty. A nonempty token word becomes one external unit of cost and a type-0 tree. A word of \(r\ge1\) delimiters alone gives a root with \(r-1\) leaf children. Otherwise, start with \(r\) leaf children for the \(r\) leading delimiters. Let \(L\) be the subtree carried by the first cost-three token, and read the suffix after it as the pair just described. Add a child to the root whose first child is the type-2 tree of that pair and whose later children are the children of the pair's type-1 root. Append the children of \(L\) to the type-0 root's list. The external unit and the two edges leading to the first type-2 subtree account for the three units of the first cost-three token. In reverse, a root whose children are all leaves gives one more delimiter than its number of children. Otherwise its first non-leaf child identifies the suffix pair, the preceding leaves recover the leading delimiters and the later root children rebuild \(L\). To read a type-0 tree as a tree with node costs, an empty child list gives the zero-cost leaf. A first child that is a leaf gives a cost-one unary node, with the remaining root list as its recursive input. If the first child has children, read its first child's type-2 subtree and its remaining child list as the pair that encodes a token word. Keep the children after the root's first child as a separate type-0 tree. An empty token word gives a cost-two unary node with that separate tree as its input. A nonempty word gives a cost-three binary node, with the tree rebuilt from the tokens first and the separate tree second. To reverse the rule, the leaf and cost-one cases restore an empty list or prepend a leaf. The cost-two and cost-three cases restore the pair from the empty word or from the first recursive tree, respectively. Place its type-2 tree first and its type-1 root's remaining data as the later children of a new first child, followed at the root by the list from the sole or second recursive tree. Each recursive input has smaller total cost. The correspondence uses cost across all sizes and can change maximum height. For example, \(UHD\) maps to \(UUDD\).
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24766323
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint