OFFSET
0,2
COMMENTS
The n-th second n-gonal number.
LINKS
FORMULA
G.f.: -x*(2 - 6*x + x^2)/(1 - x)^4.
E.g.f.: -exp(x)*x*(4 - 2*x - x^2)/2.
a(n) = n^2*(n - 1)/2 - 2*n.
MATHEMATICA
Table[n (Binomial[n, 2] - 2), {n, 0, 45}]
LinearRecurrence[{4, -6, 4, -1}, {0, -2, -2, 3}, 46]
CoefficientList[Series[-x (2 - 6 x + x^2)/(1 - x)^4, {x, 0, 45}], x]
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Ilya Gutkovskiy, Feb 19 2021
STATUS
approved