A372688
Number of integer partitions y of n whose rank Sum_i 2^(y_i-1) is prime.
Original entry on oeis.org
0, 0, 2, 2, 1, 3, 3, 6, 3, 6, 9, 20, 13, 22, 22, 45, 47, 70, 75, 100, 107, 132, 157, 202, 229, 302, 396, 495, 536, 699, 820, 962, 1193, 1507, 1699, 2064, 2455, 2945, 3408, 4026, 4691, 5749, 6670, 7614, 9127, 10930, 12329, 14370, 16955, 19961, 22950, 26574, 30941
Offset: 0
The partition (3,2,1) has rank 2^(3-1) + 2^(2-1) + 2^(1-1) = 7, which is prime, so (3,2,1) is counted under a(6).
The a(2) = 2 through a(10) = 9 partitions:
(2) (21) (31) (221) (51) (421) (431) (441) (91)
(11) (111) (2111) (321) (2221) (521) (3321) (631)
(11111) (3111) (4111) (5111) (4221) (721)
(22111) (33111) (3331)
(211111) (42111) (7111)
(1111111) (411111) (32221)
(322111)
(3211111)
(31111111)
For all positive integers (not just prime) we get
A000041.
These partitions have Heinz numbers
A277319.
A014499 lists binary indices of prime numbers.
A372885 lists primes whose binary indices sum to a prime, indices
A372886.
Cf.
A000040,
A005940,
A023506,
A029837,
A035100,
A038499,
A096111,
A372429,
A372441,
A372471,
A372689.
-
Table[Length[Select[IntegerPartitions[n], PrimeQ[Total[2^#]/2]&]],{n,0,30}]
A372689
Positive integers whose binary indices (positions of ones in reversed binary expansion) sum to a prime number.
Original entry on oeis.org
2, 3, 4, 6, 9, 11, 12, 16, 18, 23, 26, 29, 33, 38, 41, 43, 44, 48, 50, 55, 58, 61, 64, 69, 71, 72, 74, 79, 81, 86, 89, 91, 92, 96, 101, 103, 104, 106, 111, 113, 118, 121, 131, 132, 134, 137, 142, 144, 149, 151, 152, 154, 159, 163, 164, 166, 169, 174, 176, 181
Offset: 1
The terms together with their binary expansions and binary indices begin:
2: 10 ~ {2}
3: 11 ~ {1,2}
4: 100 ~ {3}
6: 110 ~ {2,3}
9: 1001 ~ {1,4}
11: 1011 ~ {1,2,4}
12: 1100 ~ {3,4}
16: 10000 ~ {5}
18: 10010 ~ {2,5}
23: 10111 ~ {1,2,3,5}
26: 11010 ~ {2,4,5}
29: 11101 ~ {1,3,4,5}
33: 100001 ~ {1,6}
38: 100110 ~ {2,3,6}
41: 101001 ~ {1,4,6}
43: 101011 ~ {1,2,4,6}
44: 101100 ~ {3,4,6}
48: 110000 ~ {5,6}
50: 110010 ~ {2,5,6}
55: 110111 ~ {1,2,3,5,6}
58: 111010 ~ {2,4,5,6}
61: 111101 ~ {1,3,4,5,6}
Numbers k such that
A029931(k) is prime.
Union of prime-indexed rows of
A118462.
For prime indices instead of binary indices we have
A316091.
A372687 counts strict partitions of prime binary rank, counted by
A372851.
A372689 lists numbers whose binary indices sum to a prime.
A372885 lists primes whose binary indices sum to a prime, indices
A372886.
Binary indices:
A372885
Prime numbers whose binary indices (positions of ones in reversed binary expansion) sum to another prime number.
Original entry on oeis.org
2, 3, 11, 23, 29, 41, 43, 61, 71, 79, 89, 101, 103, 113, 131, 137, 149, 151, 163, 181, 191, 197, 211, 239, 269, 271, 281, 293, 307, 331, 349, 353, 373, 383, 401, 433, 457, 491, 503, 509, 523, 541, 547, 593, 641, 683, 701, 709, 743, 751, 761, 773, 827, 863, 887
Offset: 1
The binary indices of 89 are {1,4,5,7}, with sum 17, which is prime, so 89 is in the sequence.
The terms together with their binary expansions and binary indices begin:
2: 10 ~ {2}
3: 11 ~ {1,2}
11: 1011 ~ {1,2,4}
23: 10111 ~ {1,2,3,5}
29: 11101 ~ {1,3,4,5}
41: 101001 ~ {1,4,6}
43: 101011 ~ {1,2,4,6}
61: 111101 ~ {1,3,4,5,6}
71: 1000111 ~ {1,2,3,7}
79: 1001111 ~ {1,2,3,4,7}
89: 1011001 ~ {1,4,5,7}
101: 1100101 ~ {1,3,6,7}
103: 1100111 ~ {1,2,3,6,7}
113: 1110001 ~ {1,5,6,7}
131: 10000011 ~ {1,2,8}
137: 10001001 ~ {1,4,8}
149: 10010101 ~ {1,3,5,8}
151: 10010111 ~ {1,2,3,5,8}
163: 10100011 ~ {1,2,6,8}
181: 10110101 ~ {1,3,5,6,8}
191: 10111111 ~ {1,2,3,4,5,6,8}
197: 11000101 ~ {1,3,7,8}
For prime instead of binary indices we have
A006450, prime case of
A316091.
Prime numbers p such that
A029931(p) is also prime.
The indices of these primes are
A372886.
A372687 counts strict partitions of prime binary rank, counted by
A372851.
A372688 counts partitions of prime binary rank, with Heinz numbers
A277319.
Binary indices:
-
filter:= proc(p)
local L,i,t;
L:= convert(p,base,2);
isprime(add(i*L[i],i=1..nops(L)))
end proc:
select(filter, [seq(ithprime(i),i=1..200)]); # Robert Israel, Jun 19 2025
-
Select[Range[100],PrimeQ[#] && PrimeQ[Total[First/@Position[Reverse[IntegerDigits[#,2]],1]]]&]
A372886
Indices of prime numbers whose binary indices (positions of ones in reversed binary expansion) sum to another prime number.
Original entry on oeis.org
1, 2, 5, 9, 10, 13, 14, 18, 20, 22, 24, 26, 27, 30, 32, 33, 35, 36, 38, 42, 43, 45, 47, 52, 57, 58, 60, 62, 63, 67, 70, 71, 74, 76, 79, 84, 88, 94, 96, 97, 99, 100, 101, 108, 116, 124, 126, 127, 132, 133, 135, 137, 144, 150, 154, 156, 160, 161, 162, 164, 172
Offset: 1
The binary indices of 89 = prime(24) are {1,4,5,7}, with sum 17, which is prime, so 24 is in the sequence.
Numbers k such that
A029931(prime(k)) is prime.
Indices of primes that belong to
A372689.
The indexed prime numbers themselves are
A372885.
Binary indices:
A372687 counts strict partitions of prime binary rank, counted by
A372851.
A372688 counts partitions of prime binary rank, with Heinz numbers
A277319.
-
filter:= proc(p)
local L,i,t;
L:= convert(p,base,2);
isprime(add(i*L[i],i=1..nops(L)))
end proc:
select(t -> filter(ithprime(t)), [$1..1000]); # Robert Israel, Jun 19 2025
-
Select[Range[100],PrimeQ[Total[First /@ Position[Reverse[IntegerDigits[Prime[#],2]],1]]]&]
A372687
Number of prime numbers whose binary indices sum to n. Number of strict integer partitions y of n such that Sum_i 2^(y_i-1) is prime.
Original entry on oeis.org
0, 0, 1, 1, 1, 0, 2, 1, 2, 0, 3, 3, 1, 4, 1, 6, 5, 8, 4, 12, 8, 12, 7, 20, 8, 16, 17, 27, 19, 38, 19, 46, 33, 38, 49, 65, 47, 67, 83, 92, 94, 113, 103, 130, 146, 127, 215, 224, 176, 234, 306, 270, 357, 383, 339, 393, 537, 540, 597, 683, 576, 798, 1026, 830, 1157
Offset: 0
The a(2) = 1 through a(17) = 8 prime numbers:
2 3 5 . 17 11 19 . 257 131 73 137 97 521 4099 1031
7 13 67 41 71 263 2053 523
37 23 43 139 1033 269
29 83 193 163
53 47 149
31 101
89
79
The a(2) = 1 through a(11) = 3 strict partitions:
(2) (2,1) (3,1) . (5,1) (4,2,1) (4,3,1) . (9,1) (6,4,1)
(3,2,1) (5,2,1) (6,3,1) (8,2,1)
(7,2,1) (5,3,2,1)
For all positive integers (not just prime) we get
A000009.
Number of prime numbers p with
A029931(p) = n.
Number of times n appears in
A372429.
Number of rows of
A372471 with sum n.
These (strict) partitions have Heinz numbers
A372851.
A014499 lists binary indices of prime numbers.
A096111 gives product of binary indices.
A372689 lists numbers whose binary indices sum to a prime.
A372885 lists primes whose binary indices sum to a prime, indices
A372886.
Cf.
A000040,
A005940,
A023506,
A029837,
A035100,
A071814,
A230877,
A231204,
A359359,
A372436,
A372441.
-
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&PrimeQ[Total[2^#]/2]&]],{n,0,30}]
A372851
Squarefree numbers whose prime indices are the binary indices of some prime number.
Original entry on oeis.org
3, 6, 10, 22, 30, 42, 46, 66, 70, 102, 114, 118, 130, 182, 238, 246, 266, 318, 330, 354, 370, 402, 406, 434, 442, 510, 546, 646, 654, 690, 762, 770, 798, 930, 938, 946, 962, 986, 1066, 1102, 1122, 1178, 1218, 1222, 1246, 1258, 1334, 1378, 1430, 1482, 1578
Offset: 1
The prime indices of 70 are {1,3,4}, which are the binary indices of 13, which is prime, so 70 is in the sequence.
The prime indices of 15 are {2,3}, which are the binary indices of 6, which is not prime, so 15 is not in the sequence.
The terms together with their prime indices begin:
3: {2}
6: {1,2}
10: {1,3}
22: {1,5}
30: {1,2,3}
42: {1,2,4}
46: {1,9}
66: {1,2,5}
70: {1,3,4}
102: {1,2,7}
114: {1,2,8}
118: {1,17}
130: {1,3,6}
182: {1,4,6}
238: {1,4,7}
246: {1,2,13}
266: {1,4,8}
318: {1,2,16}
330: {1,2,3,5}
354: {1,2,17}
370: {1,3,12}
402: {1,2,19}
For odd instead of prime we have
A039956.
For even instead of prime we have
A056911.
Strict partitions of this type are counted by
A372687.
Non-strict partitions of this type are counted by
A372688, ranks
A277319.
A014499 lists binary indices of prime numbers.
A372885 lists primes whose binary indices sum to a prime, indices
A372886.
Cf.
A000040,
A005940,
A025147,
A035100,
A071814,
A096111,
A096765,
A231204,
A372429,
A372471,
A372689.
A372887
Number of integer partitions of n whose distinct parts are the binary indices of some prime number.
Original entry on oeis.org
0, 0, 1, 1, 3, 3, 6, 8, 12, 14, 21, 29, 36, 48, 56, 74, 94, 123, 144, 195, 235, 301, 356, 456, 538, 679, 803, 997, 1189, 1467, 1716, 2103, 2488, 2968, 3517, 4185, 4907, 5834, 6850, 8032, 9459, 11073, 12933, 15130, 17652, 20480, 24011, 27851, 32344, 37520
Offset: 0
The partition y = (4,3,1,1) has distinct parts {1,3,4}, which are the binary indices of 13, which is prime, so y is counted under a(9).
The a(2) = 1 through a(9) = 14 partitions:
(2) (21) (22) (221) (51) (331) (431) (3321)
(31) (311) (222) (421) (521) (4221)
(211) (2111) (321) (511) (2222) (4311)
(2211) (2221) (3221) (5211)
(3111) (3211) (3311) (22221)
(21111) (22111) (4211) (32211)
(31111) (5111) (33111)
(211111) (22211) (42111)
(32111) (51111)
(221111) (222111)
(311111) (321111)
(2111111) (2211111)
(3111111)
(21111111)
These partitions have Heinz numbers
A372850.
A014499 lists binary indices of prime numbers.
A372689 lists numbers whose binary indices sum to a prime.
A372885 lists primes whose binary indices sum to a prime, indices
A372886.
Binary indices:
-
Table[Length[Select[IntegerPartitions[n], PrimeQ[Total[2^(Union[#]-1)]]&]],{n,0,30}]
Showing 1-7 of 7 results.
Comments