login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A293983 a(n) = least k > 0 such that prime(k) XOR prime(k+1) XOR ... XOR prime(A293927(n)) = 0 (where XOR denotes the binary XOR operator, and prime(n) = A000040(n)). 2

%I #14 Jul 12 2019 17:07:15

%S 8,19,15,26,33,30,26,38,22,49,47,45,58,63,69,63,65,65,71,69,69,92,92,

%T 88,123,86,123,80,132,140,80,70,153,161,56,155,176,182,145,195,143,

%U 185,133,202,125,123,216,225,235,121,237,246,235,219,227,105,260,254

%N a(n) = least k > 0 such that prime(k) XOR prime(k+1) XOR ... XOR prime(A293927(n)) = 0 (where XOR denotes the binary XOR operator, and prime(n) = A000040(n)).

%C If a(n) = 1, then A126084(A293927(n)) = 0.

%C For any n > 0, A293927(n) - a(n) + 1 >= 4 (we need to XOR at least 4 consecutive prime numbers in order to obtain 0).

%C For any n > 0, if a(n) > 1 then A293927(n) - a(n) + 1 is even (we need to XOR an even number of odd prime numbers in order to obtain 0).

%H Rémy Sigrist, <a href="/A293983/b293983.txt">Table of n, a(n) for n = 1..10000</a>

%o (PARI) prev = vector(1774); s = 0; pi = 0; n = 0; forprime (p=1, 1697, pi++; s = bitxor(s, p); if (s==0 || prev[s], n++; print1 (prev[s]+1 ", "), prev[s] = pi));

%Y Cf. A000040, A126084, A293927.

%K nonn,base

%O 1,1

%A _Rémy Sigrist_, Oct 21 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)