A359894 Number of integer partitions of n whose parts do not have the same mean as median.
0, 0, 0, 0, 1, 3, 3, 10, 13, 20, 28, 49, 53, 93, 113, 145, 203, 287, 329, 479, 556, 724, 955, 1242, 1432, 1889, 2370, 2863, 3502, 4549, 5237, 6825, 8108, 9839, 12188, 14374, 16958, 21617, 25852, 30582, 36100, 44561, 51462, 63238, 73386, 85990, 105272, 124729
Offset: 0
Keywords
Examples
The a(4) = 1 through a(8) = 13 partitions: (211) (221) (411) (322) (332) (311) (3111) (331) (422) (2111) (21111) (421) (431) (511) (521) (2221) (611) (3211) (4211) (4111) (5111) (22111) (22211) (31111) (32111) (211111) (41111) (221111) (311111) (2111111)
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n],Mean[#]!=Median[#]&]],{n,0,30}]