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”).

A240852
Number of partitions p of n into distinct parts including max(p) - min(p).
2
0, 0, 0, 1, 0, 0, 2, 0, 1, 2, 3, 0, 4, 2, 6, 4, 5, 5, 11, 7, 12, 11, 14, 16, 21, 21, 26, 28, 32, 37, 47, 46, 56, 64, 69, 81, 91, 101, 118, 131, 142, 163, 184, 201, 231, 258, 281, 319, 353, 391, 437, 485, 533, 599, 664, 727, 809, 894, 979, 1091, 1201, 1316
OFFSET
0,7
FORMULA
a(n) + A240850(n) = A000009(n) for n >= 0.
EXAMPLE
a(10) counts these 3 partitions: 541, 532, 4321.
MATHEMATICA
z = 40; f[n_] := f[n] = Select[IntegerPartitions[n], Max[Length /@ Split@#] == 1 &]; Table[Count[f[n], p_ /; MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A240852 *)
Table[Count[f[n], p_ /; !MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A240858 *)
CROSSREFS
Sequence in context: A350369 A117398 A295989 * A363612 A309816 A071486
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 14 2014
STATUS
approved