OFFSET
0,3
COMMENTS
Equals column 0 of triangle A121400.
EXAMPLE
A(x) = 1 + x + 3*x^2 + 6*x^3 + 17*x^4 + 42*x^5 + 114*x^6 +...
The g.f. of the Motzkin numbers begins:
G(x) = 1 + x + 2*x^2 + 4*x^3 + 9*x^4 + 21*x^5 + 51*x^6 + 127*x^7 +...
PROG
(PARI) {a(n)=local(F=1+x+x^2, G=serreverse(x/(F+x^2*O(x^n)))/x, H=1+x, A); for(i=0, n, H=G*subst(H, x, x^2*G)+x^2*O(x^n)); A=(x*H-y*subst(H, x, x*y))/(x*subst(F, x, y)-y); polcoeff(polcoeff(A, n, x), 0, y)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 27 2006
STATUS
approved