OFFSET
1,4
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
G.f.: x^3*(1 + 3*x - 5*x^2 + 2*x^3) / (1 - x)^8.
From Colin Barker, Oct 26 2017: (Start)
a(n) = (n*(-540 + 476*n + 469*n^2 - 490*n^3 + 70*n^4 + 14*n^5 + n^6)) / 5040.
a(n) = 8*a(n-1) - 28*a(n-2) + 56*a(n-3) - 70*a(n-4) + 56*a(n-5) - 28*a(n-6) + 8*a(n-7) - a(n-8) for n>8.
(End)
PROG
(PARI) concat(vector(2), Vec(x^3*(1 + 3*x - 5*x^2 + 2*x^3) / (1 - x)^8 + O(x^30))) \\ Colin Barker, Oct 26 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mike Zabrocki, Nov 05 2004
STATUS
approved