login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A241739
Number of partitions p of n such that (number of numbers in p of form 3k+1) > (number of numbers in p of form 3k+2).
3
0, 1, 1, 1, 3, 3, 3, 8, 9, 10, 20, 24, 27, 49, 58, 69, 109, 132, 153, 234, 279, 331, 469, 565, 662, 918, 1093, 1290, 1723, 2056, 2411, 3165, 3751, 4411, 5656, 6700, 7839, 9932, 11707, 13699, 17084, 20099, 23441, 28939, 33914, 39498, 48236, 56392, 65481
OFFSET
0,5
COMMENTS
Each number in p is counted once, regardless of its multiplicity.
FORMULA
a(n) + A241737(n) + A241838(n) = A000041(n) for n >= 0.
EXAMPLE
a(8) counts these 9 partitions: 71, 611, 44, 431, 4211, 3311, 311111, 11111111.
MATHEMATICA
z = 40; f[n_] := f[n] = IntegerPartitions[n]; s[k_, p_] := Count[Mod[DeleteDuplicates[p], 3], k];
Table[Count[f[n], p_ /; s[1, p] < s[2, p]], {n, 0, z}] (* A241737 *)
Table[Count[f[n], p_ /; s[1, p] == s[2, p]], {n, 0, z}] (* A241738 *)
Table[Count[f[n], p_ /; s[1, p] > s[2, p]], {n, 0, z}] (* A241739 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 28 2014
STATUS
approved