OFFSET
2,3
COMMENTS
a(n) = A001840(n-1)-1.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
Bernhard Ganter, Notes on Integer Partitions, Technische Universität Dresden (2020); See Prop. 3.
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
G.f.: x^3*(-1-x^2+x^3) / ( (1+x+x^2)*(x-1)^3 ). - R. J. Mathar, Jan 14 2021
MATHEMATICA
Table[Floor[n (n + 1)/6] - 1, {n, 2, 80}] (* Robert P. P. McKone, Dec 19 2020 *)
LinearRecurrence[{2, -1, 1, -2, 1}, {0, 1, 2, 4, 6}, 90] (* Harvey P. Dale, Feb 15 2026 *)
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 10 2020
STATUS
approved
