OFFSET
1,1
COMMENTS
Third column of array A094416.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
Equals n * A003154(n) (star numbers).
G.f.: x*(13 + 22*x + x^2)/(1-x)^4. - Colin Barker, Aug 02 2012
E.g.f.: x*(13 + 24*x + 6*x^2)*exp(x). - G. C. Greubel, Oct 30 2019
MAPLE
MATHEMATICA
Table[n(6n^2+6n+1), {n, 40}] (* Wesley Ivan Hurt, Feb 12 2014 *)
LinearRecurrence[{4, -6, 4, -1}, {13, 74, 219, 484}, 40] (* Harvey P. Dale, Jan 04 2016 *)
PROG
(PARI) vector(40, n, n*(6*n^2+6*n+1)) \\ G. C. Greubel, Oct 30 2019
(Magma) [n*(6*n^2+6*n+1): n in [1.40]]; // G. C. Greubel, Oct 30 2019
(Sage) [n*(6*n^2+6*n+1) for n in (1..40)] # G. C. Greubel, Oct 30 2019
(GAP) List([1..40], n-> n*(6*n^2+6*n+1)); # G. C. Greubel, Oct 30 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, May 02 2004
STATUS
approved