OFFSET
0,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: (2 - 5*x + x^2)/(1 - x)^4.
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {2, 3, 1, -6}, 100] (* Paolo Xausa, Oct 22 2023 *)
PROG
(Magma) [-(n + 1)*(2*n^2 + n - 12)/6 : n in [0..80]]; // Wesley Ivan Hurt, Aug 19 2022
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Dec 18 2000
STATUS
approved