OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-9,7,-2).
FORMULA
a(n) = -10 + 5*2^(n+1) - 7*n - 2*n^2.
a(n) = 5*a(n-1) - 9*a(n-2) + 7*a(n-3) - 2*a(n-4).
G.f.: f(x)/g(x), where f(x) = x*(1 + 3*x) and g(x) = (1 - 2*x)*(1 - x)^3.
MATHEMATICA
(See A213762.)
LinearRecurrence[{5, -9, 7, -2}, {1, 8, 31, 90}, 30] (* Harvey P. Dale, Jan 27 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 20 2012
STATUS
approved