OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..240
Index entries for linear recurrences with constant coefficients, signature (6,-14,16,-9,2).
FORMULA
G.f.: (-1-3*x^4-3*x^3-4*x^2+5*x)/((-1+2*x)*(x-1)^4). [Maksym Voznyy (voznyy(AT)mail.ru), Aug 14 2009]
a(n) = 6*a(n-1)-14*a(n-2)+16*a(n-3)-9*a(n-4)+2*a(n-5) for n>4. - Vincenzo Librandi, Oct 06 2014
MAPLE
MATHEMATICA
Table[2^n-n^3, {n, 0, 80}] (* Vladimir Joseph Stephan Orlovsky, Feb 15 2011 *)
PROG
(Magma) [2^n-n^3: n in [0..35]]; // Vincenzo Librandi, Apr 29 2011
(Magma) I:=[1, 1, -4, -19, -48]; [n le 5 select I[n] else 6*Self(n-1)-14*Self(n-2)+16*Self(n-3)-9*Self(n-4)+2*Self(n-5): n in [1..35]]; // Vincenzo Librandi, Oct 06 2014
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved