|
|
A096375
|
|
Number of partitions of n such that the least part occurs with odd multiplicity.
|
|
3
|
|
|
1, 1, 3, 2, 6, 6, 11, 11, 22, 23, 37, 42, 65, 76, 111, 127, 182, 217, 294, 351, 471, 562, 734, 881, 1137, 1364, 1733, 2074, 2608, 3127, 3883, 4644, 5732, 6838, 8367, 9963, 12113, 14395, 17396, 20614, 24785, 29314, 35059, 41360, 49270, 57979, 68775, 80753
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
G.f.: Sum_{m>=1} ((x^m/(1+x^m))/Product_{i>=m}(1-x^i)).
|
|
MAPLE
|
b:= proc(n, i) option remember; `if`(i<1, 0, `if`(irem(n, i, 'r')=0
and irem(r, 2)=1, 1, 0)+ add(b(n-i*j, i-1), j=0..n/i))
end:
a:= n-> b(n, n):
|
|
MATHEMATICA
|
f[n_] := Block[{p = IntegerPartitions[n], l = PartitionsP[n], c = 0, k = 1}, While[k < l + 1, If[ OddQ[ Count[ p[[k]], p[[k]][[ -1]] ]], c++ ]; k++ ]; c]; Table[ f[n], {n, 50}] (* Robert G. Wilson v, Jul 23 2004 *)
b[n_, i_] := b[n, i] = If[i<1, 0, {q, r} = QuotientRemainder[n, i]; If[r == 0 && Mod[q, 2] == 1, 1, 0] + Sum[b[n - i*j, i-1], {j, 0, n/i}]] ; a[n_] := b[n, n]; Table[a[n], {n, 1, 50}] (* Jean-François Alcover, Jan 24 2014, after Alois P. Heinz *)
|
|
PROG
|
(PARI) {q=sum(m=1, 100, (x^m/(1+x^m))/prod(i=m, 100, 1-x^i, 1+O(x^60)), 1+O(x^60)); for(n=1, 47, print1(polcoeff(q, n), ", "))} - Klaus Brockhaus, Jul 21 2004
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|