OFFSET
0,5
COMMENTS
Also the number of integer partitions of n whose median difference is 0. For example, the partition (2,2,2,1,1) is counted because its multiset of differences {0,0,0,1} has median 0. - Gus Wiseman, Mar 18 2023
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..800
EXAMPLE
Among the 22 partitions of 8, these qualify: [5,1,1,1], [4,4], [4,1,1,1,1], [3,3,1,1], [3,1,1,1,1,1], [2,2,2,2], [2,2,2,1,1], [2,2,1,1,1,1], [2,1,1,1,1,1,1], [1,1,1,1,1,1,1,1], and the remaining 12 do not, so that a(8) = 10.
MATHEMATICA
z = 50; t = Map[Length[Select[IntegerPartitions[#], 2*Length[DeleteDuplicates[#]] <= Length[#] &]] &, Range[z]] (*A237363*)
Table[PartitionsP[n] - t[[n]], {n, 1, z}] (*A237365*) (* Peter J. C. Moses, Feb 06 2014 *)
Table[Length[Select[IntegerPartitions[n], Median[Differences[#]]==0&]], {n, 0, 30}] (* Gus Wiseman, Mar 18 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Feb 06 2014
STATUS
approved