The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A366062 Lexicographically earliest infinite sequence of distinct nonnegative integers such that for any k > 0, the k-th binary digit in the even bisection is different from the k-th binary digit in the odd bisection. 1
0, 2, 4, 1, 3, 8, 5, 9, 16, 14, 10, 20, 6, 11, 17, 18, 21, 19, 32, 28, 12, 13, 33, 56, 24, 29, 34, 26, 22, 36, 25, 48, 57, 49, 50, 40, 58, 41, 51, 35, 64, 7, 15, 65, 37, 80, 59, 66, 52, 27, 67, 96, 112, 30, 23, 128, 60, 53, 81, 97, 113, 98, 104, 114, 105, 99 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Leading zeros in binary expansions of positive values are ignored.
Is this sequence a permutation of the nonnegative integers?
LINKS
Rémy Sigrist, PARI program
EXAMPLE
The even and odd bisections, in decimal and in binary, begin as follows:
a(2n) |0| 4 | 3 | 5 | 16 | 10 | 6 | 17 | 21 |...
bin(a(2n)) |0|1 0 0|1 1|1 0 1|1 0 0 0 0|1 0 1 0|1 1 0|1 0 0 0 1|1 0 1 0 1|...
bin(a(2n+1)) |1 0|1|1 0 0 0|1 0 0 1|1 1 1 0|1 0 1 0 0|1 0 1 1|1 0 0 1 0|...
a(2n+1) | 2 |1| 8 | 9 | 14 | 20 | 11 | 18 |...
PROG
(PARI) See Links section.
CROSSREFS
Cf. A333010.
Sequence in context: A290824 A272977 A230505 * A208526 A275895 A369292
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 27 2023
STATUS
approved

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 May 15 02:15 EDT 2024. Contains 372536 sequences. (Running on oeis4.)