OFFSET
0,4
COMMENTS
A composition with parts in standard order satisfies the condition that for any part p > 1, the part p - 1 has already appeared and each part p in an n-color composition can be p different colors. All terms are odd.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2399
FORMULA
G.f.: Sum_{i>=0} i! * x^(i*(i+1)/2) / Product_{j=1..i} (1 - Sum_{k=1..j} (k*x^k)).
EXAMPLE
a(4) = 5: (1,1,1,1), (1,2_a,1), (1,2_b,1), (1,1,2_a), (1,1,2_b).
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
add(b(n-j, max(i, j))*j, j=1..min(i+1, n)))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..32); # Alois P. Heinz, Apr 26 2026
PROG
(PARI) A_x(N) = {my(x='x+O('x^(N+1)), A = sum(i=0, N, i! * x^(i*(i+1)/2) / prod(j=1, i, 1 - sum(k=1, j, k*x^k)))); Vec(A)}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Apr 25 2026
STATUS
approved
