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
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 27 2023
STATUS
approved