OFFSET
0,3
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).
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).
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 *)
PROG
(Magma) [(n^8-n): n in [0..30]]
(PARI) a(n)=n^8-n \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Sep 30 2011
STATUS
approved