OFFSET
0,2
COMMENTS
This sequence has connections with A003188; their scatterplots are alike.
This sequence appears to be a permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, Scatterplot of the first 2^16 terms
EXAMPLE
The first terms, alongside a(n) XOR a(n+1), are:
n a(n) a(n) XOR a(n+1)
-- ---- ---------------
0 0 2
1 2 3
2 1 2
3 3 5
4 6 2
5 4 3
6 7 2
7 5 11
8 14 2
9 12 3
10 15 2
11 13 5
12 8 2
PROG
(PARI) s=0; v=0; for (n=0, 66, print1 (v", "); s+=2^v; forprime (p=2, oo, if (!bittest(s, w=bitxor(v, p)), v=w; break)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 06 2021
STATUS
approved