OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-1,-3,1,1).
FORMULA
From R. J. Mathar, Apr 27 2010: (Start)
a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + a(n-4) + a(n-5).
G.f.: -x*(1 - x + x^3) / ( (x - 1)*(x^2 + x - 1)^2 ). (End)
EXAMPLE
MATHEMATICA
LinearRecurrence[{3, -1, -3, 1, 1}, {0, 1, 2, 5, 11}, 40] (* Harvey P. Dale, Jun 12 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Jul 08 2008
EXTENSIONS
Corrected (5980669 replaced by 5930669) by R. J. Mathar, Apr 27 2010
STATUS
approved