OFFSET
0,6
COMMENTS
The difference between the number of compositions (ordered partitions) of n into an even number of distinct parts and the number of compositions (ordered partitions) of n into an odd number of distinct parts.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..5000
MAPLE
b:= proc(n, i, p) option remember; `if`(i*(i+1)/2<n, 0, `if`(n=0, p!
*(1-2*irem(p, 2)), add(b(n-i*j, i-1, p+j), j=0..min(1, n/i))))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..55); # Alois P. Heinz, Dec 04 2020
MATHEMATICA
nmax = 48; CoefficientList[Series[Sum[(-1)^k k! x^(k (k + 1)/2)/Product[1 - x^j, {j, 1, k}], {k, 0, nmax}], {x, 0, nmax}], x]
CROSSREFS
KEYWORD
sign,look
AUTHOR
Ilya Gutkovskiy, Dec 04 2020
STATUS
approved