OFFSET
0,3
LINKS
L. Moser and E. L. Whitney, Weighted compositions, Canad. Math. Bull. 4 (1961), 39-43.
Index entries for linear recurrences with constant coefficients, signature (3,-2,0,-1,1)
FORMULA
a(n) = (A001590(n+2) + n)/2, see Moser & Whitley reference, Theorem 3.
a(n) = A062544(n-3) + n for n >= 3 (also for n = 1 and 2 with A062544(-2) = A062544(-1) = 0), Moser & Whitney.
G.f.: (x^5-x^4+x^3-x^2+2*x-1)/((x^3+x^2+x-1)*(x-1)^2). - Alois P. Heinz, Sep 06 2019
EXAMPLE
a(4) counts (1,1,1,1), (1,1,2), (1,2,1), (2,1,1), (2,2), but not (1,3) or (3,1) since they contain 3, neither (4) since that has an odd number of parts congruent to 4 or 5 mod 6.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Brian Hopkins, Sep 06 2019
STATUS
approved