A366842
Number of integer partitions of n whose odd parts have a common divisor > 1.
Original entry on oeis.org
0, 0, 0, 1, 0, 2, 1, 4, 1, 8, 3, 13, 6, 21, 10, 36, 15, 53, 28, 80, 41, 122, 63, 174, 97, 250, 140, 359, 201, 496, 299, 685, 410, 949, 575, 1284, 804, 1726, 1093, 2327, 1482, 3076, 2023, 4060, 2684, 5358, 3572, 6970, 4745, 9050, 6221, 11734, 8115, 15060, 10609
Offset: 0
The a(3) = 1 through a(11) = 13 partitions:
(3) . (5) (3,3) (7) (3,3,2) (9) (5,5) (11)
(3,2) (4,3) (5,4) (4,3,3) (6,5)
(5,2) (6,3) (3,3,2,2) (7,4)
(3,2,2) (7,2) (8,3)
(3,3,3) (9,2)
(4,3,2) (4,4,3)
(5,2,2) (5,4,2)
(3,2,2,2) (6,3,2)
(7,2,2)
(3,3,3,2)
(4,3,2,2)
(5,2,2,2)
(3,2,2,2,2)
A000740 counts relatively prime compositions.
A239261 counts partitions with (sum of odd parts) = (sum of even parts).
Cf.
A007359,
A051424,
A055922,
A066208,
A078374,
A087436,
A116598,
A337485,
A366843,
A366844,
A366845.
-
Table[Length[Select[IntegerPartitions[n], GCD@@Select[#,OddQ]>1&]], {n,0,30}]
-
from math import gcd
from sympy.utilities.iterables import partitions
def A366842(n): return sum(1 for p in partitions(n) if gcd(*(q for q in p if q&1))>1) # Chai Wah Wu, Oct 28 2023
A366845
Number of integer partitions of n that contain at least one even part and whose halved even parts are relatively prime.
Original entry on oeis.org
0, 0, 1, 1, 2, 3, 5, 7, 11, 15, 23, 31, 43, 58, 82, 107, 144, 189, 250, 323, 420, 537, 695, 880, 1114, 1404, 1774, 2210, 2759, 3423, 4239, 5223, 6430, 7869, 9640, 11738, 14266, 17297, 20950, 25256, 30423, 36545, 43824, 52421, 62620, 74599, 88802, 105431
Offset: 0
The partition y = (6,4) has halved even parts (3,2) which are relatively prime, so y is counted under a(10).
The a(2) = 1 through a(9) = 15 partitions:
(2) (21) (22) (32) (42) (52) (62) (72)
(211) (221) (222) (322) (332) (432)
(2111) (321) (421) (422) (522)
(2211) (2221) (521) (621)
(21111) (3211) (2222) (3222)
(22111) (3221) (3321)
(211111) (4211) (4221)
(22211) (5211)
(32111) (22221)
(221111) (32211)
(2111111) (42111)
(222111)
(321111)
(2211111)
(21111111)
These partitions have ranks
A366847.
A078374 counts relatively prime strict partitions.
A239261 counts partitions with (sum of odd parts) = (sum of even parts).
-
Table[Length[Select[IntegerPartitions[n], GCD@@Select[#,EvenQ]/2==1&]],{n,0,30}]
A366848
Odd numbers whose odd prime indices are relatively prime.
Original entry on oeis.org
55, 85, 155, 165, 187, 205, 253, 255, 275, 295, 335, 341, 385, 391, 415, 425, 451, 465, 485, 495, 527, 545, 561, 595, 605, 615, 635, 649, 697, 713, 715, 737, 745, 759, 765, 775, 785, 799, 803, 825, 885, 895, 913, 935, 943, 955, 1003, 1005, 1023, 1025, 1045
Offset: 1
The odd prime indices of 345 are {3,9}, which are not relatively prime, so 345 is not in the sequence.
The odd prime indices of 825 are {3,3,5}, which are relatively prime, so 825 is in the sequence
The terms together with their prime indices begin:
55: {3,5}
85: {3,7}
155: {3,11}
165: {2,3,5}
187: {5,7}
205: {3,13}
253: {5,9}
255: {2,3,7}
275: {3,3,5}
295: {3,17}
335: {3,19}
341: {5,11}
385: {3,4,5}
391: {7,9}
415: {3,23}
425: {3,3,7}
451: {5,13}
465: {2,3,11}
485: {3,25}
495: {2,2,3,5}
For halved even instead of odd prime indices we have
A366849.
Cf.
A000720,
A018783,
A055396,
A061395,
A087436,
A325698,
A365067,
A366842,
A366843,
A366844,
A366847.
A366850
Number of integer partitions of n whose odd parts are relatively prime.
Original entry on oeis.org
0, 1, 1, 2, 3, 5, 7, 11, 16, 22, 32, 43, 60, 80, 110, 140, 194, 244, 327, 410, 544, 670, 883, 1081, 1401, 1708, 2195, 2651, 3382, 4069, 5129, 6157, 7708, 9194, 11438, 13599, 16788, 19911, 24432, 28858, 35229, 41507, 50359, 59201, 71489, 83776, 100731, 117784
Offset: 0
The a(1) = 1 through a(8) = 16 partitions:
(1) (11) (21) (31) (41) (51) (61) (53)
(111) (211) (221) (321) (331) (71)
(1111) (311) (411) (421) (431)
(2111) (2211) (511) (521)
(11111) (3111) (2221) (611)
(21111) (3211) (3221)
(111111) (4111) (3311)
(22111) (4211)
(31111) (5111)
(211111) (22211)
(1111111) (32111)
(41111)
(221111)
(311111)
(2111111)
(11111111)
The complement is counted by
A366842.
These partitions have ranks
A366846.
A000740 counts relatively prime compositions.
A078374 counts relatively prime strict partitions.
A113685 counts partitions by sum of odd parts, rank statistic
A366528.
A239261 counts partitions with (sum of odd parts) = (sum of even parts).
-
Table[Length[Select[IntegerPartitions[n],GCD@@Select[#,OddQ]==1&]],{n,0,30}]
A366849
Odd numbers whose halved even prime indices are relatively prime.
Original entry on oeis.org
3, 9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69, 75, 81, 87, 91, 93, 99, 105, 111, 117, 123, 129, 135, 141, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 203, 207, 213, 219, 225, 231, 237, 243, 247, 249, 255, 261, 267, 273, 279, 285, 291, 297, 301, 303, 309
Offset: 1
The even prime indices of 91 are {4,6}, halved {2,3}, which are relatively prime, so 91 is in the sequence.
The prime indices of 665 are {3,4,8}, even {4,8}, halved {2,4}, which are not relatively prime, so 665 is not in the sequence.
The terms together with their prime indices begin:
3: {2}
9: {2,2}
15: {2,3}
21: {2,4}
27: {2,2,2}
33: {2,5}
39: {2,6}
45: {2,2,3}
51: {2,7}
57: {2,8}
63: {2,2,4}
69: {2,9}
75: {2,3,3}
81: {2,2,2,2}
87: {2,10}
91: {4,6}
93: {2,11}
99: {2,2,5}
For odd instead of halved even prime indices we have
A366848.
A366847
Numbers whose halved even prime indices are nonempty and relatively prime.
Original entry on oeis.org
3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 91, 93, 96, 99, 102, 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 147, 150, 153, 156, 159, 162, 165, 168, 171, 174
Offset: 1
The even prime indices of 91 are {4,6}, halved {2,3}, which are relatively prime, so 91 is in the sequence.
The prime indices of 665 are {3,4,8}, even {4,8}, halved {2,4}, which are not relatively prime, so 665 is not in the sequence.
The terms together with their prime indices begin:
3: {2}
6: {1,2}
9: {2,2}
12: {1,1,2}
15: {2,3}
18: {1,2,2}
21: {2,4}
24: {1,1,1,2}
27: {2,2,2}
30: {1,2,3}
33: {2,5}
36: {1,1,2,2}
39: {2,6}
42: {1,2,4}
45: {2,2,3}
48: {1,1,1,1,2}
The partitions with these ranks are counted by
A366845.
Cf.
A000720,
A055396,
A061395,
A066208,
A168532,
A302696,
A302697,
A325698,
A366842,
A366843,
A366844,
A366848.
Showing 1-6 of 6 results.
Comments