OFFSET
3,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 3..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
From Ralf Stephan, Feb 07 2004: (Start)
G.f.: x^3*(1 -3*x +4*x^2 +x^3 -4*x^4 +3*x^5 -x^6)/(1-x)^7.
From G. C. Greubel, Jul 01 2019: (Start)
a(n) = (-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720.
E.g.f.: (7920 +2880*x +360*x^2 -(7920 -5040*x +1440*x^2 -360*x^3 +30*x^4 -12*x^5 -x^6)*exp(x))/6!. (End)
MATHEMATICA
Table[(-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720, {n, 3, 40}] (* G. C. Greubel, Jul 01 2019 *)
PROG
(PARI) for(n=3, 40, print1((-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720, ", ")) \\ G. C. Greubel, Jul 01 2019
(Magma) [(-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720: n in [3..40]]; // G. C. Greubel, Jul 01 2019
(Sage) [(-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720 for n in (3..40)] # G. C. Greubel, Jul 01 2019
(GAP) List([3..40], n-> (-7920 +7548*n -3176*n^2 +735*n^3 -65*n^4 -3*n^5 +n^6)/720) # G. C. Greubel, Jul 01 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved