<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[12pt,reqno]{article}

\usepackage[usenames]{color}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amscd}
\usepackage{graphicx}

\usepackage[colorlinks=true,
linkcolor=webgreen,
filecolor=webbrown,
citecolor=webgreen]{hyperref}

\definecolor{webgreen}{rgb}{0,.5,0}
\definecolor{webbrown}{rgb}{.6,0,0}

\usepackage{color}
\usepackage{fullpage}
\usepackage{float}

\usepackage{psfig}
\usepackage{graphics}
\usepackage{latexsym}
\usepackage{epsf}
\usepackage{breakurl}

\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning,decorations.markings,decorations.pathreplacing}
\tikzset{-&gt;-/.style={decoration={
  markings,
  mark=at position .5 with {\arrow{&gt;}}},postaction={decorate}}}

\usepackage{array}

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{.1in}
\setlength{\evensidemargin}{.1in}
\setlength{\topmargin}{-.1in}
\setlength{\textheight}{8.4in}

\newcommand{\seqnum}[1]{\href{https://oeis.org/#1}{\rm \underline{#1}}}

\begin{document}

\begin{center}
\includegraphics[width=4in]{logo129.eps}
\end{center}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{conjecture}[theorem]{Conjecture}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\newcommand\blfootnote[1]{%
  \begingroup
    \renewcommand\thefootnote{}\footnote{#1}%
      \addtocounter{footnote}{-1}%
        \endgroup
	}

\begin{center}
\vskip 1cm{\Large\bf Colored Motzkin Paths of Higher Order\blfootnote{
$^*$\, Research supported by NSF Grant DMS-1559912.}
}
\end{center}
\begin{minipage}[t]{0.5\textwidth}
\begin{center}
Isaac DeJager\\
LeTourneau University\\
Longview, TX 75602\\
USA\\
\href{mailto:IsaacDeJager@letu.edu}{\tt IsaacDeJager@letu.edu}\\
\ \\
Frank Seidl\\
University of Michigan\\
Ann Arbor, MI  48109\\
USA\\
\href{mailto:fcseidl@umich.edu}{\tt fcseidl@umich.edu}\\
\end{center}
\end{minipage}
\begin{minipage}[t]{0.45\textwidth}
\begin{center}
Madeleine Naquin\\
Spring Hill College\\
Mobile, AL 36608\\
USA\\
\href{mailto:madeleine.c.naquin@email.shc.edu}{\tt madeleine.c.naquin@email.shc.edu}\\
\ \\
Paul Drube$^*$\\
Valparaiso University\\
Valparaiso, IN  46383\\
USA\\
\href{mailto:paul.drube@valpo.edu}{\tt paul.drube@valpo.edu}\\
\end{center}
\end{minipage}

\vskip .2 in

\def\modd#1 #2{#1\ \mbox{\rm (mod}\ #2\mbox{\rm )}}

\vskip .2in

\begin{abstract}
Motzkin paths of order $\ell$ are a generalization of Motzkin paths
that use steps $U=(1,1)$, $L=(1,0)$, and $D_i=(1,-i)$ for every
positive integer $i \leq \ell$.  We further generalize order-$\ell$
Motzkin paths by allowing for various coloring schemes on the edges
of our paths.  These $(\vec{\alpha},\vec{\beta})$-colored Motzkin
paths may be enumerated via proper Riordan arrays, mimicking the
techniques of Aigner in his treatment of ``Catalan-like numbers".
After an investigation of their associated Riordan arrays, we
develop bijections between $(\vec{\alpha},\vec{\beta})$-colored
Motzkin paths and a variety of well-studied combinatorial objects.
Specific coloring schemes $(\vec{\alpha},\vec{\beta})$ allow us to place
$(\vec{\alpha},\vec{\beta})$-colored Motzkin paths in bijection with
different sub-classes of generalized $k$-Dyck paths, including $k$-Dyck
paths that remain weakly above horizontal lines $y=-a$, $k$-Dyck paths
whose peaks all have the same height modulo-$k$, and Fuss-Catalan
generalizations of Fine paths. A general bijection is also developed
between $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths and certain
sub-classes of $k$-ary trees.
\end{abstract}


\section{Introduction}
\label{sec:intro}

A Motzkin path of length $n$ and height $m$ is an integer lattice path from $(0,0)$ to $(n,m)$ that uses the step set $\lbrace U = (1,1), L=(1,0), D=(1,-1) \rbrace$ and remains weakly above the horizontal line $y=0$.  We denote the set of all such Motzkin paths by $\mathcal{M}_{n,m}$ and let $\vert \mathcal{M}_{n,m} \vert = M_{n,m}$.  The cardinalities $M_{n,0} = M_n$ correspond to the Motzkin numbers, a well-known integer sequence (\seqnum{A001006}) that begins as $1, 1, 2, 4, 9, 21, 51, 127, \hdots$.  For more information about the Motzkin numbers and their various combinatorial interpretations, see Aigner \cite{Aigner1}, Bernhart \cite{Bernhart}, and Donaghey and Shapiro \cite{DonS}. 

For any $\alpha,\beta \geq 0$, an element of $\mathcal{M}_{n,m}$ is said to be an $(\alpha,\beta)$-colored Motzkin path of length $n$ and height $m$ if each of its $L$ steps at height $y=0$ is labeled by one of $\alpha$ colors and each of its $L$ steps at height $y &gt; 0$ is labeled by one of $\beta$ colors.  By the ``height" of a step in a lattice path we mean the $y$-coordinate of its right endpoint.  We denote the set of all $(\alpha,\beta)$-colored Motzkin paths by $\mathcal{M}_{n,m}(\alpha,\beta)$ and let $\vert \mathcal{M}_{n,m}(\alpha,\beta) \vert = M_{n,m}(\alpha,\beta)$.  By analogy with above, for fixed $\alpha,\beta$ we henceforth refer to the integer sequences $( M_{n,0}(\alpha,\beta) )_{n \geq 0}$ as the $(\alpha,\beta)$-colored Motzkin numbers.  See Figure \ref{1fig:Colored_Motzkin_Paths_Example} for an illustration of the set $\mathcal{M}_{3,0}(1,2)$.  That example establishes our convention of using positive integers for our ``colors".
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.7, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,0) {};
    \node(2*) at (2,0) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (1*) to node[midway,above,fill=none,font=\small] {1} (2*);
    \draw[thick] (2*) to node[midway,above,fill=none,font=\small] {1} (3*);
\end{tikzpicture}
\hspace{.15in}
\begin{tikzpicture}
	[scale=.7,auto=left,every node/.style={circle, fill=black,inner sep=1.25pt}]
	\draw[thick,dotted,color=black] (0,0) to (3,0);
	\node (0*) at (0,0) {};
	\node (1*) at (1,0) {};
	\node (2*) at (2,1) {};
	\node (3*) at (3,0) {};
	\draw[thick] (0*) to node[midway,above,fill=none,font=\small] {1} (1*);
	\draw[thick] (1*) to (2*);
	\draw[thick] (2*) to (3*);
\end{tikzpicture}
\hspace{.15in}
\begin{tikzpicture}
	[scale=.7,auto=left,every node/.style={circle, fill=black,inner sep=1.25pt}]
	\draw[thick,dotted,color=black] (0,0) to (3,0);
	\node (0*) at (0,0) {};
	\node (1*) at (1,1) {};
	\node (2*) at (2,1) {};
	\node (3*) at (3,0) {};
	\draw[thick] (0*) to (1*);
	\draw[thick] (1*) to node[midway,above,fill=none,font=\small] {1} (2*);
	\draw[thick] (2*) to (3*);
\end{tikzpicture}
\hspace{.15in}
\begin{tikzpicture}
	[scale=.7,auto=left,every node/.style={circle, fill=black,inner sep=1.25pt}]
	\draw[thick,dotted,color=black] (0,0) to (3,0);
	\node (0*) at (0,0) {};
	\node (1*) at (1,1) {};
	\node (2*) at (2,1) {};
	\node (3*) at (3,0) {};
	\draw[thick] (0*) to (1*);
	\draw[thick] (1*) to node[midway,above,fill=none,font=\small] {2} (2*);
	\draw[thick] (2*) to (3*);
\end{tikzpicture}
\hspace{.15in}
\begin{tikzpicture}
	[scale=.7,auto=left,every node/.style={circle, fill=black,inner sep=1.25pt}]
	\draw[thick,dotted,color=black] (0,0) to (3,0);
	\node (0*) at (0,0) {};
	\node (1*) at (1,1) {};
	\node (2*) at (2,0) {};
	\node (3*) at (3,0) {};
	\draw[thick] (0*) to (1*);
	\draw[thick] (1*) to (2*);
	\draw[thick] (2*) to node[midway,above,fill=none,font=\small] {1} (3*);
\end{tikzpicture}
    \caption{All $(1,2)$-colored Motzkin paths in the set $\mathcal{M}_{3,0}(1,2)$.}
    \label{1fig:Colored_Motzkin_Paths_Example}
\end{figure}

Our notion of colored Motzkin paths are actually a special case of the labeled lattice paths investigated by Flajolet \cite{Fl}.  Using Flajolet's scheme of edge labeling, our $(\alpha,\beta)$-colored Motzkin paths correspond to $b_0 = \alpha$, $b_i = \beta$ for all $i \geq 1$, and $a_i=c_i=1$ for all $i \geq 0$.  Our scheme has been chosen to be amenable to the Riordan array-oriented methodologies of Aigner \cite{Aigner2}, methodologies that will also admit an  intuitive generalization to ``higher-order" paths in Section \ref{sec:higher_order_motzkin_paths}.

It should also be noted that our $(\alpha,\beta)$-colored Motzkin paths specialize to the ``$k$-colored Motzkin paths" of Barrucci et al.\ \cite{BDPP} or Sapounakis and Tsikouras \cite{ST1,ST2} when $\alpha = \beta = k$.  Our definition is also distinct from the $(u,l,d)$-colored Motzkin paths of Woan \cite{Woan1,Woan2} or Mansour, Schork and Sun \cite{MSS}.  In those papers, $U$, $L$, and $D$ steps are all colored and there is no distinction between $L$ steps at various heights.  

It is clear that $M_{n,m}(\alpha,\beta) = 0$ unless $0 \leq m \leq n$, as well as that $M_{0,0}(\alpha,\beta) = 1$.  For $n \geq 1$, the cardinalities $M_{n,m}(\alpha,\beta)$ may be computed via the recursion of Proposition \ref{1thm:Motzkin_triangle_recursion}, variations of which already appear elsewhere.
\begin{proposition}
\label{1thm:Motzkin_triangle_recursion}
For all $n \geq 1$ and $0 \leq m \leq n$,
$$M_{n,m}(\alpha,\beta) =
\begin{cases}
M_{n-1,m-1}(\alpha,\beta) + \beta M_{n-1,m}(\alpha,\beta) + M_{n-1,m+1}(\alpha,\beta), &amp; \text{if } m \geq 1; \\[4pt]
\alpha M_{n-1,0}(\alpha,\beta) + M_{n-1,1}(\alpha,\beta), &amp; \text{if } m=0.
\end{cases}$$
\end{proposition}
\begin{proof}
For $m \geq 1$, partition the paths of $\mathcal{M}_{n,m}(\alpha,\beta)$ according to their final step.  The subset of those paths that end with a $U$ step are in bijection with $\mathcal{M}_{n-1,m-1}(\alpha,\beta)$, those that end with a $D$ step are in bijection with $\mathcal{M}_{n-1,m+1}(\alpha,\beta)$, and those that end with a $L$ step of a fixed color are in bijection with $\mathcal{M}_{n-1,m}(\alpha,\beta)$, for each of the $\beta$ colors.  The $m=1$ case is similar, although here the elements of $\mathcal{M}_{n,m}(\alpha,\beta)$ cannot end in a $U$ step and the final $L$ steps may carry $\alpha$ possible colors. 
\end{proof}

Using Proposition \ref{1thm:Motzkin_triangle_recursion}, one may define an infinite lower-triangular array whose $(n,m)$-entry is $M_{n,m}(\alpha,\beta)$.  See Figure \ref{1fig:colored_Motzkin_triangle} for the first four rows of this triangle, which we refer to as the $(\alpha,\beta)$-colored Motzkin triangle.  Notice that the upper-leftmost nonzero entry of this triangle corresponds to $(n,m) = (0,0)$.
\begin{figure}[ht!]
\begin{center}
\def\arraystretch{2}
\begin{tabular}{l l l l}
$1$ &amp; &amp; &amp; \\ [-10pt]
$\alpha$ &amp; $1$ &amp; &amp; \\ [-10pt]
$\alpha^2+1$ &amp; $\alpha + \beta$ &amp; $1$ &amp; \\ [-10pt]
$\alpha^3 + 2\alpha + \beta $ &amp; $\alpha^2 + \alpha \beta + \beta^2 + 2$ &amp; $\alpha + 2 \beta$ &amp; $1$ \\
\end{tabular}
\end{center}
\caption{The first four nonzero rows of the $(\alpha,\beta)$-colored Motzkin triangle.}
\label{1fig:colored_Motzkin_triangle}
\end{figure}

We will be interested primarily in the leftmost nonzero column of the $(\alpha,\beta)$-Motzkin triangle.  Ranging over various $(\alpha,\beta)$, these are the $(\alpha,\beta)$-colored Motzkin numbers and constitute one class of what Aigner \cite{Aigner2} refers to as ``Catalan-like numbers".  Shown in Table \ref{1tab:Catalanlike_numbers} are the sequences associated with all $0 \leq \alpha,\beta \leq 4$, many of which are well-represented in the literature. 
\begin{table}[ht!]
\centering
\def\arraystretch{1.3}
\scalebox{.9}{
\begin{tabular}{|c|c|c|c|c|c|}
\hline
 &amp; \textbf{${\beta=0}$} &amp; \textbf{${\beta=1}$} &amp; \textbf{${\beta=2}$} &amp; \textbf{${\beta=3}$} &amp; \textbf{${\beta=4}$} \\ \hline
\textbf{${\alpha=0}$} &amp; \seqnum{A126120} &amp; Riordan numbers ($R_n$) &amp; Fine numbers ($F_n$) &amp; \seqnum{A117641} &amp; \seqnum{A185132} \\ \hline
\textbf{${\alpha=1}$} &amp; \seqnum{A001405} &amp; Motzkin numbers ($M_n$) &amp; Catalan numbers ($C_n$) &amp; \seqnum{A033321} &amp; --- \\ \hline
\textbf{${\alpha=2}$} &amp; \seqnum{A054341} &amp; \seqnum{A005773} &amp; Catalan numbers ($C_{n+1}$) &amp; \seqnum{A007317} &amp; \seqnum{A033543} \\ \hline
\textbf{${\alpha=3}$} &amp; \seqnum{A126931} &amp; \seqnum{A059738} &amp; $\binom{2n+1}{n+1}$ &amp; \seqnum{A002212} &amp; \seqnum{A064613} \\ \hline
\textbf{${\alpha=4}$} &amp; --- &amp; --- &amp; \seqnum{A049027} &amp; \seqnum{A026378} &amp; \seqnum{A005572} \\ \hline
\end{tabular}}
\caption{Integer sequences corresponding to the $(\alpha,\beta)$-colored Motzkin numbers, for various choices of $(\alpha,\beta)$.  Numbered entries correspond to OEIS \cite{OEIS}.  Dashes correspond to sequences that currently do not appear on OEIS.}
\label{1tab:Catalanlike_numbers}
\end{table}

As with the Catalan-like numbers of Aigner \cite{Aigner2}, our notion of $(\alpha,\beta)$-colored Motzkin paths is most efficiently recast within the language of proper Riordan arrays.  Let $d(t),h(t)$ be a pair of formal power series such that $d(0) \neq 0$, $h(0)=0$ and $h'(0) \neq 0$.  The proper Riordan array $\mathcal{R}(d(t),h(t))$ associated with these power series is an infinite, lower-triangular array whose $(i,j)$-entry is $d_{i,j} = [t^i]d(t)h(t)^j$.  Here was adopt the standard convention where $[t^i]p(t)$ denotes the coefficient of the $t^i$ in the power series $p(t)$.  See Rogers \cite{Rogers} or Merlini et al.\ \cite{MRSV} for more background information on Riordan arrays. 

Fundamental to the theory of Riordan arrays is the fact that every proper Riordan array $\mathcal{R}(d(t),h(t))$ is uniquely determined by a pair of power series $A(t) = \sum_{i=0}^\infty a_i t^i$ and $Z(t) = \sum_{i=0}^\infty z_i t^i$ such that 
\begin{equation}
\label{1eq:A_and_Z_sequence_recursion}
d_{i,j}=
\begin{cases}
a_0 d_{i-1,j-1} + a_1 d_{i-1,j} + a_2 d_{i-1,j+1} + \cdots, &amp; \text{for all } j \geq 1; \\[4pt]
z_0 d_{i-1,0} + z_1 d_{i-1,1} + z_2 d_{i-1,2} + \cdots, &amp; \text{for } j=0.
\end{cases}
\end{equation}

These series are referred to as the $A$-sequence and $Z$-sequence of $\mathcal{R}(d(t),h(t))$, respectively.  It may be shown that the $A$- and $Z$-sequences of $\mathcal{R}(d(t),h(t))$ satisfy
\begin{equation}
\label{1eq:A_and_Z_sequences_vs_dtht}
h(t) = t A(h(t)), \hspace{.5in} d(t) = \frac{d(0)}{1-t Z(h(t))}.
\end{equation}

With this terminology in hand, Proposition \ref{1thm:Motzkin_triangle_recursion} immediately guarantees that the $(\alpha,\beta)$-colored Motzkin triangle is a proper Riordan array for every choice $\alpha,\beta \geq 0$.  In particular, the $(\alpha,\beta)$-colored Motzkin triangle is the proper Riordan array with $A$-sequence $A(t) = 1 + \beta t + t^2$ and $Z$-sequence $Z(t) = \alpha + t$.

\subsection{Outline of paper}
\label{subsec:outline_of_paper}

The goal of this paper is to adapt the aforementioned phenomena to ``higher-order" Motzkin paths, a generalization of traditional Motzkin paths whose step set includes a down step $D_i = (1,-i)$ for every positive integer $1 \leq i \leq \ell$ up to some fixed upper bound $\ell$.  Section \ref{sec:higher_order_motzkin_paths} defines the relevant notion of coloring for higher-order Motzkin paths, describes the proper Riordan arrays that enumerate these colored paths, and proves a series of general results about those proper Riordan arrays.  Section \ref{sec:combinatorial_interpretations} then introduces a series of combinatorial interpretations for colored higher-order Motzkin paths that directly generalize the combinatorial interpretations suggested by Table \ref{1tab:Catalanlike_numbers}. In particular, colored higher-order Motzkin paths are placed in bijection with various classes of generalized $k$-Dyck paths, entirely new generalizations of Fine paths, $k$-Dyck paths whose peaks only occur at specific heights, and various subsets of $k$-ary trees.  Appendix \ref{sec:appendix} closes the paper by comparing the first columns of our proper Riordan arrays against sequences in OEIS \cite{OEIS} for various ``easy" colorations, providing impetus for future investigations.

\section{Higher-order Motzkin paths}
\label{sec:higher_order_motzkin_paths}

Fix $\ell \geq 1$.  An \emph{order-$\ell$ Motzkin path} of length $n$ and height $m$ is an integer lattice path from $(0,0)$ to $(n,m)$ that uses step set $\lbrace U = (1,1), D_0 = (1,0), D_1 = (1,-1), \hdots , D_{\ell} = (1,-\ell) \rbrace$ and remains weakly above the horizontal line $y = 0$.  We denote the set of all such paths by $\mathcal{M}_{n,m}^\ell$, and let $\vert \mathcal{M}_{n,m}^\ell \vert = M_{n,m}^\ell$.  Note that order-$1$ Motzkin paths correspond to the traditional notion of Motzkin paths, so that $M_{n,0}^1 = M_{n,0}$ are the Motzkin numbers.

For $\ell &gt; 1$, our notion of order $\ell$ Motzkin paths are distinct from the ``higher-rank" Motzkin paths studied by Mansour, Schork and Sun \cite{MSS} or Sapounakis and Tsikouras \cite{ST1}. In particular, our order-$\ell$ Motzkin paths don't allow for up steps of multiple slopes.  In the limit of $\ell \rightarrow \infty$, our order-$\ell$ Motzkin paths correspond to the \L ukasiewicz paths investigated by Cheon, Kim and Shapiro \cite{CKS}.

We now look to color order-$\ell$ Motzkin paths in a way that directly generalizes the Riordan array properties of Section \ref{sec:intro}.  So fix $\ell \geq 1$, and let $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{\ell-1})$, $\vec{\beta} = (\beta_0,\hdots,\beta_{\ell-1})$ be any pair of $\ell$-tuples of non-negative integers.  An \emph{$(\vec{\alpha},\vec{\beta})$-colored Motzkin path} is an element of $\mathcal{M}_{n,m}^\ell$ where each $D_i$ step that ends at height $y=0$ is labeled by one of $\alpha_i$ colors, and each $D_i$ step that ends at height $y&gt;0$ is labeled by one of $\beta_i$ colors, for each $0 \leq i \leq \ell-1$.  We denote the set of all $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths by $\mathcal{M}_{n,m}^\ell(\vec{\alpha},\vec{\beta})$ and let $\vert \mathcal{M}_{n,m}^\ell(\vec{\alpha},\vec{\beta}) \vert = M_{n,m}^\ell(\vec{\alpha},\vec{\beta})$.  For fixed $\ell,\vec{\alpha},\vec{\beta}$, we refer to the sequences $( M_{n,0}^\ell (\vec{\alpha},\vec{\beta}) )_{n \geq 0}$ as the \emph{$(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers} of order $\ell$.

See Figure \ref{2fig:higher_order_colored_Motzkin_paths_example} for an example of order $2$ Motzkin paths.  Notice that the only steps which fail to receive colors are $U$ steps and down steps $D_\ell$ of maximal negative slope.
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);    
    \node(0*) at (0,0) {};
    \node(1*) at (1,0) {};
    \node(2*) at (2,0) {};
    \node(3*) at (3,0) {};    
    \draw[thick] (0*) to (1*) to node[midway,above,fill=none,font=\small] {1} (0*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);    
    \node(0*) at (0,0) {};
    \node(1*) at (1,0) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};    
    \draw[thick] (0*) to (1*) to node[midway,above,fill=none,font=\small] {1} (0*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,0) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*) to node[midway,above,fill=none,font=\small] {1} (0*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {2} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,0) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,0) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {2} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}

\vspace{.3in}

\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {2} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {3} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {1} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {2} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {2} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {2} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*) to node[midway,above,fill=none,font=\small] {3} (1*);
    \draw[thick] (2*) to (3*) to node[midway,above,fill=none,font=\small] {2} (2*);
\end{tikzpicture}
\hspace{.22in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (3,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,2) {};
    \node(3*) at (3,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*);
\end{tikzpicture}
\caption{All paths in $\mathcal{M}_{3,0}^2 (\vec{\alpha},\vec{\beta})$ with $\vec{\alpha} = (1,2)$, $\vec{\beta} = (3,3)$.}
\label{2fig:higher_order_colored_Motzkin_paths_example}
\end{figure}

Higher-order Motzkin paths (with colored edges) have previously appeared in the literature, as a special case of the ``simple excursions" studied by Banderier and Flajolet \cite{BaFl}.  Our approach differs from that of Banderier and Flajolet in that we distinguish between steps that end at height $y=0$ and steps that end at height $y &gt; 0$.  This means that many results from Subsection \ref{subsec:general_properties_of_higher_order_Motzkin_triangles} may be recovered from Banderier and Flajolet if we restrict ourselves to the specific case of $\vec{\alpha} = \vec{\beta}$.

It is once again clear that $M_{n,m}^\ell(\vec{\alpha},\vec{\beta})=0$ unless $0 \leq m \leq n$, as well as that $M_{0,0}^\ell (\vec{\alpha},\vec{\beta}) = 1$.  For any pair $\vec{\alpha},\vec{\beta}$, we may then assemble an infinite, lower-triangular array whose $(n,m)$ entry is $M_{n,m}^\ell(\vec{\alpha},\vec{\beta})$.  We call this triangle the \emph{$(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle}.

As with the $(\alpha,\beta)$-colored Motzkin triangle of Section \ref{sec:intro}, the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle is a proper Riordan array for every choice of $\vec{\alpha}$ and $\vec{\beta}$:
\begin{proposition}
\label{2thm:higher_order_Motzkin_triangle_as_Riordan_array}
Fix $\ell \geq 1$, and let $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{\ell-1})$, $\vec{\beta} = (\beta_0,\hdots,\beta_{\ell-1})$ be any pair of $\ell$-tuples of non-negative integers.  Then the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle is a proper Riordan array with $A$- and $Z$-sequences

$$A(t) = 1 + \beta_0 t + \cdots + \beta_{\ell-1} t^\ell + t^{\ell+1}, \hspace{.3in}
Z(t) = \alpha_0 + \alpha_1 t + \cdots + \alpha_{\ell-1} t^{\ell-1} + t^\ell.$$
\end{proposition}
\begin{proof}
In a manner similar to the proof of Proposition \ref{1thm:Motzkin_triangle_recursion}, we demonstrate the recurrences
$$M_{n,m}^\ell(\vec{\alpha},\vec{\beta}) = 
\begin{cases}
M_{n-1,m-1}^\ell(\vec{\alpha},\vec{\beta}) + \beta_0 M_{n-1,m}^\ell(\vec{\alpha},\vec{\beta}) + \cdots + M_{n-1,m+\ell}^\ell(\vec{\alpha},\vec{\beta}), &amp; \text{if } m \geq 1; \\[6pt]
\alpha_0 M_{n-1,0}^\ell(\vec{\alpha},\vec{\beta}) + \alpha_1 M_{n-1,1}^\ell(\vec{\alpha},\vec{\beta}) + \cdots + M_{n-1,\ell}^\ell(\vec{\alpha},\vec{\beta}), &amp; \text{if } m =1.
\end{cases}$$

For $m \geq 1$, we partition the paths of $\mathcal{M}_{n,m}^\ell(\vec{\alpha},\vec{\beta})$ according to their final step.  Those paths that end with a $U$ step are in bijection with $\mathcal{M}_{n-1,m-1}^\ell(\vec{\alpha},\vec{\beta})$, and those that end with a $D_i$ step of a fixed color are in bijection with $\mathcal{M}_{n-1,m+i}^\ell(\vec{\alpha},\vec{\beta})$, for every $0 \leq i \leq \ell$ and for each of the $\beta_i$ colors of that $i$.  The $m=1$ case is similar, although here the elements of $\mathcal{M}_{n,m}^\ell(\vec{\alpha},\vec{\beta})$ cannot end with a $U$ step and the $D_i$ steps can carry one of $\alpha_i$ possible colors.
\end{proof}

Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array} may be used to quickly generate elements of the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle.  In the order-$\ell$ case, the $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers of order $\ell$ constitute a $2\ell$-dimensional array of integer sequences that can be compared to previously-studied results, as in Table \ref{1tab:Catalanlike_numbers}.  Appendix \ref{sec:appendix} presents a series of tables that test the resulting sequences against OEIS \cite{OEIS}, for a variety of ``nice" choices of $\vec{\alpha},\vec{\beta}$ in the $\ell=2$ case.

\subsection{General properties of colored Motzkin triangles}
\label{subsec:general_properties_of_higher_order_Motzkin_triangles}

We begin by proving a number of general identities involving the $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers and their associated Riordan arrays.  Much of what follows is most easily cast in terms of generating functions.  As such, for any $m,\ell,\vec{\alpha},\vec{\beta}$ we define the ordinary generating function $M^\ell_m(\vec{\alpha},\vec{\beta},t) = \sum_{n=0}^\infty M_{n,m}^\ell(\vec{\alpha},\vec{\beta}) t^n$.  In the specific case of $\ell=1$, many of the results below follow directly from the work of Flajolet \cite{Fl}, whereas the special case of $\vec{\alpha}=\vec{\beta}$ is in alignment with the results of Banderier and Flajolet \cite{BaFl}.

Our first result relates the $m \geq 1$ columns of the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle to the $m=0$ column, letting us characterize the $d(t),h(t)$ series of the associated Riordan arrays.    
\begin{proposition}
\label{2thm:heightm_Motzkin_paths_as_height0_convolutions}
Fix $\ell \geq 1$ and take any pair of $\ell$-tuples of non-negative integers $\vec{\alpha},\vec{\beta}$.  For every $m \geq 1$,

$$M_m^\ell(\vec{\alpha},\vec{\beta},t) = t M_0^\ell(\vec{\alpha},\vec{\beta},t) M_{m-1}^\ell(\vec{\beta},\vec{\beta},t) = t^m M_0^\ell(\vec{\alpha},\vec{\beta},t) M_0^\ell(\vec{\beta},\vec{\beta},t)^m.$$
\end{proposition}
\begin{proof}
Every height-$m$ path may be decomposed into a height-$0$ path and a height-$(m-1)$ path as shown below, with the intermediate $U$ step in that image being the rightmost $U$ step that ends at height $1$.  The labels inside the boxes denote the colorings applicable to each subpath, with the second coloration changing because none of its steps terminate at an overall height of $0$.
\begin{center}
\begin{tikzpicture}
	[scale=.45,auto=left,every node/.style={circle,fill=black,inner sep=0pt,outer sep=0pt}]
	\draw[fill=gray!20!](0,0) rectangle (6,3);
	\node[fill=none] (b1) at (3,1.5) {\scalebox{1.5}{$(\vec{\alpha},\vec{\beta})$}};
	\draw[thick] (6,0) to (7,1);
	\draw[fill=gray!20!](7,1) rectangle (13,4);
	\node[fill=none] (b1) at (10,2.5) {\scalebox{1.5}{$(\vec{\beta},\vec{\beta})$}};	
	\node[inner sep=1.5pt] (1) at (0,0) {};
	\node[inner sep=1.5pt] (2) at (6,0) {};
	\node[inner sep=1.5pt] (3) at (7,1) {};
	\node[inner sep=1.5pt] (4) at (13,3) {};
	\node[inner sep=0pt,fill=none] (5) at (14.5,3) {$(n,m)$};
\end{tikzpicture}
\end{center}

The decomposition implied above immediately demonstrates the first equality.  The second equality follows from repeated application of the first equality.
\end{proof}
\begin{corollary}
\label{2thm:colored_Motzkin_triangles_as_Riordan_arrays}
For any $\ell \geq 1$ and any pair of $\ell$-tuples of non-negative integers $\vec{\alpha},\vec{\beta}$, the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle is the proper Riordan array $\mathcal{R}(d(t),h(t))$ with $d(t) = M_0^\ell(\vec{\alpha},\vec{\beta},t)$ and $h(t) = t M_0^\ell (\vec{\beta},\vec{\beta},t)$.
\end{corollary}
\begin{proof}
From Proposition \ref{2thm:heightm_Motzkin_paths_as_height0_convolutions}, we see that the $j^{th}$-column of the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle has generating function $t^j M_0^\ell(\vec{\alpha},\vec{\beta},t) M_0^\ell(\vec{\beta},\vec{\beta},t)^j = M_0^\ell(\vec{\alpha},\vec{\beta},t) \left( t M_0^\ell(\vec{\beta},\vec{\beta},t) \right)^j$.
\end{proof}

Unfortunately, Corollary \ref{2thm:colored_Motzkin_triangles_as_Riordan_arrays} is only of practical use if we have an explicit formula for the generating functions $M_0^\ell(\vec{\alpha},\vec{\beta},t)$, and such a formula will not be attempted here.  Still of conceptual interest is the well-known fact that the row-sums of the Riordan array $\mathcal{R}(d(t),h(t))$ has generating function $d(t) / (1-h(t))$.  As the row-sums of the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle enumerate $(\vec{\alpha},\vec{\beta})$-Motzkin paths of length $n$ and any height $m \geq 0$, we have:

\begin{corollary}
\label{2thm:rowsums_of_Motzkin_triangle}
For any $\ell \geq 1$ and any pair of $\ell$-tuples of non-negative integers $\vec{\alpha},\vec{\beta}$, the generating function for $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths of length $n$ and any height $m \geq 0$ is
$$\sum_{m=0}^\infty M_m^\ell(\vec{\alpha},\vec{\beta},t) = \frac{M_0^\ell(\vec{\alpha},\vec{\beta},t)}{1-t M_0^\ell(\vec{\beta},\vec{\beta},t)} = M_0^\ell(\vec{\alpha},\vec{\beta},t) \left( 1 + t M_0^\ell(\vec{\beta},\vec{\beta},t) + t^2 M_0^\ell(\vec{\beta},\vec{\beta},t)^2 + \cdots \right).$$
\end{corollary}

Of greater practical importance is the alternative characterization of row-sums presented below, which applies only when $\vec{\alpha} = \vec{\beta}$.  In Section \ref{sec:combinatorial_interpretations}, this result will allow us to immediately translate every combinatorial interpretations for $(\vec{\alpha},\vec{\alpha})$-colored Motzkin numbers into an associated combinatorial interpretation for $(\vec{\alpha}+\hat{e}_1,\vec{\alpha})$-colored Motzkin numbers.

\begin{theorem}
\label{2thm:rowsums_of_Motzkin_triangle_color_change_version}
Fix $\ell \geq 1$ and take any $\ell$-tuple of non-negative integers $\vec{\alpha}$.  If $\hat{e}_1 = (1,0,\hdots,0)$, the generating function for $(\vec{\alpha},\vec{\alpha})$-colored Motzkin paths of length $n$ and any height $m \geq 0$ is
$$\sum_{m=0}^\infty M_m^\ell(\vec{\alpha},\vec{\alpha},t) = M_0^\ell (\vec{\alpha}+\hat{e}_1,\vec{\alpha},t).$$
\end{theorem}
\begin{proof}
We construct a bijection $\phi_n$ from $S = \bigcup_{m=0}^\infty \mathcal{M}_{n,m}^\ell(\vec{\alpha},\vec{\alpha})$ to $\mathcal{M}_{n,0}^\ell(\vec{\alpha}+\hat{e}_1,\vec{\alpha})$, for arbitrary $n \geq 0$.  So take any path $P \in S$, and assume that $P$ has height $m$.  Then $P$ contains precisely $m$ up steps that are ``visible" from the right, meaning that they are the rightmost $U$ steps at their particular height.  Replacing these $U$ steps with (temporarily-uncolored) level steps yields a path with $m$ uncolored $D_0$ steps at height $y=0$.  Coloring these $D_0$ steps with a new color $\alpha_0+1$ results in a unique element $\phi_n(P) \in \mathcal{M}_{n,0}^\ell(\vec{\alpha}+\hat{e}_1,\vec{\alpha})$.

See Figure \ref{2fig:rowsum_bijection_example} for an example of this map $\phi_n$.  This process is clearly invertible.  As the only $D_0$ steps at height $0$ with the new color $\alpha_0+1$ are those added by $\phi_n$, the inverse map $\phi_n^{-1}$ involves replacing all $D_0$ steps of color $(\alpha_0+1)$ with $U$ steps.
\end{proof}
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (9,0);
    \draw[thick, dash dot, color = red] (4.5,.5) to (9,.5);
    \draw[thick, dash dot, color = red] (7.5,1.5) to (9,1.5);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,2) {};
    \node(4*) at (4,0) {};
    \node(5*) at (5,1) {};
    \node(6*) at (6,2) {};
    \node(7*) at (7,1) {};
    \node(8*) at (8,2) {};
    \node(9*) at (9,2) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to node[midway,above,fill=none,font=\small] {1} (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick,color=red] (4*) to (5*);
    \draw[thick] (5*) to (6*);
   	\draw[thick] (6*) to node[midway,above,fill=none,font=\small] {1} (7*);
    \draw[thick,color=red] (7*) to (8*);
    \draw[thick] (8*) to node[midway,above,fill=none,font=\small] {1} (9*);
\end{tikzpicture}
\hspace{.3in}
\scalebox{2}{\raisebox{7pt}{$\Leftrightarrow$}}
\hspace{.3in}
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (9,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,2) {};
    \node(4*) at (4,0) {};
    \node(5*) at (5,0) {};
    \node(6*) at (6,1) {};
    \node(7*) at (7,0) {};
    \node(8*) at (8,0) {};
    \node(9*) at (9,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to node[midway,above,fill=none,font=\small] {1} (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick,color=red] (4*) to node[midway,above,fill=none,font=\small] {2} (5*);
    \draw[thick] (5*) to (6*);
   	\draw[thick] (6*) to node[midway,above,fill=none,font=\small] {1} (7*);
    \draw[thick,color=red] (7*) to node[midway,above,fill=none,font=\small] {2} (8*);
    \draw[thick] (8*) to node[midway,above,fill=none,font=\small] {1} (9*);
\end{tikzpicture}
\caption{An example of the bijection from the proof of Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version}, here with $\ell=2$, $m=2$, and $\vec{\alpha} = (1,1)$.}
\label{2fig:rowsum_bijection_example}
\end{figure}

The proof of Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version} does not extend to the colorations where $\vec{\alpha} \neq \vec{\beta}$, as the bijection $\phi_n$ may translate $D_i$ steps that end at nonzero height to $D_i$ steps that end at height $0$.  One may still apply Proposition \ref{2thm:heightm_Motzkin_paths_as_height0_convolutions} to Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version} to obtain the more general formula below.
\begin{corollary}
\label{2thm:rowsums_of_Motzkin_triangle_color_change_version_corollary}
Fix $\ell \geq 1$ and take any pair of $\ell$-tuples of non-negative integers $\vec{\alpha},\vec{\beta}$.  If $\hat{e}_1 = (1,0,\hdots,0)$, the generating function for $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths of length $n$ and any height $m \geq 0$ is
$$\sum_{m=0}^\infty M_m^\ell(\vec{\alpha},\vec{\beta},t) = M_0^\ell(\vec{\alpha},\vec{\beta},t) + t M_0^\ell(\vec{\alpha},\vec{\beta},t) M_0^\ell (\vec{\beta}+ \hat{e}_1,\vec{\beta},t).$$
\end{corollary}
\begin{proof}
Partially-expanding the summation $\sum_{m=0}^\infty M_m^\ell(\vec{\alpha},\vec{\beta},t)$ and applying Proposition \ref{2thm:heightm_Motzkin_paths_as_height0_convolutions} to every $M_m^\ell(\vec{\alpha},\vec{\beta},t)$ with $m \geq 1$ gives
$$ \sum_{m=0}^\infty M_m^\ell(\vec{\alpha},\vec{\beta},t) = M_0^\ell(\vec{\alpha},\vec{\beta},t) + \sum_{m=1}^\infty M_m^\ell(\vec{\alpha},\vec{\beta},t) = M_0^\ell(\vec{\alpha},\vec{\beta},t) + \sum_{m=1}^\infty t M_0^\ell(\vec{\alpha},\vec{\beta},t) M_{m-1}^\ell (\vec{\beta},\vec{\beta},t).$$

Rewriting the expression above and applying Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version} to the result gives
$$= M_0^\ell(\vec{\alpha},\vec{\beta},t) + t M_0^\ell(\vec{\alpha},\vec{\beta},t) \sum_{m=0}^\infty M_{m}^\ell (\vec{\beta},\vec{\beta},t) = M_0^\ell(\vec{\alpha},\vec{\beta},t) + t M_0^\ell(\vec{\alpha},\vec{\beta},t) M_0^\ell (\vec{\beta}+\hat{e}_1,\vec{\beta},t).$$
\end{proof}

We now turn to results involving standard transforms of $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers.  Given an integer sequence $( a_i )_{i \geq 0}$, recall that the binomial transform of that sequence is the integer sequence $( b_i )_{i \geq 0}$ that satisfies $b_n = \sum_{i=0}^n \binom{n}{i} a_i$ for all $n \geq 0$.  The following theorem characterizes the binomial transform of an arbitrary column in the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle.  It should be noted that the $\ell=1,m=0$ case of this theorem, along with the combinatorial interpretation shown in Table \ref{1tab:Catalanlike_numbers}, recovers the well-known result that the binomial transform of the Motzkin numbers is the (shifted) Catalan numbers.
\begin{theorem}
\label{2thm:binomial_transform_of_colored_Motzkin_numbers}
Fix $\ell \geq 1$ and $m \geq 0$, and take any pair of $\ell$-tuples of non-negative integers $\vec{\alpha},\vec{\beta}$.  If $\hat{e}_1 = (1,0,\hdots,0)$, the binomial transform of the sequence $( M_{n,m}^\ell(\vec{\alpha},\vec{\beta}) )_{n \geq 0}$ is the sequence $( M_{n,m}^\ell(\vec{\alpha} + \hat{e}_1,\vec{\beta} + \hat{e}_1) )_{n \geq 0}$.  Explicitly,

$$\sum_{i=0}^n \binom{n}{i} M_{i,m}^\ell(\vec{\alpha},\vec{\beta}) = M_{n,m}^\ell (\vec{\alpha} + \hat{e}_1,\vec{\beta} + \hat{e}_1).$$
\end{theorem}
\begin{proof}
The set $\mathcal{M}_{n,m}^\ell (\vec{\alpha} + \hat{e}_1,\vec{\beta} + \hat{e}_1)$ may be partitioned into the subsets $\bigcup_{i=0}^{n-m} S_i$, where a path $P \in \mathcal{M}_{n,m}^\ell (\vec{\alpha} + \hat{e}_1,\vec{\beta} + \hat{e}_1)$ lies in $S_i$ if and only if it contains precisely $i$ level steps of the final color for its given height ($i$ total $D_0$ steps colored either $\alpha_0+1$ or $\beta_0+1$).  Deleting those $D_0$ steps defines map $\psi_i: S_i \rightarrow \mathcal{M}_{n-i,m}^\ell(\vec{\alpha},\vec{\beta})$ for each $0 \leq i \leq n-m$.  Each map $\psi_i$ is clearly surjective but not injective, with differing locations for the $i$ deleted level steps ensuring that $\binom{n}{i}$ distinct elements of $S_i$ map to each path in $\mathcal{M}_{n-i,m}^\ell(\vec{\alpha},\vec{\beta})$.  It follows that $\vert S_i \vert = \binom{n}{i} M_{n-i,m}^\ell(\vec{\alpha},\vec{\beta})$ for all $0 \leq i \leq n-m$, from which the result follows. 
\end{proof}

\section{Combinatorial interpretations of higher-order colored Motzkin numbers}
\label{sec:combinatorial_interpretations}

For the remainder of this paper, we develop bijections between a variety of well-understood combinatorial objects and collections of $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths.  This will result in a collection of new combinatorial interpretations for $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers that directly generalize the order $\ell=1$ combinatorial interpretations of Table \ref{1tab:Catalanlike_numbers}.

\subsection{Higher-order colored Motzkin numbers and k-Dyck paths}
\label{subsec:kDyck_paths}

Our first set of combinatorial objects are $k$-Dyck paths, sometimes referred to as $k$-ary paths.  For any $k \geq 2$, a $k$-Dyck path of length $n$ and height $m$ is an integer lattice path from $(0,0)$ to $(n,m)$ that uses the step set $\lbrace U = (1,1), D_{k-1} = (1,1-k) \rbrace$ and remains weakly above $y=0$.  It is obvious that $k$-Dyck paths are in bijection with $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths of order $(k-1)$ and coloring $\vec{\alpha}=\vec{\beta}=\vec{0}$.  We look for more interesting bijections here.

It can be shown that a point $(x,y)$ may lie on a $k$-Dyck path only if $n \equiv \modd{m} {k}$.  This motivates our choice of dealing only with $k$-Dyck paths of length $kn$ for some $n \geq 0$.  We denote the collection of $k$-Dyck paths of length $kn$ (``semilength" $n$) and height $km$ (``semiheight" $m$) by $\mathcal{D}_{n,m}^k$, and let $\vert \mathcal{D}_{n,m}^k \vert = D_{n,m}^k$.

It is well-known that $k$-Dyck paths of height $0$ are enumerated by the $k$-Catalan numbers (one-parameter Fuss-Catalan numbers) as $D_{n,0}^k = C_n^k = \frac{1}{kn+1}\binom{kn+1}{n}$.  Fixing $k \geq 2$, we define the ordinary generating function $C_k(t) = \sum_{n=0}^\infty C_n^k t^n$.  It is also well-known that these generating functions satisfy $C_k(t) = 1 + t C_k(t)^k$ for all $k \geq 2$.  For more information about $k$-Dyck paths and other combinatorial interpretations of the $k$-Catalan numbers, see Hilton and Pedersen \cite{HP} or Heubach, Li and Mansour \cite{HLM}.  

In the order $\ell=1$ case, Table \ref{1tab:Catalanlike_numbers} reveals a bijection between $\mathcal{D}_{n,0}^2$ and $(2,2)$-colored Motzkin paths, as well as a bijection between $\mathcal{D}_{n+1,0}^2$ and $(1,2)$-colored Motzkin paths.  These are the bijections that we look to generalize in this subsection.  To do this, begin by observing that $\mathcal{D}_{n+1,0}^2$ is in bijection with ``generalized $2$-Dyck paths" of semilength $n$ that stay weakly above the line $y=-1$, via the map that deletes the initial $U$ step and final $D_1$ step of each $P \in \mathcal{D}_{n+1,0}^2$.

So fix $k \geq 2$ and take any $a \geq 0$.  We define a \emph{generalized $k$-Dyck path of depth $a$}, semilength $n$, and semiheight $m$ to be an integer lattice path from $(0,0)$ to $(kn,km)$ that uses the step set $\lbrace U=(1,1),D_{k-1} = (1,1-k)\rbrace$ and stays weakly above the line $y = -a$.  By analogy with above, we denote the set of all such paths by $\mathcal{D}_{n,m}^{k,a}$ and let $\vert \mathcal{D}_{n,m}^{k,a} \vert = D_{n,m}^{k,a}$.

The sets $\mathcal{D}_{n,m}^{k,a}$ were investigated as ``$k$-Dyck paths with a negative boundary" by Prodinger \cite{Prodinger}, who showed that $D_{n,0}^{k,a} = \frac{a+1}{kn+a+1} \binom{kn+a+1}{n}$ when $0 \leq a \leq k-1$.  Our results will apply over the same range of depths and may be applied to give an alternative derivation of Prodinger's closed formula in terms of proper Riordan arrays.

Now fix $k \geq 2$ and $a \geq 0$, and define $D^{k,a}$ to be the infinite, lower-triangular array of non-negative integers whose $(n,m)$ entry (for $0 \leq m \leq n$) is $D_{n,m}^{k,a}$.  Our approach is to show that these integer triangles represent the same proper Riordan arrays as $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangles for particular choices of $\vec{\alpha},\vec{\beta}$.
\begin{theorem}
\label{3thm:Dyck_triangle_A_and_Z_sequences}
For any $k \geq 2$ and $0 \leq a \leq k-1$, $D^{k,a}$ is a proper Riordan array with $A$- and $Z$-sequences
$$A(t) = (1+t)^k, \hspace{.5in} Z(t) = \frac{(1+t)^k - (1+t)^{k-a-1}}{t}.$$
\end{theorem}
\begin{proof}
As in the proof of Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array}, it suffices to prove the recurrences

$$D_{n,m}^{k,a} = 
\begin{cases}
\binom{k}{0} D_{n-1,m-1}^{k,a} + \cdots + \binom{k}{k} D_{n-1,m+k-1}^{k,a}, &amp; \text{if } m \geq 1; \\[6pt]
\left( \binom{k}{1} - \binom{k-a-1}{1} \right) D_{n-1,0}^{k,a} + \cdots + \left( \binom{k}{k} - \binom{k-a-1}{k} \right) D_{n-1,k-1}^{k,a}, &amp; \text{if } m =0.
\end{cases}$$

For any $m \geq 0$, we partition $\mathcal{D}_{n,m}^{k,a}$ into sets $S_{Q_2}$ whereby $P \in \mathcal{D}_{n,m}^{k,a}$ lies in $S_{Q_2}$ if $P$ decomposes as $P = Q_1 Q_2$ for the length-$k$ terminal subpath $Q_2$.  For $P = Q_1 Q_2$, observe that $Q_1 \in \mathcal{D}_{n-1,m-1+j}^{k,a}$ if $Q_2$ contains precisely $j$ down steps.  This implies that $\vert S_{Q_2} \vert = D_{n-1,m-1+j}^{k,a}$ for every valid choice of $Q_2$, via the bijection that takes $P = Q_1 Q_2$ to $Q_1$.

All that's left is to enumerate length-$k$ subpaths $Q_2$ that end with semiheight $m \geq 0$, contain precisely $0 \leq j \leq k$ down steps, and remain weakly above $y=-a$.  When $m \geq 1$, it is impossible for such a subpath (for any $j$) to go below $y=0$ and still end at height $(k-1)m$.  This would require a full complement of $k$ up steps to travel from $y=-1$ to a height of at least $(k-1)$, and we're assuming that $Q_2$ began with non-negative height.  It follows that there are $\binom{k}{j}$ valid choices of $Q_2$ with precisely $j$ down steps when $m \geq 1$, giving the first line of our desired recurrence.

When $m = 0$, not all $\binom{k}{j}$ potential subpaths $Q_2$ will remain weakly above $y=-a$.  We enumerate the ``bad" length-$k$ subpaths that that go below $y=-a$.  Every such ``bad" subpath $Q_2$ has a rightmost step $p$ that terminates at height $-a-1$.  We claim that $p$ may only be followed by up steps.  This is because, if $p$ were followed by any $D_{k-1}$ steps, then $p$ would also need to be followed by at least $(k-1)+(a+1) \geq k$ up steps if we want $Q_2$ to end at height $0$.  It follows that ``bad" subpaths $Q_2$ must decompose as $Q_2 = Q_3 p U^{a+1}$, with the $j$ down steps of $Q_2$ being distributed among the $k-a-1$ steps of the sub-subpath $Q_3 p$.  It follows that there are precisely $\binom{k-a-1}{j}$ ``bad" choices of $Q_2$ with precisely $j$ down steps, and thus that there are precisely $\binom{k}{j} - \binom{k-a-1}{j}$ valid choices of $Q_2$ with precisely $j$ down steps.  This gives the second line of our desired recurrence.
\end{proof}
\begin{corollary}
\label{3thm:Dyck_paths_vs_colored_Motzkin_paths}
Fix $k \geq 2$.  For all $n \geq 0$, $0 \leq m \leq n$, and $0 \leq a \leq k-1$, the equality $D_{n,m}^{k,a} = M_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ holds for $(k-1)$-tuples $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{k-2})$ and $\vec{\beta}=(\beta_0,\hdots,\beta_{k-2})$ with $\alpha_i = \binom{k}{i+1} - \binom{k-a-1}{i+1}$ and $\beta_i = \binom{k}{i+1}$ for all $0 \leq i \leq k-2$.
\end{corollary}
\begin{proof}
This follows directly from a comparison of Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array} and Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences}.
\end{proof}

Note the order shift of Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths}: generalized $k$-Dyck paths correspond to order-$(k-1)$ colored Motzkin paths.  Also notice this represents a bijection between generalized Dyck paths of length $kn$ and colored Motzkin paths of length $n$.  The reason that Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences} and Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths} fail to generalize to $a \geq k$ is because generalized Dyck paths of those depths may have negative semidepth $m$, making it is impossible to arrange the cardinalities $D_{n,m}^{k,a}$ into a proper Riordan array.

For $k=2,3,4$, the $(k-1)$-tuples $(\vec{\alpha},\vec{\beta})$ that result from Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths} are summarized in Table \ref{3tab:kDyck_paths}.  See Appendix \ref{sec:appendix} for how these colorations fit within the broader scheme of $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths.
\begin{table}[ht!]
\centering
\begin{tabular}{|c|c|c|c|c|}
\hline
$\vec{\alpha},\vec{\beta}$ &amp; ${a=0}$ &amp; ${a=1}$ &amp; ${a=2}$ &amp; ${a=3}$ \\ \hline
${k=2}$ &amp; $(1),(2)$ &amp; $(2),(2)$ &amp; --- &amp; ---\\ \hline
${k=3}$ &amp; $(1,2), (3,3)$ &amp; $(2,3), (3,3)$ &amp; $(3,3), (3,3)$ &amp; ---\\ \hline
${k=4}$ &amp; $(1,3,3),(4,6,4)$ &amp; $(2,5,4),(4,6,4)$ &amp; $(3,6,4),(4,6,4)$ &amp; $(4,6,4),(4,6,4)$\\ \hline
\end{tabular}
\caption{$(k-1)$-tuples $\vec{\alpha},\vec{\beta}$ such that $D_{n,m}^{k,a} = M_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$, as proven in Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths}.}
\label{3tab:kDyck_paths}
\end{table}

As it will be helpful in upcoming subsections, we briefly outline one explicit bijection between $\mathcal{D}_{n,m}^{k,a}$ and $\mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ for the tuples $\vec{\alpha},\vec{\beta}$ of Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths}.  So take $P \in \mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$, and take any step $p$ of $P$ that begins at height $y_1$ and ends at height $y_2$.  We replace $p$ with a length-$k$ subpath with step set $\lbrace U,D_{k-1} \rbrace$ that begins at height $k y_1$ and ends at height $k y_2$.  If $p$ is a $U$ step, the only way to do this is with a subpath of $k$ consecutive $U$ steps.  If $p$ is a $D_i$ step, the new subpath must contain precisely $i+1$ total $D_{k-1}$ steps and $k-i-1$ total $U$ steps.  There are $\binom{k}{i+1}$ such length-$k$ subpaths: the specific subpath chosen is determined by the coloring of the $D_i$ step being replaced.  All such length-$k$ subpaths stay above $y=0$ (and hence above $y=-a$) when $y_2 \geq 1$, whereas some subpaths may go below $y=-a$ when $y_2 = 0$.  The colorations $(\vec{\alpha},\vec{\beta})$ of Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths} provide the number of valid length-$k$ subpaths.  See Figure \ref{3fig:Motzkin_to_kDyck_bijection_example} for an example of this bijection.
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (6,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,0) {};
    \node(2*) at (2,1) {};
    \node(3*) at (3,1) {};
    \node(4*) at (4,1) {};
    \node(5*) at (5,0) {};
    \node(6*) at (6,0) {};
    \draw[thick] (0*) to node[midway,above,fill=none,font=\small] {1} (1*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to node[midway,above,fill=none,font=\small] {2} (3*);
    \draw[thick] (3*) to node[midway,above,fill=none,font=\small] {1} (4*);
    \draw[thick] (4*) to (5*);
    \draw[thick] (5*) to node[midway,above,fill=none,font=\small] {2} (6*);
\end{tikzpicture}
\hspace{.3in}
\scalebox{2.5}{\raisebox{4pt}{$\Leftrightarrow$}}
\hspace{.3in}
\raisebox{-10pt}{
\begin{tikzpicture}
    [scale=.4, auto=left, every node/.style = {circle, fill=black, inner sep=1.1pt}]
    \draw[thick, dotted, color = black] (0,0) to (12,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,0) {};
    \node(3*) at (3,1) {};
    \node(4*) at (4,2) {};
    \node(5*) at (5,1) {};
    \node(6*) at (6,2) {};
    \node(7*) at (7,3) {};
    \node(8*) at (8,2) {};
    \node(9*) at (9,1) {};
    \node(10*) at (10,0) {};
    \node(11*) at (11,-1) {};
    \node(12*) at (12,0) {};
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick] (4*) to (5*);
    \draw[thick] (5*) to (6*);
   	\draw[thick] (6*) to (7*);
    \draw[thick] (7*) to (8*);
    \draw[thick] (8*) to (9*);
    \draw[thick] (9*) to (10*);
    \draw[thick] (10*) to (11*);
    \draw[thick] (11*) to (12*);
\end{tikzpicture}}
\caption{An example of our bijection between $\mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ and $\mathcal{D}_{n,m}^{k,a}$ for $k=2$ and $a=1$.  Here, $U$ steps in the Motzkin path are replaced by a $UU$ subpath in the $2$-Dyck , $D_1$ steps are replaced by $DD$, $D_0$ steps of color $1$ are replaced by $UD$, and $D_0$ steps of color $2$ are replaced by $DU$.  Notice that forbidding $D_0$ steps of color $2$ at height $y=0$ prevents the resulting $2$-Dyck path from dropping below $y=0$.}
\label{3fig:Motzkin_to_kDyck_bijection_example}
\end{figure}

Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences} may be used to find the generating functions $d(t),h(t)$ of the proper Riordan array $\mathcal{R}(d(t),h(t))$ with entries $D_{n,m}^{k,a}$.  As seen in Corollary \ref{3thm:Dyck_path_triangles_as_FussCatalan_triangles}, these Riordan arrays are ``Fuss-Catalan triangles" of the type introduced by He and Shapiro \cite{HS} and further examined by Drube \cite{Drube}.
\begin{corollary}
\label{3thm:Dyck_path_triangles_as_FussCatalan_triangles}
For any $k \geq 2$ and $0 \leq a \leq k-1$, $D^{k,a}$ is the proper Riordan array $\mathcal{R}(d(t),h(t))$ with $d(t) = C_k(t)^{a+1}$ and $h(t) = t C_k(t)^k$.
\end{corollary}
\begin{proof}
Given $A(t)$ and $Z(t)$ from Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences}, we merely need to verify the identities of \eqref{1eq:A_and_Z_sequences_vs_dtht}.  Using the $k$-Catalan identity $C_k(t) = 1 + t C_k(t)^k$, we have

$$t A(h(t)) = t (1 + t C_k(t)^k)^k = t C_k(t)^k = h(t), \text{ and}$$

$$\frac{d(0)}{1 - t Z(h(t))} = \frac{1}{1 - t \left( \frac{(1+t C_k(t)^k)^k - (1 + t C_k(t)^k)^{k-a-1}}{t C_k(t)^k}\right)} = \frac{1}{1- \frac{C_k(t)^k - C_k(t)^{k-a-1}}{C_k(t)^k}}$$
$$= \frac{1}{\frac{C_k(t)^k - C_k(t)^k + C_k(t)^{k-a-1}}{C_k(t)^k}} = \frac{C_k(t)^k}{C_k(t)^{k-a-1}} = C_k(t)^{a+1} = d(t).$$
\end{proof}

For one final result involving $k$-Dyck paths, notice that the $a=k-1$ case of Corollary \ref{3thm:Dyck_paths_vs_colored_Motzkin_paths} places $\mathcal{D}_{n,m}^{k,k-1}$ in bijection with $\mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ for which $\vec{\alpha}=\vec{\beta}$.  We may then apply Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version} to enumerate generalized $k$-Dyck paths of fixed length and any semiheight.
\begin{corollary}
\label{3thm:Dyck_paths_row_sums}
Fix $k \geq 2$.  For all $n \geq 0$, the equality $\sum_{m=0}^n D_{n,m}^{k,k-1} = M_{n,m}^{k-1}(\vec{\alpha},\vec{\alpha})$ holds for the $(k-1)$-tuple $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{k-2})$ with $\alpha_0 = k+1$ and $\alpha_i = \binom{k}{i+1}$ for all $1 \leq i \leq k-2$. 
\end{corollary}

\subsection{Higher-order colored Motzkin numbers and (k,r)-Fine paths}
\label{subsec:kFine_paths}

Our second set of combinatorial objects are subsets of $k$-Dyck paths that we refer to as $(k,r)$-Fine paths.  These are an entirely new notion that intuitively generalize the concept of Fine paths from $k=2$ to all $k \geq 2$.

A Fine path of length $n$ and height $m$ is an element of $D_{n,m}^2$ that lacks a subpath of the form $U D_1$ ending at height $y=0$.  Forbidden subpaths of this type are called ``hills", meaning that Fine path are $2$-Dyck paths that lack hills.  It is well-known that Fine paths of height $0$ are enumerated by the Fine numbers $( F_n )_{n \geq 0}$, an integer sequence (\seqnum{A000957}) that begins $1,0,1,2,6,18,\hdots$.  The Fine numbers have an ordinary generating function $F(t)$ that satisfies $F(t) = \frac{1}{1 - t^2 C_2(t)^2} = \frac{C_2(t)}{1+ t C_2(t)}$.  For more results about Fine paths and the Fine numbers, see Deutsch and Shapiro \cite{DS}.

The notion of a ``hill" becomes more ambiguous when you generalize from $2$-Dyck paths to $k$-Dyck paths when $k &gt; 2$.  For fixed $k \geq 2$, we identify $k-1$ competing definitions for a Fuss-Catalan analogue of Fine paths, each of which forbids different classes of subpaths that end at height $0$.  So fix $k \geq 2$, and take any $1 \leq r \leq k-1$.  A \emph{$(k,r)$-Fine path} of semilength $n$ and semiheight $m$ is an element of $\mathcal{D}_{n,m}^k$ that lacks a subpath of the form $U^r D_{k-1}$ that ends at height $0$.  Clearly, $(k,r_1)$-Fine paths are a subset of $(k,r_2)$-Fine paths for all $r_1 &lt; r_2$.  See Figure \ref{3fig:generalized_Fine_path_example} for a simple example.
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
	[scale=0.45, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
	\node(0*) at (0,0) {};
	\node(1*) at (.8,1) {};
	\node(2*) at (1.6,2) {};
	\node(3*) at (2.4,3) {};
	\node(4*) at (3.2,4) {};
	\node(5*) at (4,2) {};
	\node(6*) at (4.8,0) {};
	\draw[dotted, color = black] (0*) to (6*);
	\draw[thick,black] (0*) to (1*);
	\draw[thick,black] (1*) to (2*);
	\draw[thick,black] (2*) to (3*);
	\draw[thick,black] (3*) to (4*);
	\draw[thick,black] (4*) to (5*);
	\draw[thick,black] (5*) to (6*);
\end{tikzpicture}
\hspace{.5in}
\begin{tikzpicture}
	[scale=0.45, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
	\node(0*) at (0,0) {};
	\node(1*) at (.8,1) {};
	\node(2*) at (1.6,2) {};
	\node(3*) at (2.4,3) {};
	\node(4*) at (3.2,1) {};
	\node(5*)[color=red] at (4,2) {};
	\node(6*)[color=red] at (4.8,0) {};
	\draw[dotted, color = black] (0*) to (6*);
	\draw[thick,black] (0*) to (1*);
	\draw[thick,black] (1*) to (2*);
	\draw[thick,black] (2*) to (3*);
	\draw[thick,black] (3*) to (4*);
	\draw[thick,red] (4*) to (5*);
	\draw[thick,red] (5*) to (6*);
\end{tikzpicture}
\hspace{0.5in}
\begin{tikzpicture}
	[scale=0.45, auto=left, every node/.style = {circle, fill=red, inner sep=1.25pt}]
	\node(0*) at (0,0) {};
	\node(1*) at (.8,1) {};
	\node(2*) at (1.6,2) {};
	\node(3*) at (2.4,0) {};
	\node(4*) at (3.2,1) {};
	\node(5*) at (4,2) {};
	\node(6*) at (4.8,0) {};
	\draw[dotted, color = black] (0*) to (6*);
	\draw[thick,red] (0*) to (1*);
	\draw[thick,red] (1*) to (2*);
	\draw[thick,red] (2*) to (3*);
	\draw[thick,red] (3*) to (4*);
	\draw[thick,red] (4*) to (5*);
	\draw[thick,red] (5*) to (6*);
\end{tikzpicture}
\caption{A trio of $3$-Dyck paths, the first of which is both $(3,2)$-Fine and $(3,1)$-Fine, the second of which is $(3,2)$-Fine but not $(3,1)$-Fine, and the third of which is neither $(3,2)$-Fine nor $(3,1)$-Fine.  Generalized ``hills" are shown in red.}
\label{3fig:generalized_Fine_path_example}
\end{figure}

As in Subsection \ref{subsec:kDyck_paths}, we further generalize the notion of $(k,r)$-Fine paths to paths that stay weakly above $y = -a$ for any $0 \leq a \leq k-1$.  We define a \emph{generalized $(k,r)$-Fine path of depth $a$}, semilength $n$, and semiheight $m$ to be an element of $\mathcal{D}_{n,m}^{k,a}$ lacking a subpath of the form $U^r D_{k-1}$ that ends at height $0$.  We denote the set of all such paths $\mathcal{F}_{n,m}^{k,a,r}$ and let $\vert \mathcal{F}_{n,m}^{k,a,r} \vert = F_{n,m}^{k,a,r}$.  We refer to the sequences $( F_{n,0}^{k,0,r} )_{n \geq 0}$ as the \emph{$(k,r)$-Fine numbers}.

Also mirroring Subsection \ref{subsec:kDyck_paths}, for any $k \geq 2$, $a \geq 0$, and $1 \leq r \leq k-1$ we define $F^{k,a,r}$ to be the infinite, lower-triangular array whose $(n,m)$ entry (for $0 \leq m \leq n)$ is $F_{n,m}^{k,a,r}$.  Our approach is once again to identify the proper Riordan array associated with each triangle $F^{k,a,r}$ and compare the results to Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array}.
\begin{theorem}
\label{3thm:Fine_triangle_A_and_Z_sequences}
For any $k \geq 2$, $0 \leq a \leq k-1$, and $1 \leq r \leq k-1$, $F^{k,a,r}$ is a proper Riordan array with $A$- and $Z$-sequences
$$A(t) = (1+t)^k, \hspace{.5in} Z(t) = \frac{(1+t)^k - (1+t)^{k-a-1}}{t} - (1+t)^{k-r-1}.$$
\end{theorem}
\begin{proof}
The argument is largely equivalent to the proof of Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences}.  The only difference comes in the $m=0$ case, where we also need to exclude potential length-$k$ terminal subpaths $Q_2$ that introduce a ``hill" of the form $U^r D_{k-1}$.

As a point along a $k$-Dyck path can only return to $y=0$ when its $x$-coordinate is divisible by $k$, all subpaths $Q_2$ that introduce a hill $U^r D_{k-1}$ must do so over their final $r+1$ steps.  This leaves $k-r-1$ steps at the beginning of our terminal subpath, the totality of which must begin at height $kj$ (for some $j \geq 0$) and end at height $y=k-1-r$.  It follows that, if $Q_2$ begins at height $kj$ and ends at height $0$, it must contain precisely $j+1$ steps of type $D_{k-1}$, and that precisely $j$ of those $D_{k-1}$ steps must be within its first $k-r-1$ steps. All of this means there are precisely $\binom{k-r-1}{j}$ potential subpaths $Q_2$ that begin at height $kj$, end at height $0$, and introduce a hill of the form $U^r D_{k-1}$.

Since they must reach a height of $k-1-r \geq 0$ after their first $k-r-1$ steps, the aforementioned restrictions of when a $k$-Dyck path can return to $y=0$ ensures that none of the $\binom{k-r-1}{j}$ hill-introducing subpaths $Q_2$ enumerated above can go below $y=0$.  This ensures that no potential subpaths $Q_2$ are ``doubly excluded" when citing the proof of Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences}, and we may modify the $m=0$ recurrence from that theorem to give $F_{n,0}^{k,a,r} = \left( \binom{k}{1} - \binom{k-a-1}{1} - \binom{k-r-1}{0} \right) F_{n-1,0}^{k,a,r} + \cdots + \left( \binom{k}{k} - \binom{k-a-1}{k} - \binom{k-r-1}{k-1} \right) F_{n-1,k-1}^{k,a,r}$.

The desired $A$-sequence carries over from Theorem \ref{3thm:Dyck_triangle_A_and_Z_sequences}, whereas the desired $Z$-sequence follows directly from the recurrence above.
\end{proof}
\begin{corollary}
\label{3thm:Fine_paths_vs_colored_Motzkin_paths}
Fix $k \geq 2$.  For all $n \geq 0$, $0 \leq m \leq n$, $0 \leq a \leq k-1$, and $1 \leq r \leq k-1$, the equality $F_{n,m}^{k,a,r} = M_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ holds for the $(k-1)$-tuples $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{k-2})$ and $\vec{\beta} = (\beta_0,\hdots,\beta_{k-2})$ with $\alpha_i = \binom{k}{i+1} - \binom{k-a-1}{i+1} - \binom{k-r-1}{i}$ and $\beta_i = \binom{k}{i+1}$ for all $0 \leq i \leq k-2$.
\end{corollary}
\begin{proof}
Follows from a comparison of Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array} and Theorem \ref{3thm:Fine_triangle_A_and_Z_sequences}
\end{proof}

For $k=2,3,4$ and $a=0$, the $(k-1)$-tuples $(\vec{\alpha},\vec{\beta})$ guaranteed by Corollary \ref{3thm:Fine_paths_vs_colored_Motzkin_paths} are summarized in Table \ref{3tab:kFine_paths}.  Once again, see Appendix \ref{sec:appendix} for how these colorations fit within the wider context of $(\vec{\alpha},\vec{\beta})$-colored Motzkin paths.
\begin{table}[ht!]
\centering
\begin{tabular}{|c|c|c|c|}
\hline
$\vec{\alpha},\vec{\beta}$ &amp; ${a=0,r=1}$ &amp; ${a=0,r=2}$ &amp; ${a=0,r=3}$ \\ \hline
${k=2}$ &amp; $(0),(2)$ &amp; --- &amp; ---\\ \hline
${k=3}$ &amp; $(0,1),(3,3)$ &amp; $(0,2),(3,3)$ &amp; ---\\ \hline
${k=4}$ &amp; $(0,1,2),(4,6,4)$ &amp; $(0,2,3),(4,6,4)$ &amp; $(0,3,3),(4,6,4)$\\ \hline
\end{tabular}
\caption{$(k-1)$-tuples $\vec{\alpha},\vec{\beta}$ such that $F_{n,0}^{k,a,r} = M_{n,0}^{k-1}(\vec{\alpha},\vec{\beta})$, as proven in Corollary \ref{3thm:Fine_paths_vs_colored_Motzkin_paths}.}
\label{3tab:kFine_paths}
\end{table}

The explicit bijection between $\mathcal{D}_{n,m}^{k,a}$ and $\mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$ from Subsection \ref{subsec:kDyck_paths} restricts to a bijection between $\mathcal{F}_{n,m}^{k,a,r}$ and a (distinct) set of colored Motzkin paths $\mathcal{M}_{n,0}^{k-1}(\vec{\alpha},\vec{\beta})$, with $\vec{\alpha},\vec{\beta}$ as determined by Corollary \ref{3thm:Fine_paths_vs_colored_Motzkin_paths}.  Also similar to Subsection \ref{subsec:kDyck_paths} is the fact Theorem \ref{3thm:Fine_triangle_A_and_Z_sequences} may be used to characterize the integer triangles $F^{k,a,r}$ as proper Riordan arrays:
\begin{corollary}
\label{3thm:Fine_triangles_as_FussCatalan_triangles}
For any $k \geq 2$, $0 \leq a \leq k-1$, and $1 \leq r \leq k-1$, $F^{k,a,r}$ is the proper Riordan array $\mathcal{R}(d(t),h(t))$ with $d(t) = \frac{C_k(t)^k}{C_k(t)^{k-a-1} + t C_k(t)^{2k-r-1}}$ and $h(t) = t C_k(t)^k$.
\end{corollary}
\begin{proof}
We use $A(t), Z(t)$ from Theorem \ref{3thm:Fine_triangle_A_and_Z_sequences} to verify the identities of \eqref{1eq:A_and_Z_sequences_vs_dtht}.  As $A(t)$ is the same as in Subsection \ref{subsec:kDyck_paths}, verification of $h(t)$ is identical to the proof of Corollary \ref{3thm:Dyck_path_triangles_as_FussCatalan_triangles}.  Verification of $d(t)$ now takes the form

$$\frac{d(0)}{1 - t Z(h(t))} = \frac{1}{1 - \left( \frac{(1 + t C_k(t)^k)^k - (1 + t C_k(t)^k)^{k-a-1}}{t C_k(t)^k} - (1 + t C_k(t)^k)^{k-r-1} \right)}$$
$$= \frac{1}{1 - t \left( \frac{C_k(t)^k - C_k(t)^{k-a-1}}{t C_k(t)^k} - C_k(t)^{k-r-1} \right)} = \frac{1}{1 - 1 + \frac{C_k(t)^{k-a-1}}{C_k(t)^k} + t C_k(t)^{k-r-1}}$$
$$\frac{C_k(t)^k}{C_k(t)^{k-a-1} + t C_k(t)^{2k-r-1}} = d(t).$$
\end{proof}

Substituting $a=0$ into $d(t)$ from Corollary \ref{3thm:Fine_triangles_as_FussCatalan_triangles} provides a relatively simple relationship for the generating function $F_{k,r}(t)$ of the $(k,r)$-Fine numbers $( F_{n,0}^{k,0,r} )_{n \geq 0}$ as $F_{k,r}(t) = \frac{C_k(t)}{1 + t C_k(t)^{k-r}}$.  Observe that this formula simplifies to the well-known relationship of $F(t) = \frac{C_2(t)}{1 + t C_2(t)}$ in the case of $k=2,r=1$.  

\subsection{Higher-order colored Motzkin numbers and k-Dyck paths with restrictions on peak heights}
\label{subsec:peak_restricted_kDyck_paths}

We now consider subsets of $k$-Dyck paths whose peaks must appear at a fixed height, modulo $k$.  By a ``peak" we mean any subpath of the form $U D_{k-1}$, with the height of a peak equaling the height of (the right end of) the $U$ step in the subpath.

For any $0 \leq i \leq k-1$, we say that $P \in \mathcal{D}_{n,m}^{k,a}$ has \emph{peak parity} $i$ if the height of every one of its peaks is equivalent to $\modd{i} {k}$.  We denote the subset of $\mathcal{D}_{n,m}^{k,a}$ consisting of all paths with peak parity $i$ by $\mathcal{D}_{n,m}^{k,a}(i)$.  To avoid the ambiguity of categorizing paths of length $0$, which have no peaks, we henceforth restrict our attention to sets $\mathcal{D}_{n,m}^{k,a}(i)$ with $n &gt; 0$.

The goal of this subsection is to generalize the following pair of identities, which were originally proven by Callan \cite{Callan}:
\begin{enumerate}
\item The set $\mathcal{D}_{n,0}^{2,0}(0)$ consisting of all $2$-Dyck paths with peaks only at even height is enumerated by the Riordan numbers $R_n = M_{n,0}(0,1)$. 
\item The set $\mathcal{D}_{n,0}^{2,0}(1)$ consisting of all $2$-Dyck paths with peaks only at odd height is enumerated by the shifted Motzkin numbers $M_{n-1} = M_{n-1,0}(1,1)$.
\end{enumerate}

The parity-$0$ case, corresponding to Callan's first identity, may be directly generalized as follows:
\begin{theorem}
\label{3thm:peak_parity_0}
Fix $k \geq 2$ and $0 \leq a \leq k-1$.  Then $\vert \mathcal{D}_{n,m}^{k,a}(0) \vert = M_{n,m}^{k-1}(\vec{\alpha},\vec{1})$ for all $n,m$, where $\vec{1} = (1,1,\hdots,1)$ and $\vec{\alpha} = (\alpha_0,\hdots,\alpha_{k-2})$ satisfies
$$\alpha_i=
\begin{cases}
1,    &amp;\text{if }i&lt;a; \\
0,    &amp;\text{if }i \geq a.
\end{cases}$$
\end{theorem}
\begin{proof}
As points $(x,y)$ along $P \in \mathcal{D}_{n,m}^{k,a}(0)$ must satisfy $x \equiv \modd{y} {k}$, all peaks in $P \in \mathcal{D}_{n,m}^{k,a}(0)$ must have $x$-coordinates that are divisible by $k$.  This means that every such $P$ may be subdivided into a sequence of length-$k$ subpaths, each of which is of the form $(D_{k-1})^i U^{k-i}$ for some $0 \leq i \leq k$.  For the subpath $(D_{k-1})^i U^{k-i}$, the subheight of the terminal point minus the subheight of the initial point is $1-i$.  Also notice that the lowest point in the subpath $(D_{k-1})^i U^{k-i}$ is $k-i$ units lower than the terminal point of the subpath.

We define an explicit bijection $\psi: \mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{1}) \rightarrow \mathcal{D}_{n,m}^{k,a}(0)$ that is similar to the bijection described in Subsection \ref{subsec:kDyck_paths}.  So take any $P \in \mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{1})$.  To obtain $\psi(P)$, replace each $U$ step of $P$ with the length-$k$ subpath $U^k$, and (for each $0 \leq i \leq k-1$) replace each $D_i$ step of $P$ with the length-$k$ subpath $(D_{k-1})^{i+1} U^{k-i-1}$.  For an example of this map, see Figure \ref{3fig:peak_parity_lemma_example}.

The map $\psi$ is clearly injective, and its image is clearly some subset of generalized $k$-Dyck path of semilength $n$ and semiheight $m$.  By construction, all peaks in $\psi(P)$ are at a height of $\modd{0} {k}$.  As the steepest allowable down steps of $P$ ending at height $0$ are $D_{a-1}$, the ``lowest-dipping" length-$k$ subpaths of $\psi(P)$ that end at height $0$ are $(D_{k-1})^a U^{k-a}$ and they reach a minimum height of $y=-a$.  Thus $\psi(P)$ remains weakly above $y=-a$.  The fact that $\psi$ is surjective follows from the observation that elements of $\mathcal{D}_{n,m}^{k,a}(0)$ have one allowable length-$k$ subpath with a particular overall change in subheight.  The choice of $\vec{\alpha}$ restricts the options for subpaths that end at subheight $0$ to those that stay weakly above $y=-a$. 
\end{proof}
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.4, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick,dotted, color = gray] (0,0) to (18,0);
    \draw[thick,dashed, color = gray] (0,0) to (0,6);
    \draw[thick,dashed, color = gray] (3,0) to (3,6);
    \draw[thick,dashed, color = gray] (6,0) to (6,6);
    \draw[thick,dashed, color = gray] (9,0) to (9,6);
    \draw[thick,dashed, color = gray] (12,0) to (12,6);
    \draw[thick,dashed, color = gray] (15,0) to (15,6);
    \draw[thick,dashed, color = gray] (18,0) to (18,6);    
    \node(1*) at (0,0) {};
    \node(2*) at (1,1) {};
    \node(3*) at (2,2) {};
    \node(4*) at (3,3) {};
    \node(5*) at (4,1) {};
    \node(6*) at (5,2) {};
    \node(7*) at (6,3) {};
    \node(8*) at (7,4) {};
    \node(9*) at (8,5) {};
    \node(10*) at (9,6) {};
    \node(11*) at (10,4) {};
    \node(12*) at (11,2) {};
    \node(13*) at (12,3){};
    \node(14*) at (13,4) {};
    \node(15*) at (14,5) {};
    \node(16*) at (15,6) {};
    \node(17*) at (16,4) {};
    \node(18*) at (17,2) {};
    \node(19*) at (18,0) {};
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick] (4*) to (5*);
    \draw[thick] (5*) to (6*);
    \draw[thick] (6*) to (7*);
    \draw[thick] (7*) to (8*);
    \draw[thick] (8*) to (9*);
    \draw[thick] (9*) to (10*);
    \draw[thick] (10*) to (11*);
    \draw[thick] (11*) to (12*);
    \draw[thick](12*) to (13*);
    \draw[thick](13*) to (14*);
    \draw[thick](14*) to (15*);
    \draw[thick](15*) to (16*);
    \draw[thick](16*) to (17*);
    \draw[thick](17*) to (18*);
    \draw[thick](18*) to (19*);    
\end{tikzpicture}
\hspace{.25in}
\scalebox{2.5}{\raisebox{12pt}{$\Leftrightarrow$}}
\hspace{.25in}
\raisebox{-30pt}{
\begin{tikzpicture}
	[scale=.55, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
	\phantom{\draw[thick,dotted, color = gray] (0,0) to (5,0);}
	\draw[thick,dotted, color = gray] (0,3) to (6,3);
	\phantom{\draw[thick,dotted, color = gray] (0,6) to (5,6);}
	\node(1*) at (0,3) {};
    \node(2*) at (1,4) {};
    \node(3*) at (2,4) {};
    \node(4*) at (3,5) {};
    \node(5*) at (4,4) {};
    \node(6*) at (5,5) {};
    \node(7*) at (6,3) {};
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick] (4*) to (5*);
    \draw[thick] (5*) to (6*);
    \draw[thick] (6*) to (7*);
\end{tikzpicture}} 
\caption{An example of the bijection between $\mathcal{D}_{n,m}^{k,a}(0)$ and $M_{n,m}^{k-1}(\vec{\alpha},\vec{1})$ from the proof of Theorem \ref{3thm:peak_parity_0}, here for $k=3$, $n=4$, $a= m = 0$.  In this case $\vec{\alpha} = \vec{0}$, so colors have been suppressed.}
\label{3fig:peak_parity_lemma_example}
\end{figure}
\begin{corollary}
\label{3thm:peak_parity_0_corollary}
Fix $k \geq 2$.  Then $\vert \mathcal{D}_{n,m}^{k,0} (0) \vert = M_{n,m}^{k-1}(\vec{0},\vec{1})$ for all $n \geq 0$ and $0 \leq m \leq n$, where $\vec{0} = (0,0,\hdots,0)$ and $\vec{1} = (1,1,\hdots,1)$. 
\end{corollary}

The primary insight in generalizing Callan's second identity is that $\mathcal{D}_{n,0}^{2,0}(1)$ lies in bijection with $\mathcal{D}_{n-1,0}^{2,1}(0)$.  This follows from the map that deletes the initial $U$ step and the final $D_1$ step of any $P \in \mathcal{D}_{n,0}^{2,0}(1)$, and then shifts the resulting path down by one.  Generalizing this map gives:
\begin{corollary}
\label{3thm:peak_parity_k_1}
Fix $k \geq 2$.  Then $\vert \mathcal{D}_{n,m}^{k,0} (k-1) \vert = M_{n-1,m}^{k-1}(\vec{1},\vec{1})$ for all $n \geq 1$ and $0 \leq m \leq n$, where $\vec{1} = (1,1,\hdots,1)$.
\end{corollary}
\begin{proof}
We establish a bijection $\phi : \mathcal{D}_{n,0}^{k,0}(k-1) \rightarrow \mathcal{D}_{n-1,0}^{k,k-1}(0)$.  For any $P \in \mathcal{D}_{n,0}^{k,0}(k-1)$, it must be the case that $P$ decomposes as $P = U^{k-1} P' D_{k-1}$.  Here $P'$ begins and ends at height $k-1$ and thus corresponds to some $Q \in \mathcal{D}_{n-1,0}^{k,k-1}$.  As $P$ has peak parity $k-1$, the path $Q$ must have peak parity $0$.  The map $\phi(P) = Q$ represents our desired bijection.

Applying Lemma \ref{3thm:peak_parity_0} then gives $\vert \mathcal{D}_{n,0}^{k,0}(k-1) \vert = \vert \mathcal{D}_{n-1,0}^{k,k-1}(0) \vert = M_{n-1,0}^{k-1} (\vec{\alpha},\vec{1})$, where $\alpha_i = 1$ for all $i &lt; k-1$ and thus for all coordinates $0 \leq i \leq k-2$.   
\end{proof}

The difficulty in generalizing Theorem \ref{3thm:peak_parity_0} to peak parities other than $0$ or $k-1$ derives from the nature of our bijection between $\mathcal{D}_{n,m}^{k,a}$ and $\mathcal{M}_{n,m}^{k-1}(\vec{\alpha},\vec{\beta})$.  In particular, that bijection requires the Dyck paths have a length that is divisible by $kn$.  The decomposition technique of Corollary \ref{3thm:peak_parity_k_1} could be extended to paths of arbitrary peak parity $h$, but the required decomposition $P= U^h P' D_{k-1}$ only leaves a central subpath $P'$ with length divisible by $kn$ when $h=k-1$. 

\subsection{Higher-order colored Motzkin numbers and $k$-ary trees}
\label{subsec:rooted_kary_trees}

For one final collection of combinatorial interpretations, we turn our attention to $k$-ary trees.  For any $k \geq 1$, a $k$-ary tree is a rooted tree in which every vertex has at most $k$ children.  A complete $k$-ary tree is a $k$-ary tree in which every vertex has either $0$ children or $k$ children.  We denote the set of all $k$-ary trees with precisely $n$ edges by $\mathcal{T}_n^k$, and the collection of all complete $k$-ary trees with precisely $n$ edges by $\mathcal{K}_n^k$.

It is well known that $2$-ary trees are enumerated by the Motzkin numbers as $\vert \mathcal{T}_n^2 \vert = M_{n,0}(1,1)$, and that complete $k$-ary trees are enumerated by the $k$-Catalan numbers as $\vert \mathcal{K}_{kn}^k \vert = C_n^k = M_{n,0}^k(\vec{0},\vec{0})$ for every $k \geq 2$.  See Aigner \cite{Aigner1} or Hilton and Pedersen \cite{HP} for bijections establishing these results.  These are the combinatorial interpretations that we look to generalize in this subsection.

In order to consistently describe our generalized bijection, we represent $k$-ary trees so that the root lies at the top of the tree and all children always appear lower than their parents.  One may then order the vertices of $T \in \mathcal{T}_n^k$ via a depth-first search, from left-to-right, and label each edge with one less than the integer assigned to the vertex at its bottom end.  See the left side of Figure \ref{3fig:tree_bijection} for an example.  This edge ordering may be used to define a generalized bijection $\mathcal{T}_n^k$ and $\mathcal{M}_{n,0}^{k-1}(\vec{1},\vec{1})$:
\begin{proposition}
For any $n \geq 0$ and $k \geq 2$, $\vert \mathcal{T}_n^k \vert = M_{n,0}^{k-1}(\vec{1},\vec{1})$, where $\vec{1} = (1,1,\hdots,1)$.
\end{proposition}
\label{3thm:tree_to_Motzkin_path_bijection}
\begin{proof}
To define our bijection $\phi: \mathcal{T}_n^k \rightarrow \mathcal{M}_{n,0}^{k-1}(\vec{1},\vec{1})$, proceed through the edges of $T \in \mathcal{T}_n^k$ in the order defined by our depth-first search.  Then construct the path $\phi(T) \in \mathcal{M}_{n,0}^{k-1}(\vec{1},\vec{1})$ as follows, from left to right.  If a particular edge is not a rightmost child, append a $U$ step to the end of the partial path.  If an edge is a rightmost child, and if the vertex at its top end has precisely $i$ children, append a $D_{i-1}$ step to the end of the partial path.

The resulting path $\phi(T)$ clearly ends at $(n,0)$ and uses the correct step set for an element of $\mathcal{M}_{n,0}^{k-1}(\vec{1},\vec{1})$.  The fact that $\phi(T)$ remains weakly above $y=0$ is a consequence of the depth-first search: in our edge ordering, the children of any fixed vertex have labels that increase from left to right.  This means that the $D_{i-1}$ step associated with the rightmost child is always added after the $U$ steps of its $i-1$ non-rightmost siblings.

To see that $\phi$ is a bijection, notice that $T$ may be uniquely recovered from $\phi(T)$ as follows.  For every $D_i$ step in $\phi(T)$ with $i \geq 1$, identify the $i$ total $U$ steps that are ``visible" to that $D_i$ step from the left.  These matchings (which we represent via horizontal ``lasers" that travel under $\phi(T)$) correspond to siblings in the associated tree $T$.  Nesting of laser matchings in $\phi(T)$ correspond to parent/child relationships in $T$.  See the right side of Figure \ref{3fig:tree_bijection} for an example of this inverse procedure.
\end{proof}
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
    [scale=.45, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \node(1*) at (4,6) {};
    \node(2*) at (2,4) {};
    \node(3*) at (4,4) {};
    \node(4*) at (6,4) {};
    \node(5*) at (0,2) {};
    \node(6*) at (2,2) {};
    \node(7*) at (6,2) {};
    \node(8*) at (2,0) {};
    \node(9*) at (4,0) {};
    \node(10*) at (6,0) {};
    \node(11*) at (8,0) {};
    \draw[thick] (1*) to (2*);
    \draw[thick] (1*) to (3*);
    \draw[thick] (1*) to (4*);
    \draw[thick] (2*) to (5*);
    \draw[thick] (2*) to (6*);
    \draw[thick] (4*) to (7*);
    \draw[thick] (6*) to (8*);
    \draw[thick] (7*) to (9*);
    \draw[thick] (7*) to (10*);
    \draw[thick] (7*) to (11*);
	\node[fill=none](1) at (2.55,5.25) {1};
	\node[fill=none](5) at (3.65,4.75) {5};
	\node[fill=none](6) at (5.35,5.25) {6};
	\node[fill=none](2) at (.6,3.25) {2};
	\node[fill=none](3) at (2.4,3) {3};
	\node[fill=none](7) at (5.6,3) {7};
	\node[fill=none](4) at (2.4,1) {4};
	\node[fill=none](8) at (4.65,1.25) {8};
	\node[fill=none](9) at (5.65,.65) {9};
	\node[fill=none](10) at (7.55,1.25) {10};	
\end{tikzpicture}
\hspace{.25in}
\scalebox{2.5}{\raisebox{12pt}{$\Leftrightarrow$}}
\hspace{.3in}
\raisebox{16pt}{
\begin{tikzpicture}
    [scale=.65, auto=left, every node/.style = {circle, fill=black, inner sep=1.25pt}]
    \draw[thick, dotted, color = black] (0,0) to (10,0);
    \node(0*) at (0,0) {};
    \node(1*) at (1,1) {};
    \node(2*) at (2,2) {};
    \node(3*) at (3,1) {};
    \node(4*) at (4,1) {};
    \node(5*) at (5,2) {};
    \node(6*) at (6,0) {};
    \node(7*) at (7,0) {};
    \node(8*) at (8,1) {};
    \node(9*) at (9,2) {};
    \node(10*) at (10,0) {};
	\draw[color=red, dotted, thick] (.5,.5) to (5.7,.5);
	\draw[color=red, dotted, thick] (1.5,1.5) to (2.5,1.5);
	\draw[color=red, dotted, thick] (4.5,1.5) to (5.25,1.5);
	\draw[color=red, dotted, thick] (7.5,.5) to (9.7,.5);
	\draw[color=red, dotted, thick] (8.5,1.5) to (9.25,1.5);  
    \draw[thick] (0*) to (1*);
    \draw[thick] (1*) to (2*);
    \draw[thick] (2*) to (3*);
    \draw[thick] (3*) to (4*);
    \draw[thick] (4*) to (5*);
    \draw[thick] (5*) to (6*);
    \draw[thick] (6*) to (7*);
    \draw[thick] (7*) to (8*);
    \draw[thick] (8*) to (9*);
    \draw[thick] (9*) to (10*);
\end{tikzpicture}}
\caption{An example of the bijection between $\mathcal{T}_n^k$ and $\mathcal{M}_{n,0}^{k-1}(\vec{1},\vec{1})$ from the proof of Theorem \ref{3thm:tree_to_Motzkin_path_bijection}.  The tree of the left side exhibits our depth-first edge ordering, whereas the dotted red lines on the right side correspond to the ``lasers" used in defining the inverse map.}
\label{3fig:tree_bijection}
\end{figure}

The bijection of Theorem \ref{3thm:tree_to_Motzkin_path_bijection} directly prompts a combinatorial interpretation for any sequence of $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers where the vectors $\vec{\alpha}$ and $\vec{\beta}$ are composed entirely of zeroes and ones:
\begin{corollary}
\label{3thm:trees_and_Motzkin_paths_corollary}
Fix $k \geq 2$, and let $S$ be an subset of $\lbrace 0,1,\hdots, k-1 \rbrace$. Then define $\mathcal{T}_n^{k,S} \subseteq \mathcal{T}_n^k$ to be the collection of all $k$-ary trees where every vertex must have either $k$ children or precisely $i$ children for some $i \in S$.  Then $\vert \mathcal{T}_n^{k,S} \vert = M_{n,0}^{k-1}(\vec{\alpha}_S,\vec{\alpha}_S)$, where $\vec{\alpha}_S = (\alpha_0,\hdots,\alpha_{k-1})$ is the $(k-1)$-tuple such that $\alpha_i = 1$ if $i \in S$ and $\alpha_i = 0$ otherwise.
\end{corollary}

\section{Acknowledgments}

The authors would like to thank the Department of Mathematics and Statistics at Valparaiso University, whose Valparaiso Experience in Research by Undergraduate Mathematicians (VERUM) program provided the framework within which much of this research took place.  By extension, the authors would also like to thank the National Science Foundation for funding that program, under NSF Grant DMS-1559912.

\appendix

\section{Appendix: Tables of higher-order colored Motzkin numbers}
\label{sec:appendix}

A Java program was written that used Proposition \ref{2thm:higher_order_Motzkin_triangle_as_Riordan_array} to generate the first seven rows of the $(\vec{\alpha},\vec{\beta})$-colored Motzkin triangle, for order $\ell=1,2,3$ and arbitrary choices of $\vec{\alpha},\vec{\beta}$.  The first columns of those Riordan arrays were then checked against OEIS \cite{OEIS} for pre-existing combinatorial interpretations.  The results of our comparisons are shown below for $\ell=1,2$ and various ``easy" choices of $\vec{\alpha},\vec{\beta}$.  Dashes correspond to sequences that failed to return an entry on OEIS.  Java code is available upon request.

\begin{table}[ht!]
\centering
\def\arraystretch{1.3}
\scalebox{.9}{
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
 &amp; \textbf{${\beta=0}$} &amp; \textbf{${\beta=1}$} &amp; \textbf{${\beta=2}$} &amp; \textbf{${\beta=3}$} &amp; \textbf{${\beta=4}$} &amp; \textbf{${\beta=5}$} \\ \hline
\textbf{${\alpha=0}$} &amp; \seqnum{A126120} &amp; \seqnum{A005043} &amp; \seqnum{A000957} &amp; \seqnum{A117641} &amp; \seqnum{A185132} &amp; --- \\ \hline
\textbf{${\alpha=1}$} &amp; \seqnum{A001405} &amp; \seqnum{A001006} &amp; \seqnum{A000108} &amp; \seqnum{A033321} &amp; --- &amp; --- \\ \hline
\textbf{${\alpha=2}$} &amp; \seqnum{A054341} &amp; \seqnum{A005773} &amp; \seqnum{A000108}* &amp; \seqnum{A007317} &amp; \seqnum{A033543} &amp; --- \\ \hline
\textbf{${\alpha=3}$} &amp; \seqnum{A126931} &amp; \seqnum{A059738} &amp; \seqnum{A001700} &amp; \seqnum{A002212} &amp; \seqnum{A064613} &amp; --- \\ \hline
\textbf{${\alpha=4}$} &amp; --- &amp; --- &amp; \seqnum{A049027} &amp; \seqnum{A026378} &amp; \seqnum{A005572} &amp; \seqnum{A104455} \\ \hline
\textbf{${\alpha=5}$} &amp; --- &amp; --- &amp; \seqnum{A076025} &amp; --- &amp; \seqnum{A005573} &amp; \seqnum{A182401} \\ \hline
\end{tabular}}
\caption{An expansion of Table \ref{1tab:Catalanlike_numbers}, showing integer sequences corresponding to the $(\alpha,\beta)$-colored Motzkin numbers $M_{n,0}^1(\alpha,\beta)$ of order $\ell=1$, for various choices of $(\alpha,\beta)$.}
\label{appendix_ell1}
\end{table}

\begin{table}[ht!]
\centering
\def\arraystretch{1.3}
\scalebox{.9}{
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
 &amp; ${\beta=0}$ &amp; ${\beta=1}$ &amp; ${\beta=2}$ &amp; ${\beta=3}$ &amp; ${\beta=4}$ &amp; ${\beta=5}$ \\ \hline
${\alpha=0}$ &amp; \seqnum{A001405} &amp; \seqnum{A002426} &amp; \seqnum{A026641} &amp; \seqnum{A126952} &amp; --- &amp; --- \\ \hline
${\alpha=1}$ &amp; \seqnum{A000079} &amp; \seqnum{A005773} &amp; \seqnum{A000984} &amp; \seqnum{A126568} &amp; \seqnum{A227081} &amp; --- \\ \hline
${\alpha=2}$ &amp; \seqnum{A127358} &amp; \seqnum{A000244} &amp; \seqnum{A001700} &amp; \seqnum{A026375} &amp; \seqnum{A133158} &amp; --- \\ \hline
${\alpha=3}$ &amp; \seqnum{A127359} &amp; \seqnum{A126932}  &amp; \seqnum{A000302} &amp; \seqnum{A026378} &amp; \seqnum{A081671} &amp; --- \\ \hline
${\alpha=4}$ &amp; \seqnum{A127360} &amp; --- &amp; \seqnum{A141223} &amp; --- &amp; \seqnum{A005573} &amp; \seqnum{A098409} \\ \hline
${\alpha=5}$ &amp; --- &amp; --- &amp; --- &amp; --- &amp; \seqnum{A000400} &amp; \seqnum{A122898} \\ \hline
\end{tabular}}
\caption{Integer sequences $( r_n (\alpha,\beta) )_{n \geq 0}$ corresponding to row sums $r_n = \sum_{i=0}^n M_{n,m}^1(\alpha,\beta)$ of the $(\alpha,\beta)$-Motzkin triangle of order $\ell=1$, for various choices of $(\alpha,\beta)$.  By Theorem \ref{2thm:rowsums_of_Motzkin_triangle_color_change_version}, the $(i,i)$ entries of this table equal the $(i+1,i)$ entries of Table \ref{appendix_ell1}.}
\label{appendix_ell1_row_sums}
\end{table}

\begin{table}[ht!]
\centering
\def\arraystretch{1.3}
\scalebox{.87}{
\begin{tabular}{|c|c|c|c|}
\hline
 &amp; ${\vec{\beta}=(0,0)}$ &amp; ${\vec{\beta}=(1,0)}$ &amp; ${\vec{\beta}=(2,0)}$ \\ \hline
${\vec{\alpha}=(0,0)}$ &amp; --- &amp; --- &amp; --- \\ \hline
${\vec{\alpha}=(1,0)}$ &amp; \seqnum{A076227} &amp; \seqnum{A071879} &amp; --- \\ \hline
${\vec{\alpha}=(2,0)}$ &amp; --- &amp; --- &amp; --- \\ \hline
\end{tabular}
\hspace{.04in}
\begin{tabular}{|c|c|c|c|}
\hline
 &amp; ${\vec{\beta}=(0,1)}$ &amp; ${\vec{\beta}=(1,1)}$ &amp; ${\vec{\beta}=(2,1)}$ \\ \hline
${\vec{\alpha}=(0,1)}$ &amp; \seqnum{A001005} &amp; --- &amp; \seqnum{A303730} \\ \hline
${\vec{\alpha}=(1,1)}$ &amp; --- &amp; \seqnum{A036765} &amp; \seqnum{A049128} \\ \hline
${\vec{\alpha}=(2,1)}$ &amp; --- &amp; \seqnum{A159772} &amp; --- \\ \hline
\end{tabular}
}
\caption{Integer sequences corresponding to the $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers $M_{n,0}^2(\vec{\alpha},\vec{\beta})$ of order $\ell=2$, for various choices of $\vec{\alpha}=(\alpha_0,\alpha_1)$, $\vec{\beta}=(\beta_0,\beta_1)$ with $\alpha_0=\beta_0=0$ (left) and $\alpha_1=\beta_1=1$ (right).}
\label{appendix_ell2_01}
\end{table}

\begin{table}[ht!]
\centering
\def\arraystretch{1.3}
\scalebox{.9}{
\begin{tabular}{|c|c|c|c|c|c|}
\hline
 &amp; ${\alpha_1=0}$ &amp; ${\alpha_1=1}$ &amp; ${\alpha_1=2}$ &amp; ${\alpha_1=3}$ &amp; ${\alpha_1=4}$\\ \hline
${\alpha_0=0}$ &amp; --- &amp; \seqnum{A089354} &amp; \seqnum{A023053} &amp; --- &amp; --- \\ \hline
${\alpha_0=1}$ &amp; --- &amp; --- &amp; \seqnum{A001764} &amp; \seqnum{A121545} &amp; --- \\ \hline
${\alpha_0=2}$ &amp; --- &amp; --- &amp; \seqnum{A098746} &amp; \seqnum{A006013} &amp; --- \\ \hline
${\alpha_0=3}$ &amp; --- &amp; --- &amp; --- &amp; \seqnum{A001764}* &amp; --- \\ \hline
${\alpha_0=4}$ &amp; --- &amp; --- &amp; --- &amp; \seqnum{A047099} &amp; --- \\ \hline
\end{tabular}}
\caption{Integer sequences corresponding to the $(\vec{\alpha},\vec{\beta})$-colored Motzkin numbers $M_{n,0}^2(\vec{\alpha},\vec{\beta})$ of order $\ell=2$, for various choices of $\vec{\alpha}=(\alpha_0,\alpha_1)$ when $\vec{\beta}=(3,3)$.  When $\ell=2$, observe that these cover all choices of $(\vec{\alpha},\vec{\beta})$ relevant to Subsections \ref{subsec:kDyck_paths} and \ref{subsec:kFine_paths}.}
\label{appendix_ell2_33}
\end{table}

\begin{thebibliography}{10}
\bibitem{Aigner1} M. Aigner, Motzkin numbers, \textit{Europ. J. Combin.} \textbf{19} (1998), 663--675.

\bibitem{Aigner2} M. Aigner, Enumeration via ballot numbers, \textit{Discrete Math.} \textbf{308} (2008), 2544--2563.

\bibitem{BaFl} C. Banderier and P. Flajolet, Basic analytic combinatorics of directed lattice paths, \textit{Theoret. Comput. Sci.} \textbf{281} (2002), 37--80.

\bibitem{BDPP} E. Barrucci, A. Del Lungo, E. Pergola and R. Pinzani, A construction for enumerating $k$-coloured Motzkin paths, \textit{Proc. of the First Annual International Conference on Computing and Combinatorics}, Springer, 1995, pp. 254--263.

\bibitem{Bernhart} F. R. Bernhart, Catalan, Motzkin, and Riordan numbers, \textit{Discrete Math.} \textbf{204} (1999), 73--112.

\bibitem{Callan} D. Callan, Bijections for Dyck paths with all peak heights of the same parity, preprint, 2017.  Available at \url{http://arxiv.org/abs/1702.06150v1}.

\bibitem{CKS} G.-S. Cheon, H. Kim and L. W. Shapiro, Combinatorics of Riordan arrays with identical $A$ and $Z$ sequences, \textit{Discrete Math.} \textbf{312} (2012), 2040--2049.

\bibitem{DS} E. Deutsch and L. W. Shapiro, A Survey of the Fine numbers, \textit{Discrete Math.} \textbf{241} (2001), 241--265.

\bibitem{DonS} R. Donaghey and L. W. Shapiro, Motzkin numbers, \textit{J. Combin. Theory Ser. A} \textbf{23} (1977), 291--301.

\bibitem{Drube} P. Drube, Generalized Path Pairs \&amp; Fuss-Catalan Triangles, preprint, 2020.  Available at \url{http://arxiv.org/abs/2007.01892}.

\bibitem{Fl} P. Flajolet, Combinatorial aspects of continued fractions, \textit{Discrete Math.} \textbf{32} (1980), 125--161.

\bibitem{HS} T.-X. He and L. W. Shapiro, Fuss-Catalan matrices, their weighted sums, and stabilizer subgroups of the Riordan group, \textit{Linear Algebra Appl.} \textbf{532} (2017), 25--42.

\bibitem{HLM} S. Heubach, N. Y. Li and T. Mansour, Staircase tilings and $k$-Catalan structures, \textit{Discrete Math.} \textbf{308} (2008), 5954--5964.

\bibitem{HP} P. Hilton and J. Pedersen, Catalan numbers, their generalizations, and their uses, \textit{Math. Intelligencer} \textbf{13} (1991), 64--75.

\bibitem{MSS} T. Mansour, M. Schork and Y. Sun, Motzkin numbers of higher
rank: generating function and explicit expression, \textit{J. Integer
Sequences} \textbf{10} (2007), 
\href{https://cs.uwaterloo.ca/journals/JIS/VOL10/Schork/schork3.html}{Article 07.7.4}.

\bibitem{MRSV} D. Merlini, D. G. Rogers, R. Sprugnoli and M. C. Verri, On some alternative characterizations of Riordan arrays, \textit{Canad. J. Math.} \textbf{49(2)} (1997), 301--320.

\bibitem{Prodinger} H. Prodinger, On $k$-Dyck paths with a negative boundary, preprint, 2019.  Available at \url{http://arxiv.org/abs/1912.06930}.

\bibitem{Rogers} D. G. Rogers, Pascal triangles, Catalan numbers, and renewal arrays, \textit{Discrete Math.} \textbf{22} (1978), 301--310.

\bibitem{ST1} A. Sapounakis and P. Tsikouras, On $k$-colored Motzkin words, \textit{J. Integer Sequences} \textbf{7} (2004), 
\href{https://cs.uwaterloo.ca/journals/JIS/VOL7/Tsikouras/tsikouras43.html}{Article 04.2.5}.

\bibitem{ST2} A. Sapounakis and P. Tsikouras, Counting peaks and valleys in $k$-colored Motzkin words, \textit{Electron. J. Comb.} \textbf{12} (2005), Article 12.

\bibitem{Shapiro} L. W. Shapiro, A Catalan triangle, \textit{Discrete Math.} \textbf{14} (1976), 83--90.

\bibitem{OEIS} N. J. A. Sloane et al., 
{\it The On-Line Encyclopedia of Integer Sequences}, 2021.   Available
at \url{https://oeis.org}.

\bibitem{Stanley} R. P. Stanley, \textit{Catalan Numbers}, Cambridge University Press, 2015.

\bibitem{Woan1} W. J. Woan, A recursive relation for weighted Motzkin sequences, \textit{J. Integer Sequences} \textbf{8} (2005), 
\href{https://cs.uwaterloo.ca/journals/JIS/VOL8/Woan2/woan35.html}{Article 05.1.6}.

\bibitem{Woan2} W. J. Woan, A relation between restricted and unrestricted
weighted Motzkin paths, \textit{J. Integer Sequences} \textbf{9} (2006),
\href{https://cs.uwaterloo.ca/journals/JIS/VOL9/Woan/woan206.html}{Article 06.1.7}.


\end{thebibliography}

\bigskip
\hrule
\bigskip

\noindent 2010 {\it Mathematics Subject Classification}:
Primary 05A19; Secondary 05C30.

\noindent \emph{Keywords: } 
Motzkin number, Fine number, lattice path, Riordan array, $k$-ary tree.

\bigskip
\hrule
\bigskip

\noindent (Concerned with sequences
\seqnum{A000079},
\seqnum{A000108},
\seqnum{A000244},
\seqnum{A000302},
\seqnum{A000400},
\seqnum{A000957},
\seqnum{A000984},
\seqnum{A001005},
\seqnum{A001006},
\seqnum{A001405},
\seqnum{A001700},
\seqnum{A001764},
\seqnum{A002212},
\seqnum{A002426},
\seqnum{A005043},
\seqnum{A005572},
\seqnum{A005573},
\seqnum{A005773},
\seqnum{A006013},
\seqnum{A007317},
\seqnum{A023053},
\seqnum{A026375},
\seqnum{A026378},
\seqnum{A026641},
\seqnum{A033321},
\seqnum{A033543},
\seqnum{A036765},
\seqnum{A047099},
\seqnum{A049027},
\seqnum{A049128},
\seqnum{A054341},
\seqnum{A059738},
\seqnum{A064613},
\seqnum{A071879},
\seqnum{A076025},
\seqnum{A076227},
\seqnum{A081671},
\seqnum{A089354},
\seqnum{A098409},
\seqnum{A098746},
\seqnum{A104455},
\seqnum{A117641},
\seqnum{A121545},
\seqnum{A122898},
\seqnum{A126120},
\seqnum{A126568},
\seqnum{A126931},
\seqnum{A126932},
\seqnum{A126952},
\seqnum{A127358},
\seqnum{A127359},
\seqnum{A127360},
\seqnum{A133158},
\seqnum{A141223},
\seqnum{A159772},
\seqnum{A182401},
\seqnum{A185132},
\seqnum{A227081}, and
\seqnum{A303730}.)

\bigskip
\hrule
\bigskip

\vspace*{+.1in}
\noindent
Received January 4 2021;
revised versions received March 4 2021;  April 6 2021.
Published in {\it Journal of Integer Sequences}, April 16 2021.

\bigskip
\hrule
\bigskip

\noindent
Return to
\htmladdnormallink{Journal of Integer Sequences home page}{https://cs.uwaterloo.ca/journals/JIS/}.
\vskip .1in


\end{document}

                                                                                

</pre></body></html>