OFFSET
0,3
COMMENTS
The parities of all even parts must be equal and the parities of all odd parts must be equal.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
EXAMPLE
For example: for n=5 the partition 3,1,1 is not counted, because 3 and 1 have the same parity, but the frequency of 3 and the frequency of 1 have different parity.
MATHEMATICA
<<Combinatorica`;
For[n=1, n<=66, n++, Print[]; Print["n= ", n];
p={n};
count=1;
For[k=1, k<=PartitionsP[n]-1, k++,
p=NextPartition[p];
tallyp=Tally[p];
condition=True;
For[i=1, i<=Length[tallyp]-1, i++,
For[j=i+1, j<=Length[tallyp], j++,
If[(Mod[tallyp[[i]][[1]], 2]==Mod[tallyp[[j]][[1]], 2])&&(Mod[tallyp[[i]][[2]], 2]!= Mod[tallyp[[j]][[2]], 2]), condition=False]]]
If[condition, count++]];
Print[count]];
CROSSREFS
KEYWORD
nonn
AUTHOR
David S. Newman, Aug 04 2014
EXTENSIONS
Terms a(11) and beyond by Joerg Arndt, Aug 04 2014
STATUS
approved