A387095 a(1) = 1 for the single prime 3; for n>=2, a(n) is the number of primes between 2^n and 2^(n+1) whose pairs lay symmetrically at each side of the center 3*2^(n-1) of that interval.
1, 2, 2, 4, 4, 6, 8, 22, 26, 42, 92, 128, 218, 416, 750, 1300, 2342, 4136, 7440, 13572, 24820, 45420, 82922, 152964, 282626, 522354, 972388, 1809744, 3379508, 6318652, 11855790, 22277960, 41917480
Offset: 1
Examples
Intervals: Primes Centers Count in A092570: of intervals: a(n): [2,4] 3 3 1 [4,8] 5 7 6 2 [8,16] 11 13 12 2 [16,32] 17 19 29 31 24 4 [32,64] 37 43 53 59 48 4 [64,128] 79 83 89 103 109 113 96 6 [128,256] 151 157 173 191 193 211 227 233 192 8 ... In row 5 for the interval 2^5 = 32 to 2^6 = 64, the prime pair 37 and 59 lay symmetrically to each side of the center of that interval, 3*2^4 = 48 as abs(48-37) = abs(48-59) = 11, and their sum 37 + 59 = 96, which is 3*2^5. So are 43 and 53 in similarly symmetrical positions in that range, with their sum being 96 also.
Programs
-
Mathematica
a[n_] := Module[{c = 0, r = r1 = 3*2^(n-1)}, While[(r1 = NextPrime[r1, -1]) > 2^n, If[PrimeQ[2*r - r1], c += 2]]; c]; a[1] = 1; Array[a, 20] (* Amiram Eldar, Aug 16 2025 *)
Extensions
a(13)-a(33) from Amiram Eldar, Aug 16 2025
Comments