OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (14,-46,64,-41,10).
FORMULA
From Colin Barker, Oct 05 2018: (Start)
G.f.: (1 - 5*x + 12*x^2 + 35*x^3 + 11*x^4) / ((1 - x)^4*(1 - 10*x)).
a(n) = 14*a(n-1) - 46*a(n-2) + 64*a(n-3) - 41*a(n-4) + 10*a(n-5) for n>4.
(End)
PROG
(Magma) [10^n-n^3: n in [0..20]]; // Vincenzo Librandi, Jun 30 2011
(PARI) Vec((1 - 5*x + 12*x^2 + 35*x^3 + 11*x^4) / ((1 - x)^4*(1 - 10*x)) + O(x^30)) \\ Colin Barker, Oct 05 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved