OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (8,-25,40,-35,16,-3).
FORMULA
a(n) = 3^n - n^4.
G.f.: (1 - 6*x + 2*x^2 + 12*x^3 + 37*x^4 + 2*x^5)/((1 - x)^5*(1 - 3*x)). - Andrew Howroyd, Nov 02 2025
MATHEMATICA
Table[3^n-n^4, {n, 0, 60}] (* Vladimir Joseph Stephan Orlovsky, Feb 15 2011 *)
PROG
(Magma) [3^n-n^4 : n in [0..30]]; // Vincenzo Librandi, May 17 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved
