A360245 Number of integer partitions of n where the parts have the same median as the distinct parts.
1, 1, 2, 3, 4, 4, 8, 6, 11, 13, 19, 19, 35, 33, 48, 66, 78, 88, 124, 138, 183, 219, 252, 306, 388, 450, 527, 643, 780, 903, 1097, 1266, 1523, 1784, 2107, 2511, 2966, 3407, 4019, 4667, 5559, 6364, 7492, 8601, 10063, 11634, 13469, 15469, 17985, 20558, 23812
Offset: 0
Keywords
Examples
The a(1) = 1 through a(8) = 11 partitions: (1) (2) (3) (4) (5) (6) (7) (8) (11) (21) (22) (32) (33) (43) (44) (111) (31) (41) (42) (52) (53) (1111) (11111) (51) (61) (62) (222) (421) (71) (321) (1111111) (431) (2211) (521) (111111) (2222) (3221) (3311) (11111111) For example, the partition y = (6,4,4,4,1,1) has median 4, and the distinct parts {1,4,6} also have median 4, so y is counted under a(20).
Crossrefs
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n], Median[#]==Median[Union[#]]&]],{n,0,30}]
Comments