OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (8*n - 21*n^2 + 16*n^3)/3.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
G.f.: f(x)/g(x), where f(x) = x*(1 + 16*x + 15*x^2) and g(x) = (1-x)^4.
MATHEMATICA
(See A213838.)
LinearRecurrence[{4, -6, 4, -1}, {1, 20, 89, 240}, 40] (* Harvey P. Dale, Mar 10 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 05 2012
STATUS
approved