OFFSET
0,1
REFERENCES
A. Schultze, Advanced Algebra, Macmillan, London, 1910; p. 552.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
From R. J. Mathar, Sep 23 2008: (Start)
G.f.: (2 - 5*x + 7*x^2 - 3*x^3)/(1-x)^4.
a(n) = A027965(n+1), n > 0. (End)
E.g.f.: exp(x)*(12 + 6*x + 9*x^2 + x^3)/6. - Stefano Spezia, Jul 12 2023
MATHEMATICA
Table[(n^3 + 6n^2 - n + 12)/6, {n, 0, 49}] (* Alonso del Arte, Jan 13 2012 *)
CoefficientList[Series[(2-5x+7x^2-3x^3)/(1-x)^4, {x, 0, 50}], x] (* or *) LinearRecurrence[ {4, -6, 4, -1}, {2, 3, 7, 15}, 50] (* Harvey P. Dale, Aug 05 2022 *)
PROG
(PARI) a(n)=n*(n^2+6*n-1)/6+2 \\ Charles R Greathouse IV, Jan 13 2012
(Magma) [(n^3 + 6*n^2 - n + 12)/6: n in [0..50]]; // Vincenzo Librandi, Jan 13 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Susanna Cuyler, Sep 06 2002
STATUS
approved
