OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Colin Barker, Aug 11 2019: (Start)
G.f.: x*(1 + 3*x)*(1 + 4*x + x^2) / (1 - x)^5.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) for n>5.
(End)
EXAMPLE
a(4) = 4^2 - 4^3 + 4^4 = 16 - 64 + 256 = 208.
PROG
(Python)
for x in range(100):
print((x**2)-(x**3)+(x**4))
(PARI) concat(0, Vec(x*(1 + 3*x)*(1 + 4*x + x^2) / (1 - x)^5 + O(x^40))) \\ Colin Barker, Aug 11 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John H. Chakkour, Aug 02 2019
STATUS
approved