OFFSET
0,3
FORMULA
G.f.: (1 - x^2)/( (1 - 2*x^2) * Product_{i>=0} (1 - x^(2*i + 1) * (1 - x^2)/(1 - 2*x^2)) ).
EXAMPLE
a(5) = 14 counts all compositions of n = 5 except (1,3,1) and (3,1,1) since the odd parts are not weakly increasing.
The composition of n = 13 (2,1,1,4,2,3) has odd parts (1,1,3), so it is counted under a(13) = 1794.
PROG
(PARI) A_x(N) = {my(x='x+O('x^(N+1))); Vec((1-x^2)/(1-2*x^2)/prod(i=0, N, 1-x^(2*i+1)*(1-x^2)/(1-2*x^2)))}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Aug 02 2025
STATUS
approved
