OFFSET
0,7
COMMENTS
a(n) = A190164(n,0).
FORMULA
G.f. G=G(z) satisfies the equation z^2*(1+z^2)G^2 - (1+z^2)(1-z+z^2)G + 1-z+z^2=0.
D-finite with recurrence +(n+2)*a(n) +(-2*n-1)*a(n-1) +(n+1)*a(n-2) +(-2*n+1)*a(n-3) +(-2*n+11)*a(n-5) +(n-7)*a(n-6) +(-2*n+13)*a(n-7) +(n-8)*a(n-8)=0. - R. J. Mathar, Jul 24 2022
EXAMPLE
a(6)=2 because we have uhduhd and uhhhhd, where u=(1,1), h=(1,0), d=(1,-1).
MAPLE
eq := z^2*(1+z^2)*G^2-(1+z^2)*(1-z+z^2)*G+1-z+z^2 =0: g:=RootOf(eq, G): Gser:=series(g, z=0, 46): seq(coeff(Gser, z, n), n=0..40);
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 06 2011
STATUS
approved