OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7, -21, 35, -35, 21, -7, 1).
FORMULA
G.f.: -6*x^2*(9+53*x+47*x^2+11*x^3)/(x-1)^7.
a(n) = n^6-n^3-n^2+n.
MAPLE
a:= n-> (((n^3-1)*n-1)*n+1)*n:
seq(a(n), n=0..30);
MATHEMATICA
Table[n^6-n^3-n^2+n, {n, 0, 30}] (* or *) LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {0, 0, 54, 696, 4020, 15480, 46410}, 30] (* Harvey P. Dale, Oct 13 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Oct 21 2012
STATUS
approved