Bean, Christian, Bernini, Antonio, Cervetti, Matteo, Ferrari, Luca, "On the generating functions of pattern-avoiding Motzkin paths", Journal of Symbolic Computation, 2022