OFFSET
1,2
COMMENTS
2-magic series constant.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Magic constant.
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
G.f.: x*(1 + 3*x + x^2)*(1 + 6*x + x^2)/(1-x)^6. - Chai Wah Wu, Dec 17 2016
E.g.f.: x*(6 +39*x +53*x^2 +20*x^3 +2*x^4)*exp(x)/6. - G. C. Greubel, Sep 23 2019
MAPLE
seq(n*(2*n^2 +1)*(n^2 +1)/6, n=1..30); # G. C. Greubel, Sep 23 2019
MATHEMATICA
Table[n*(2*n^2 +1)*(n^2 +1)/6, {n, 30}] (* G. C. Greubel, Sep 23 2019 *)
PROG
(PARI) vector(30, n, n*(2*n^2 +1)*(n^2 +1)/6) \\ G. C. Greubel, Sep 23 2019
(Magma) [n*(2*n^2 +1)*(n^2 +1)/6: n in [1..30]]; // G. C. Greubel, Sep 23 2019
(Sage) [n*(2*n^2 +1)*(n^2 +1)/6 for n in (1..30)] # G. C. Greubel, Sep 23 2019
(GAP) List([1..30], n-> n*(2*n^2 +1)*(n^2 +1)/6); # G. C. Greubel, Sep 23 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Formula from Vladeta Jovovic, Jun 15 2002
STATUS
approved