OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,1,-5,-2).
FORMULA
G.f.: x(1+5x+2x^2)/((1-x-2x^2)(1-2x-x^2)).
a(n) = 3*a(n-1) + a(n-2) - 5*a(n-3) - 2*a(n-4). - G. C. Greubel, May 25 2016
MATHEMATICA
LinearRecurrence[{3, 1, -5, -2}, {0, 1, 8, 27}, 50] (* G. C. Greubel, May 25 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 22 2009
STATUS
approved