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

A241515
Number of partitions of n such that (number parts having multiplicity 1) is a part or (number of parts > 1) is a part.
5
0, 1, 0, 1, 3, 5, 7, 12, 14, 21, 26, 37, 47, 69, 81, 114, 145, 194, 245, 329, 403, 537, 665, 853, 1055, 1358, 1649, 2096, 2551, 3182, 3887, 4816, 5800, 7174, 8646, 10536, 12680, 15434, 18398, 22272, 26578, 31900, 37949, 45433, 53751, 64125, 75774, 89800
OFFSET
0,5
FORMULA
a(n) + A241514(n) = A000041(n) for n >= 0.
EXAMPLE
a(6) counts these 7 partitions: 51, 42, 411, 321, 3111, 2211, 21111.
MATHEMATICA
z = 30; f[n_] := f[n] = IntegerPartitions[n]; u[p_] := Length[DeleteDuplicates[Select[p, Count[p, #] == 1 &]]];
Table[Count[f[n], p_ /; MemberQ[p, u[p]] && MemberQ[p, Length[p] - Count[p, 1]]], {n, 0, z}] (* A241511 *)
Table[Count[f[n], p_ /; ! MemberQ[p, u[p]] && MemberQ[p, Length[p] - Count[p, 1]] ], {n, 0, z}] (* A241512 *)
Table[Count[f[n], p_ /; MemberQ[p, u[p]] && ! MemberQ[p, Length[p] - Count[p, 1]] ], {n, 0, z}] (* A241513 *)
Table[Count[f[n], p_ /; ! MemberQ[p, u[p]] && ! MemberQ[p, Length[p] - Count[p, 1]] ], {n, 0, z}] (* A241514 *)
Table[Count[f[n], p_ /; MemberQ[p, u[p]] || MemberQ[p, Length[p] - Count[p, 1]] ], {n, 0, z}] (* A241515 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 24 2014
STATUS
approved