OFFSET
0,6
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1,0,0,1)
FORMULA
G.f.: x^4/((1-x)^3-x^6) = -x^4/ ((x^2+x-1)*(x^4-x^3+2*x^2-2*x+1)).
a(n) = Sum_{k=0..n} if(mod(k+1, 3)=0, C(n-k, k), 0).
a(n+2) = Sum_{k=0..floor(n/6)} binomial(n-3k, 3k+2). - Paul Barry, Jan 13 2005
MATHEMATICA
CoefficientList[Series[x^4/((1-x)^3-x^6), {x, 0, 50}], x] (* Vincenzo Librandi, Jul 08 2012 *)
LinearRecurrence[{3, -3, 1, 0, 0, 1}, {0, 0, 0, 0, 1, 3}, 40] (* Harvey P. Dale, Feb 20 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Dec 06 2004
STATUS
approved