OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (1/6)*(110*n^3 - 150*n^2 + 46*n).
G.f.: x*(1 + 58*x + 51*x^2)/(1-x)^4. - Colin Barker, Apr 16 2012
E.g.f.: x*(3 + 90*x + 55*x^2)*exp(x)/3. - G. C. Greubel, Oct 18 2018
MATHEMATICA
Table[(110*n^3 - 150*n^2 + 46*n)/6, {n, 1, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {1, 62, 293, 804}, 50] (* G. C. Greubel, Oct 18 2018 *)
PROG
(Magma) [(1/6)*(110*n^3-150*n^2+46*n): n in [1..40]]; // Vincenzo Librandi, Jul 19 2011
(PARI) vector(50, n, (110*n^3 - 150*n^2 + 46*n)/6) \\ G. C. Greubel, Oct 18 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved