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)*(60*n^3 - 72*n^2 + 18*n).
G.f.: x*(1 + 34*x + 25*x^2)/(1-x)^4. - Colin Barker, Feb 14 2012
MATHEMATICA
Table[(60n^3-72n^2+18n)/6, {n, 40}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {1, 38, 171, 460}, 40] (* Harvey P. Dale, Aug 21 2016 *)
PROG
(Magma) [(1/6)*(60*n^3-72*n^2+18*n): n in [1..40]]; // Vincenzo Librandi, Jul 26 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved