OFFSET
3,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1)
FORMULA
For n>3, a(n) = 3/2 * (3n^3-30n^2+107n-134).
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {1, 9, 39, 114, 261}, 40] (* Harvey P. Dale, Sep 28 2017 *)
PROG
(PARI) a(n)=max(9*n^3-90*n^2+321*n-402, 2)/2 \\ Charles R Greathouse IV, Oct 19 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved