login
A024031
a(n) = 3^n - n^8.
2
1, 2, -247, -6534, -65455, -390382, -1678887, -5762614, -16770655, -43027038, -99940951, -214181734, -429450255, -814136398, -1471006087, -2548541718, -4251920575, -6846617278, -10632540087, -15821301574, -22113215599
OFFSET
0,2
LINKS
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
Sequence in context: A259141 A065664 A244926 * A099685 A027653 A024349
KEYWORD
sign
STATUS
approved