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)*(57*n^3 - 81*n^2 + 30*n).
G.f.: x*(1 + 28*x + 28*x^2)/(1-x)^4. [Colin Barker, May 29 2012]
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {1, 32, 150, 412}, 50] (* Harvey P. Dale, Sep 18 2023 *)
PROG
(Magma) [(1/6)*(57*n^3-81*n^2+30*n): n in [1..40]]; // Vincenzo Librandi, Jul 27 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
James A. Record (james.record(AT)gmail.com), Nov 07 2004
STATUS
approved