A359889
Numbers that are 1 or whose prime indices have the same mean as median.
Original entry on oeis.org
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 22, 23, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 43, 46, 47, 49, 51, 53, 55, 57, 58, 59, 61, 62, 64, 65, 67, 69, 71, 73, 74, 77, 79, 81, 82, 83, 85, 86, 87, 89, 90, 91, 93, 94
Offset: 1
The prime indices of 900 are {1,1,2,2,3,3}, with mean 2 and median 2, so 900 is in the sequence.
The RHS (median of prime indices) is
A360005/2.
A316413 lists numbers whose prime indices have integer mean.
A359908 lists numbers whose prime indices have integer median.
-
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Select[Range[100],#==1||Mean[prix[#]]==Median[prix[#]]&]
A359894
Number of integer partitions of n whose parts do not have the same mean as median.
Original entry on oeis.org
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
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)
The complement is counted by
A240219.
A008289 counts strict partitions by mean.
A359909 counts factorizations with the same mean as median, odd-len
A359910.
-
Table[Length[Select[IntegerPartitions[n],Mean[#]!=Median[#]&]],{n,0,30}]
A359897
Number of strict integer partitions of n whose parts have the same mean as median.
Original entry on oeis.org
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
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)
The complement is counted by
A359898.
A008289 counts strict partitions by mean.
A240850 counts strict partitions containing their mean, complement
A240851.
Cf.
A065795,
A066571,
A067659,
A082550,
A102627,
A135342,
A316313,
A327473,
A327475,
A328966,
A359909.
-
Table[Length[Select[IntegerPartitions[n],UnsameQ@@#&&Mean[#]==Median[#]&]],{n,0,30}]
A363740
Number of integer partitions of n whose median appears more times than any other part, i.e., partitions containing a unique mode equal to the median.
Original entry on oeis.org
1, 2, 2, 4, 5, 7, 10, 15, 18, 26, 35, 46, 61, 82, 102, 136, 174, 224, 283, 360, 449, 569, 708, 883, 1089, 1352, 1659, 2042, 2492, 3039, 3695, 4492, 5426, 6555, 7889, 9482, 11360, 13602, 16231, 19348, 23005, 27313, 32364, 38303, 45227, 53341, 62800, 73829
Offset: 1
The a(1) = 1 through a(8) = 15 partitions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (221) (33) (322) (44)
(211) (311) (222) (331) (332)
(1111) (2111) (411) (511) (422)
(11111) (3111) (2221) (611)
(21111) (4111) (2222)
(111111) (22111) (3221)
(31111) (5111)
(211111) (22211)
(1111111) (32111)
(41111)
(221111)
(311111)
(2111111)
(11111111)
A008284 counts partitions by length (or decreasing mean), strict
A008289.
-
modes[ms_]:=Select[Union[ms],Count[ms,#]>=Max@@Length/@Split[ms]&];
Table[Length[Select[IntegerPartitions[n],{Median[#]}==modes[#]&]],{n,30}]
A363719
Number of integer partitions of n satisfying (mean) = (median) = (mode), assuming there is a unique mode.
Original entry on oeis.org
1, 2, 2, 3, 2, 4, 2, 5, 3, 5, 2, 10, 2, 7, 7, 12, 2, 18, 2, 24, 16, 13, 2, 58, 15, 18, 37, 60, 2, 123, 2, 98, 79, 35, 103, 332, 2, 49, 166, 451, 2, 515, 2, 473, 738, 92, 2, 1561, 277, 839, 631, 1234, 2, 2043, 1560, 2867, 1156, 225, 2, 9020
Offset: 1
The a(n) partitions for n = 1, 2, 4, 6, 8, 12, 14, 16 (A..G = 10..16):
1 2 4 6 8 C E G
11 22 33 44 66 77 88
1111 222 2222 444 2222222 4444
111111 3221 3333 3222221 5443
11111111 4332 3322211 6442
5331 4222211 7441
222222 11111111111111 22222222
322221 32222221
422211 33222211
111111111111 42222211
52222111
1^16
Just two statistics:
A008284 counts partitions by length (or negative mean), strict
A008289.
A362608 counts partitions with a unique mode.
-
modes[ms_]:=Select[Union[ms],Count[ms,#]>=Max@@Length/@Split[ms]&];
Table[Length[Select[IntegerPartitions[n], {Mean[#]}=={Median[#]}==modes[#]&]],{n,30}]
A359895
Number of odd-length integer partitions of n whose parts have the same mean as median.
Original entry on oeis.org
0, 1, 1, 2, 1, 2, 3, 2, 1, 5, 5, 2, 5, 2, 8, 18, 1, 2, 19, 2, 24, 41, 20, 2, 9, 44, 31, 94, 102, 2, 125, 2, 1, 206, 68, 365, 382, 2, 98, 433, 155, 2, 716, 2, 1162, 2332, 196, 2, 17, 1108, 563, 1665, 3287, 2, 3906, 5474, 2005, 3083, 509, 2, 9029
Offset: 0
The a(1) = 1 through a(9) = 5 partitions:
(1) (2) (3) (4) (5) (6) (7) (8) (9)
(111) (11111) (222) (1111111) (333)
(321) (432)
(531)
(111111111)
The a(15) = 18 partitions:
(15)
(5,5,5)
(6,5,4)
(7,5,3)
(8,5,2)
(9,5,1)
(3,3,3,3,3)
(4,3,3,3,2)
(4,4,3,2,2)
(4,4,3,3,1)
(5,3,3,2,2)
(5,3,3,3,1)
(5,4,3,2,1)
(5,5,3,1,1)
(6,3,3,2,1)
(6,4,3,1,1)
(7,3,3,1,1)
(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
The complement is counted by
A359896.
The version for factorizations is
A359910.
-
Table[Length[Select[IntegerPartitions[n], OddQ[Length[#]]&&Mean[#]==Median[#]&]],{n,0,30}]
-
\\ P(n, k, m) is g.f. for k parts of max size m.
P(n, k, m)={polcoef(1/prod(i=1, m, 1 - y*x^i + O(x*x^n)), k, y)}
a(n)={if(n==0, 0, sumdiv(n, d, if(d%2, my(m=n/d, h=d\2, r=n-m*(h+1)+h); polcoef(P(r, h, m)*P(r, h, r), r))))} \\ Andrew Howroyd, Jan 21 2023
A363720
Number of integer partitions of n with different mean, median, and mode.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 2, 3, 5, 7, 16, 17, 34, 38, 50, 79, 115, 123, 198, 220, 291, 399, 536, 605, 815, 1036, 1241, 1520, 2059, 2315, 3132, 3708, 4491, 5668, 6587, 7788, 10259, 12299, 14515, 17153, 21558, 24623, 30876, 35540, 41476, 52023, 61931, 70811, 85545
Offset: 0
The a(7) = 2 through a(11) = 16 partitions:
(421) (431) (621) (532) (542)
(3211) (521) (3321) (541) (632)
(4211) (4311) (631) (641)
(5211) (721) (731)
(32211) (5311) (821)
(6211) (4322)
(322111) (4421)
(5321)
(5411)
(6311)
(7211)
(33221)
(43211)
(52211)
(332111)
(422111)
The case of a unique mode is
A363725.
These partitions have ranks
A363730.
Just two statistics:
A008284 counts partitions by length (or negative mean), strict
A008289.
A362608 counts partitions with a unique mode.
-
modes[ms_]:=Select[Union[ms],Count[ms,#]>=Max@@Length/@Split[ms]&];
Table[Length[Select[IntegerPartitions[n],{Mean[#]}!={Median[#]}!=modes[#]&]],{n,0,30}]
A359900
Number of strict odd-length integer partitions of n whose parts do not have the same mean as median.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 4, 5, 4, 8, 10, 8, 15, 18, 17, 26, 27, 31, 43, 51, 53, 59, 81, 87, 109, 127, 115, 169, 194, 213, 255, 243, 322, 379, 431, 478, 487, 629, 667, 804, 907, 902, 1151, 1294, 1439, 1530, 1674, 2031, 2290, 2559, 2829, 2973, 3296, 3939
Offset: 0
The a(7) = 1 through a(16) = 15 partitions (A=10, B=11, C=12, D=13):
(421) (431) (621) (532) (542) (651) (643) (653) (762) (754)
(521) (541) (632) (732) (652) (743) (843) (763)
(631) (641) (831) (742) (752) (861) (853)
(721) (731) (921) (751) (761) (942) (862)
(821) (832) (842) (A32) (871)
(841) (851) (A41) (943)
(931) (932) (B31) (952)
(A21) (941) (C21) (961)
(A31) (A42)
(B21) (A51)
(B32)
(B41)
(C31)
(D21)
(64321)
The complement is counted by
A359899.
A008289 counts strict partitions by mean.
Cf.
A000016,
A065795,
A066571,
A102627,
A240850,
A240851,
A327475,
A359894,
A359906,
A359907,
A359910.
-
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&OddQ[Length[#]]&&Mean[#]!=Median[#]&]],{n,0,30}]
A359896
Number of odd-length integer partitions of n whose parts do not have the same mean as median.
Original entry on oeis.org
0, 0, 0, 0, 1, 2, 2, 6, 9, 11, 15, 27, 32, 50, 58, 72, 112, 149, 171, 246, 286, 359, 477, 630, 773, 941, 1181, 1418, 1749, 2289, 2668, 3429, 4162, 4878, 6074, 7091, 8590, 10834, 12891, 15180, 18491, 22314, 25845, 31657, 36394, 42269, 52547, 62414, 73576, 85701
Offset: 0
The a(4) = 1 through a(9) = 11 partitions:
(211) (221) (411) (322) (332) (441)
(311) (21111) (331) (422) (522)
(421) (431) (621)
(511) (521) (711)
(22111) (611) (22221)
(31111) (22211) (32211)
(32111) (33111)
(41111) (42111)
(2111111) (51111)
(2211111)
(3111111)
These partitions are ranked by
A359892.
-
Table[Length[Select[IntegerPartitions[n], OddQ[Length[#]]&&Mean[#]!=Median[#]&]],{n,0,30}]
A359898
Number of strict integer partitions of n whose parts do not have the same mean as median.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 4, 6, 5, 11, 12, 14, 21, 29, 26, 44, 44, 58, 68, 92, 92, 118, 137, 165, 192, 241, 223, 324, 353, 405, 467, 518, 594, 741, 809, 911, 987, 1239, 1276, 1588, 1741, 1823, 2226, 2566, 2727, 3138, 3413, 3905, 4450, 5093, 5434, 6134
Offset: 0
The a(7) = 1 through a(13) = 11 partitions:
(4,2,1) (4,3,1) (6,2,1) (5,3,2) (5,4,2) (6,5,1) (6,4,3)
(5,2,1) (5,4,1) (6,3,2) (7,3,2) (6,5,2)
(6,3,1) (6,4,1) (8,3,1) (7,4,2)
(7,2,1) (7,3,1) (9,2,1) (7,5,1)
(8,2,1) (6,3,2,1) (8,3,2)
(5,3,2,1) (8,4,1)
(9,3,1)
(10,2,1)
(5,4,3,1)
(6,4,2,1)
(7,3,2,1)
The complement is counted by
A359897.
A008289 counts strict partitions by mean.
-
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&Mean[#]!=Median[#]&]],{n,0,30}]
Showing 1-10 of 13 results.
Comments