OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,0,-1,-1)
FORMULA
G.f.: 1/((1-x^2)(1 - x - x^2 - x^3)).
a(n) = sum{k=0..floor(n/2), sum{j=0..n-k+1, C(n-k+1-j,k+1)C(k-1,j)}}.
MATHEMATICA
a=0; b=0; c=0; lst={}; Do[z=a+b+c+1; AppendTo[lst, z]; a=b; b=c; c=z; z=a+b+c; AppendTo[lst, z]; a=b; b=c; c=z, {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 17 2010 *)
LinearRecurrence[{1, 2, 0, -1, -1}, {1, 1, 3, 5, 10}, 40] (* Harvey P. Dale, Nov 13 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jan 17 2009
STATUS
approved