OFFSET
0,5
COMMENTS
EXAMPLE
The a(2) = 1 through a(9) = 7 partitions:
(11) . (22) (2111) (33) (2221) (44) (3222)
(31) (42) (4111) (53) (4221)
(1111) (51) (211111) (62) (4311)
(3111) (71) (6111)
(111111) (2222) (321111)
(3221) (411111)
(3311) (21111111)
(5111)
(221111)
(311111)
(11111111)
For example, the partition (4,3,1,1) has length 4 and median 2, so is counted under a(9).
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], EvenQ[Length[#]]&&IntegerQ[Median[#]]&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 23 2023
STATUS
approved