OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-9,7,-2).
FORMULA
a(n) = 98*2^n - 12*n^2 - 60*n - 97.
From Colin Barker, Feb 18 2016: (Start)
a(n) = 5*a(n-1)-9*a(n-2)+7*a(n-3)-2*a(n-4) for n>3.
G.f.: (1+22*x+x^2) / ((1-x)^3*(1-2*x)).
(End)
MATHEMATICA
LinearRecurrence[{5, -9, 7, -2}, {1, 27, 127, 399}, 30] (* Harvey P. Dale, Jul 03 2017 *)
PROG
(PARI) Vec((1+22*x+x^2)/((1-x)^3*(1-2*x)) + O(x^40)) \\ Colin Barker, Feb 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved