OFFSET
6,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 6..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = n(n^2-6n+38)/3. - Ralf Stephan, Apr 30 2004
G.f.: x^6*(76-199*x+180*x^2-55*x^3)/(1-x)^4. - Colin Barker, Sep 17 2012
MATHEMATICA
Table[n(n^2 - 6n + 38)/3, {n, 6, 100}] (* Stefan Steinerberger, Apr 14 2006 *)
CoefficientList[Series[(76 - 199 x + 180 x^2 - 55 x^3)/(1 - x)^4, {x, 0, 60}], x] (* Vincenzo Librandi, Oct 17 2013 *)
Table[Range[n].Join[Range[6, n], Range[5]], {n, 6, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {76, 105, 144, 195}, 50] (* Harvey P. Dale, Mar 12 2023 *)
PROG
(Magma) [n*(n^2-6*n+38)/3: n in [6..60]]; // Vincenzo Librandi, Oct 17 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved