|
|
A307683
|
|
Number of partitions of n having a non-integer median.
|
|
62
|
|
|
0, 0, 1, 0, 2, 1, 4, 1, 7, 5, 11, 8, 18, 17, 31, 28, 47, 51, 75, 81, 119, 134, 181, 206, 277, 323, 420, 488, 623, 737, 922, 1084, 1352, 1597, 1960, 2313, 2819, 3330, 4029, 4743, 5704, 6722, 8030, 9434, 11234, 13175, 15601, 18262, 21552, 25184, 29612, 34518
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
COMMENTS
|
The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length). - Gus Wiseman, Mar 16 2023
|
|
LINKS
|
|
|
EXAMPLE
|
a(7) counts these 4 partitions: [6,1], [5,2], [4,3], [3,2,1,1].
|
|
MATHEMATICA
|
Table[Count[IntegerPartitions[n], q_ /; !IntegerQ[Median[q]]], {n, 10}]
|
|
CROSSREFS
|
Cf. A000016, A051293, A067538, A082550, A240219, A240850, A316413, A326567/A326568, A327475, A359897, A360005.
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|