OFFSET
2,3
COMMENTS
a(n) = A105640(n,0).
LINKS
E. Deutsch and L. Shapiro, A survey of the Fine numbers, Discrete Math., 241 (2001), 241-265.
FORMULA
G.f.: [(1+z)^2-sqrt((1+z^2)^2-4z)]/[2z(2+z+z^2)]-1.
D-finite with recurrence 2*(n+1)*a(n) +(-7*n+5)*a(n-1) +(n-5)*a(n-2) +2*(-n-1)*a(n-3) +2*(2*n-7)*a(n-4) +(n-5)*a(n-5) +(n-5)*a(n-6)=0. - R. J. Mathar, Jul 24 2022
EXAMPLE
a(4)=2 because we have UUDUDUDD and UUUDUDDD.
MAPLE
G:=((1+z)^2-sqrt((1+z^2)^2-4*z))/2/z/(2+z+z^2)-1: Gser:=series(G, z=0, 36): seq(coeff(Gser, z^n), n=2..32);
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 08 2006
STATUS
approved