login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes whose number of symmetric connections to other primes within the same power of two interval exceeds the number of symmetric connections to composites.
0

%I #26 Sep 08 2022 08:46:09

%S 5,7,17,19,29,31,43,59,103,281,457,461,463,499,607,1409,1451,2143,

%T 2657,4229,16063,19583,19699,62143,65537,70919,107347,113159,124783,

%U 124981,600703,3103423,18936719

%N Primes whose number of symmetric connections to other primes within the same power of two interval exceeds the number of symmetric connections to composites.

%C While there may be some additional terms, it is thought to be a finite sequence. An exhaustive search was conducted up to 2^29.

%C Members larger than 2^8 will also be in A200321.

%e In the interval (2^4,2^5) [17,19,21,23,25,27,29,31], the prime 17 symmetrically couples with 31 around the midpoint of the interval, 23 around the midpoint of the halved interval, and 19 in the quartered interval. There is no composite couple. It has 3 prime and 0 composite symmetric connections. The same process for 19 produces 2 prime and 1 composite connection. Therefore 17 and 19 are members. 23 couples with 25, 17 and 22. It has 1 prime and 2 composite connections so it is not a member.

%o (Magma)

%o XOR := func<a, b | Seqint([ (adigs[i] + bdigs[i]) mod 2 : i in [1..n]], 2)

%o where adigs := Intseq(a, 2, n)

%o where bdigs := Intseq(b, 2, n)

%o where n := 1 + Ilog2(Max([a, b, 1]))>;

%o function PCcoord(X,i,P,C)

%o if (i eq 1) then

%o if (P gt C) then return true;

%o else

%o return false,P,C;

%o end if;

%o else

%o xornum:=2^i - 2;

%o xorcouple:=XOR(X, xornum);

%o if (IsPrime(xorcouple)) then

%o return PCcoord(X, i-1,P+1,C);

%o else

%o return PCcoord(X, i-1,P,C+1);

%o end if;

%o end if;

%o end function;

%o for k:= 1 to 2^10 + 1 by 2 do

%o if IsPrime(k) then

%o if PCcoord(k,Ilog2(k),0,0) then k;

%o end if;

%o end if;

%o end for;

%Y Cf. A200231.

%K nonn

%O 1,1

%A _Brad Clardy_, Sep 22 2014