|
|
A339435
|
|
G.f.: Sum_{k>=0} (-1)^k * k! * x^(k*(k + 1)/2) / Product_{j=1..k} (1 - x^j).
|
|
1
|
|
|
1, -1, -1, 1, 1, 3, -3, -1, -7, -11, 7, 3, 15, 35, 71, -35, 25, -57, -99, -277, -415, 25, -185, 39, 327, 1079, 1895, 3745, -71, 2907, 813, 479, -4927, -7259, -20393, -29877, -8409, -28621, -23041, -16811, 4441, 27783, 102741, 169595, 324065, 105265, 361471, 280983, 385215
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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
|
|
|
FORMULA
|
|
|
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):
|
|
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
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|