OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,0,-2,-1).
FORMULA
G.f.: (1-x^2)/((1-x-x^2)*(1-x^2-x^3)) = (1+x)/(1-x-x^2) - x*(1+x)/(1-x^2-x^3).
a(n) = Sum_{k=0..floor(n/2)} C(n-k+1,k) - C(k,n-2k+1).
MATHEMATICA
LinearRecurrence[{1, 2, 0, -2, -1}, {1, 1, 2, 4, 6}, 40] (* Harvey P. Dale, Aug 21 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jun 26 2007
STATUS
approved