OFFSET
0,7
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(3) = 1 through a(9) = 13 partitions:
(111) (1111) (11111) (222) (22111) (2222) (333)
(321) (31111) (3221) (432)
(2211) (211111) (3311) (531)
(21111) (1111111) (22211) (22221)
(111111) (32111) (33111)
(41111) (51111)
(221111) (222111)
(311111) (321111)
(2111111) (411111)
(11111111) (2211111)
(3111111)
(21111111)
(111111111)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Median[Differences[#, 2]]==0&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Feb 19 2023
STATUS
approved