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!)
A129543 Gray code ordering of the prime numbers. 1

%I #9 Oct 12 2013 15:17:07

%S 2,3,7,5,17,19,13,11,41,43,53,47,31,37,29,23,97,101,107,103,127,131,

%T 113,109,73,79,89,83,67,71,61,59,227,229,239,233,257,263,251,241,283,

%U 293,311,307,277,281,271,269,179,181,193,191,211,223,199,197,157,163,173

%N Gray code ordering of the prime numbers.

%C This sequence is obtained by permuting the indices of the prime numbers by the Gray code ordering of the integers.

%H MathWorld, <a href="http://mathworld.wolfram.com/GrayCode.html">Gray Code</a>

%F a(n) = A000040(1+A003188(n)).

%o (PARI) a(n) = prime(1 + bitxor(n, n>>1)); \\ _Michel Marcus_, Apr 23 2013

%Y Cf. A000040, A003188.

%K nonn

%O 0,1

%A _Stephen Crowley_, May 30 2007

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 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)