OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..100
Index entries for linear recurrences with constant coefficients, signature (7,-19,25,-16,4).
FORMULA
a(n) = -2 + 2^(n+1) - 6*n + n*2^(n+2) - 3*n^2.
a(n) = 7*a(n-1) - 19*a(n-2) + 25*a(n-3) - 16*a(n-4) + 4*a(n-5).
G.f.: f(x)/g(x), where f(x) = x*(1 + 7*x - 14*x^2) and g(x) = (1 - 2*x)^2 (1 - x)^3.
MATHEMATICA
(See A213756.)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 20 2012
STATUS
approved