OFFSET
0,4
COMMENTS
mod(a(n),3)=A095130(n)
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,5,-20,-4,16).
FORMULA
G.f. : x(1-3x+6x^2)/((1-x^2)(1-4x)(1-4x^2)); a(n)=2(4^n+1)/9-4(-2)^n/9-2^n/3+(-1)^n/3.
MATHEMATICA
LinearRecurrence[{4, 5, -20, -4, 16}, {0, 1, 1, 15, 45}, 30] (* Harvey P. Dale, Nov 07 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 29 2004
STATUS
approved