OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (1/6)*(10*n^3 - 9*n^2 + 5*n).
G.f.: x*(1 + 5*x + 4*x^2)/(1-x)^4. - Colin Barker, Jan 19 2012
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Harvey P. Dale, Oct 28 2018
E.g.f.: (6*x + 21*x^2 + 10*x^3)*exp(x)/6. - G. C. Greubel, Nov 08 2018
MATHEMATICA
Table[(10n^3-9n^2+5n)/6, {n, 40}] (* Harvey P. Dale, Oct 28 2018 *)
PROG
(Magma) [(1/6)*(10*n^3-9*n^2+5*n): n in [1..40]]; // Vincenzo Librandi, Aug 18 2011
(PARI) vector(40, n, (10*n^3-9*n^2+5*n)/6) \\ G. C. Greubel, Nov 08 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved