login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A241387 Number of partitions p of n such that the number of distinct parts is a part and max(p) - min(p) is a part. 5
0, 0, 0, 1, 1, 2, 4, 4, 7, 9, 13, 14, 22, 26, 36, 40, 54, 66, 85, 99, 127, 148, 187, 221, 277, 323, 394, 464, 565, 665, 805, 939, 1126, 1320, 1573, 1832, 2183, 2541, 3004, 3504, 4111, 4769, 5614, 6498, 7599, 8803, 10256, 11853, 13783, 15895, 18429, 21250 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
FORMULA
a(n) + A241388(n) + A241389(n) = A241391(n) for n >= 0.
EXAMPLE
a(9) counts these 9 partitions: 432, 4311, 3321, 32211, 321111, 222211, 222111, 221111, 21111111.
MATHEMATICA
z = 40; f[n_] := f[n] = IntegerPartitions[n]; d[p_] := d[p] = Length[DeleteDuplicates[p]];
Table[Count[f[n], p_ /; MemberQ[p, d[p]] && MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A241387 *)
Table[Count[f[n], p_ /; ! MemberQ[p, d[p]] && MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A241388 *)
Table[Count[f[n], p_ /; MemberQ[p, d[p]] && ! MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A241389 *)
Table[Count[f[n], p_ /; ! MemberQ[p, d[p]] && ! MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A241390 *)
Table[Count[f[n], p_ /; MemberQ[p, d[p]] || MemberQ[p, Max[p] - Min[p]]], {n, 0, z}] (* A241391 *)
CROSSREFS
Sequence in context: A353927 A262884 A340448 * A284612 A070072 A265259
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 21 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 18:59 EDT 2024. Contains 372297 sequences. (Running on oeis4.)