Sapounakis, A., and P. Tsikouras. “Counting Peaks and Valleys in $k$-Colored Motzkin Paths”. The Electronic Journal of Combinatorics, Vol. 12, no. 1, Mar. 2005, p. R16, doi:10.37236/1913.