OFFSET
2,1
LINKS
R. P. Stanley, Problem 11348, Amer. Math. Monthly, 117 (2010), 87-88.
Index entries for linear recurrences with constant coefficients, signature (0,3,3,0,-9).
FORMULA
a(n) = 3*a(n-2) +3*a(n-3) -9*a(n-5). G.f.: -3*x^2*(x^4+3*x^3-x-1) / ((3*x^2-1)*(3*x^3-1)). - Colin Barker, Jul 26 2013
MATHEMATICA
LinearRecurrence[{0, 3, 3, 0, -9}, {3, 3, 9, 9, 33}, 40] (* Harvey P. Dale, Dec 18 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 30 2009
STATUS
approved