A359897 Number of strict integer partitions of n whose parts have the same mean as median.
0, 1, 1, 2, 2, 3, 4, 4, 4, 7, 6, 6, 10, 7, 10, 13, 11, 9, 20, 10, 20, 18, 21, 12, 30, 24, 28, 27, 30, 15, 73, 16, 37, 43, 45, 67, 74, 19, 55, 71, 126, 21, 150, 22, 75, 225, 78, 24, 183, 126, 245, 192, 132, 27, 284, 244, 403, 303, 120, 30, 828
Offset: 0
Keywords
Examples
The a(1) = 1 through a(9) = 7 partitions: (1) (2) (3) (4) (5) (6) (7) (8) (9) (2,1) (3,1) (3,2) (4,2) (4,3) (5,3) (5,4) (4,1) (5,1) (5,2) (6,2) (6,3) (3,2,1) (6,1) (7,1) (7,2) (8,1) (4,3,2) (5,3,1)
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n],UnsameQ@@#&&Mean[#]==Median[#]&]],{n,0,30}]