OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (11,-34,46,-29,7).
FORMULA
From Colin Barker, Oct 05 2018: (Start)
G.f.: (1 + x)*(1 - 6*x + 15*x^2 + 8*x^3) / ((1 - x)^4*(1 - 7*x)).
a(n) = 11*a(n-1) - 34*a(n-2) + 46*a(n-3) - 29*a(n-4) + 7*a(n-5) for n>4.
(End)
PROG
(Magma) [7^n-n^3: n in [0..25]]; // Vincenzo Librandi, Jul 03 2011
(PARI) Vec((1 + x)*(1 - 6*x + 15*x^2 + 8*x^3) / ((1 - x)^4*(1 - 7*x)) + O(x^30)) \\ Colin Barker, Oct 05 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved