OFFSET
0,9
COMMENTS
a(n)=Sum(k*A098083(n,k), k>=0).
FORMULA
G.f.: G(z)=z^5*g^2*(g-1)^2/[(1-z)(1-z^2*g^2)], where g=1+zg+z^2*g(g-1).
Conjecture D-finite with recurrence -4*(n+1)*(n-7)*a(n) +(13*n^2-85*n+28)*a(n-1) +(-7*n^2+52*n-41)*a(n-2) +(5*n^2-41*n+67)*a(n-3) +(-13*n^2+103*n-197)*a(n-4) +(7*n-29)*(n-5)*a(n-5) -(n-5)*(n-6)*a(n-6)=0. - R. J. Mathar, Jul 22 2022
EXAMPLE
a(7)=1 because among the 37 (=A004148(7)) peakless Motzkin paths of length 7 only uh(dhu)hd has a subword of the prescribed type (shown between parentheses).
MAPLE
eq := g = 1+z*g+z^2*g*(g-1): g := RootOf(eq, g): G := z^5*g^2*(g-1)^2/((1-z)*(1-z^2*g^2)): Gser := series(G, z = 0, 38): seq(coeff(Gser, z, n), n = 0 .. 35);
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 05 2011
STATUS
approved