A195859 a(n) = n^8-n.
0, 0, 254, 6558, 65532, 390620, 1679610, 5764794, 16777208, 43046712, 99999990, 214358870, 429981684, 815730708, 1475789042, 2562890610, 4294967280, 6975757424, 11019960558, 16983563022, 25599999980, 37822859340, 54875873514, 78310985258, 110075314152
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
- Index entries for linear recurrences with constant coefficients, signature (9,-36,84,-126,126,-84,36,-9,1).
Programs
-
Magma
[(n^8-n): n in [0..30]];
-
Mathematica
Table[n^8 - n, {n, 0, 40}] (* and *) LinearRecurrence[{9, -36, 84, -126, 126, -84, 36, -9, 1}, {0, 0, 254, 6558, 65532, 390620, 1679610, 5764794, 16777208}, 40] (* Vladimir Joseph Stephan Orlovsky, Feb 21 2012 *)
-
PARI
a(n)=n^8-n \\ Charles R Greathouse IV, Oct 07 2015
Formula
G.f.: -2*x^2*(127+2136*x+7827*x^2+7792*x^3+2157*x^4+120*x^5+x^6) / ( (x-1)^9 ). - R. J. Mathar, Sep 30 2011
a(n) = -n*A024005(n).