OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,-1,3).
FORMULA
O.g.f: -(2 - 2*x + x^2 + 3*x^3)/((3*x-1)*(x+1)*(x^2-x+1)). - R. J. Mathar, Nov 30 2007
6*a(n) = 3^(n+2) +(-1)^n +2*A057079(n+2). - R. J. Mathar, Oct 03 2021
MATHEMATICA
LinearRecurrence[{3, 0, -1, 3}, {2, 4, 13, 40}, 30] (* Harvey P. Dale, Sep 10 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 27 2007
STATUS
approved