OFFSET
1,4
COMMENTS
The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length).
EXAMPLE
The a(1) = 1 through a(15) = 9 partitions (A=10, B=11):
1 . . 22 . . 331 332 333 433 533 633 733 833 933
31 431 432 532 632 732 832 932 A32
531 631 731 831 931 A31 B31
4441 4442 4443
5441 5442
5531 5532
6441
6531
6621
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Length[#]==Median[#]&]], {n, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 07 2023
STATUS
approved