OFFSET
0,3
COMMENTS
All the terms are divisible by 3.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
G.f.: 42*x^2*(3+28*x+58*x^2+28*x^3+3*x^4) / (x-1)^8 . - R. J. Mathar, Mar 13 2015
a(n) = 42*A030180(n). - Philippe Deléham, Mar 17 2016
EXAMPLE
If n=2, then n^7 - n = 126.
If n=13, then n^7 - n = 62748504.
MATHEMATICA
Table[n^7 - n, {n, 0, 40}] (* and *) LinearRecurrence[{8, -28, 56, -70, 56, -28, 8, -1}, {0, 0, 126, 2184, 16380, 78120, 279930, 823536}, 40] (* Vladimir Joseph Stephan Orlovsky, Feb 20 2012 *)
PROG
(Magma) [n^7-n: n in [0..40]]; // Vincenzo Librandi, May 02 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Dec 01 2007
EXTENSIONS
Corrected and extended by Jonathan Vos Post, Dec 02 2007
STATUS
approved