OFFSET
2,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 2..1000
Eric Weisstein's World of Mathematics, Grid Graph
Eric Weisstein's World of Mathematics, Molecular Topological Index
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = 2*(2+n)*(6 -24*n +25*n^2 -13*n^3 +4*n^4)/3.
G.f.: 4*x^2*(12+38*x+22*x^2+15*x^3-8*x^4+x^5)/(1-x)^6. - Colin Barker, Aug 07 2012
E.g.f.: 2*(-12 +6*x + (12 -18*x +48*x^2 +69*x^3 +35*x^4 +4*x^5)*exp(x) )/3. - G. C. Greubel, Jan 03 2019
MATHEMATICA
Table[2*(2+n)*(6-24*n+25*n^2-13*n^3+4*n^4)/3, {n, 2, 40}] (* G. C. Greubel, Jan 03 2019 *)
PROG
(PARI) {a(n) = 2*(2+n)*(6-24*n+25*n^2-13*n^3+4*n^4)/3}; \\ G. C. Greubel, Jan 03 2019
(Magma) [2*(2+n)*(6-24*n+25*n^2-13*n^3+4*n^4)/3: n in [2..40]]; // G. C. Greubel, Jan 03 2019
(Sage) [2*(2+n)*(6-24*n+25*n^2-13*n^3+4*n^4)/3 for n in (2..40)] # G. C. Greubel, Jan 03 2019
(GAP) List([2..40], n -> 2*(2+n)*(6-24*n+25*n^2-13*n^3+4*n^4)/3); # G. C. Greubel, Jan 03 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Jul 11 2011
STATUS
approved