OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (10,-42,98,-140,126,-70,22,-3).
FORMULA
a(n) = 3^n - n^6.
G.f.: (1 - 8*x - 33*x^2 - 166*x^3 + 639*x^4 + 828*x^5 + 177*x^6 + 2*x^7)/((1 - x)^7*(1 - 3*x)). - Andrew Howroyd, Nov 02 2025
MAPLE
PROG
(Magma) [3^n-n^6 : n in [0..30]]; // Vincenzo Librandi, May 17 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved
