OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (12, -63, 192, -378, 504, -462, 288, -117, 28, -3).
FORMULA
a(n) = 12*a(n-1) - 63*a(n-2) + 192*a(n-3) - 378*a(n-4) + 504*a(n-5) - 462*a(n-6) + 288*a(n-7) - 117*a(n-8) + 28*a(n-9) - 3*a(n-10); a(0)=1, a(1)=2, a(2)=-247, a(3)=-6534, a(4)=-65455, a(5)=-390382, a(6)=-1678887, a(7)=-5762614, a(8)=-16770655, a(9)=-43027038. - Harvey P. Dale, Sep 25 2014
MATHEMATICA
Table[3^n-n^8, {n, 0, 30}] (* or *) LinearRecurrence[{12, -63, 192, -378, 504, -462, 288, -117, 28, -3}, {1, 2, -247, -6534, -65455, -390382, -1678887, -5762614, -16770655, -43027038}, 30] (* Harvey P. Dale, Sep 25 2014 *)
PROG
(Magma) [3^n-n^8: n in [0..35]]; // Vincenzo Librandi, May 13 2011
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved