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!)
A269868 Lexicographically earliest sequence of distinct positive integers such that all values of (a(n) XOR n) are distinct. 2

%I #9 Mar 07 2016 07:40:54

%S 1,3,4,2,6,8,5,7,12,14,16,17,18,20,19,9,15,10,24,25,28,26,29,11,13,32,

%T 34,33,21,37,35,22,30,23,27,49,50,48,53,31,56,58,64,65,66,68,67,69,70,

%U 72,71,73,74,77,75,78,80,82,85,76,79,88,90,36,38,51,59,39,54,63,57,40

%N Lexicographically earliest sequence of distinct positive integers such that all values of (a(n) XOR n) are distinct.

%H Ivan Neretin, <a href="/A269868/b269868.txt">Table of n, a(n) for n = 1..10000</a>

%t a = used = {}; Do[k = 1; While[MemberQ[a, k] || MemberQ[used, x = BitXor[k, n]], k++]; AppendTo[a, k]; AppendTo[used, x], {n, 72}]; a

%Y Cf. A235262

%K nonn

%O 1,2

%A _Ivan Neretin_, Mar 06 2016

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 September 16 14:46 EDT 2024. Contains 375976 sequences. (Running on oeis4.)