OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,0,-3).
FORMULA
a(n)=3a(n-1)-3a(n-4); a(n)=sum{k=0..floor(n/2), comb(n-3k, k)3^(n-3k) }.
MATHEMATICA
CoefficientList[Series[1/(1-3x+3x^4), {x, 0, 30}], x] (* or *) LinearRecurrence[ {3, 0, 0, -3}, {1, 3, 9, 27}, 30] (* Harvey P. Dale, Apr 19 2015 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Nov 28 2003
STATUS
approved