Bean, C., Bernini, A., Cervetti, M., & Ferrari, L. (2022). On the generating functions of pattern-avoiding Motzkin paths. Journal of Symbolic Computation, 113, 126-138. https://doi.org/10.1016/j.jsc.2022.02.006