OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (16,-54,76,-49,12).
FORMULA
From Colin Barker, Oct 11 2018: (Start)
G.f.: (1 - 5*x + 14*x^2 + 43*x^3 + 13*x^4) / ((1 - x)^4*(1 - 12*x)).
a(n) = 16*a(n-1) - 54*a(n-2) + 76*a(n-3) - 49*a(n-4) + 12*a(n-5) for n>4.
(End)
PROG
(Magma) [12^n-n^3: n in [0..20]]; // Vincenzo Librandi, Jul 01 2011
(PARI) a(n)=12^n-n^3 \\ Charles R Greathouse IV, Jul 01 2011
(PARI) Vec((1 - 5*x + 14*x^2 + 43*x^3 + 13*x^4) / ((1 - x)^4*(1 - 12*x)) + O(x^20)) \\ Colin Barker, Oct 11 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved