OFFSET
1,2
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)*(112*n^3 - 156*n^2 + 50*n).
G.f.: x*(1 + 58*x + 53*x^2)/(1-x)^4. - Colin Barker, Jan 19 2012
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {1, 62, 295, 812}, 40] (* Harvey P. Dale, Nov 15 2022 *)
PROG
(Magma) [(1/6)*(112*n^3-156*n^2+50*n): n in [1..40]]; // Vincenzo Librandi, Jul 26 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved