OFFSET
0,7
EXAMPLE
a(6) counts these 2 partitions: 222, 2211.
MATHEMATICA
z = 30; f[n_] := f[n] = IntegerPartitions[n]; u[p_] := Length[DeleteDuplicates[Select[p, Count[p, #] == 1 &]]]; d[p_] := Length[DeleteDuplicates[p]];
Table[Count[f[n], p_ /; MemberQ[p, u[p]] && MemberQ[p, d[p]]], {n, 0, z}] (* A241442 *)
Table[Count[f[n], p_ /; ! MemberQ[p, u[p]] && MemberQ[p, d[p]] ], {n, 0, z}] (* A241443 *)
Table[Count[f[n], p_ /; MemberQ[p, u[p]] && ! MemberQ[p, d[p]] ], {n, 0, z}] (* A241444 *)
Table[Count[f[n], p_ /; ! MemberQ[p, u[p]] && ! MemberQ[p, d[p]] ], {n, 0, z}] (* A241445 *)
Table[Count[f[n], p_ /; MemberQ[p, u[p]] || MemberQ[p, d[p]] ], {n, 0, z}] (* A241446 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 23 2014
STATUS
approved