OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,1,-2,1)
FORMULA
G.f.: (x^3-x+1)/[(1-x^5)(1-x)^2].
MAPLE
a := proc(n) local i, t0, t1, t2; t0 := 0; for i from 0 to floor(2*n/5) do t1 := min(n-3*i, 2*i); t2 := ceil(-i/2); t0 := t0+t1-t2+1; od; t0; end;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 20 2003
STATUS
approved