OFFSET
0,3
COMMENTS
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 1
1 1 2
2 3 1
3 2 5
4 7 1
5 6 2
6 4 1
7 5 8
8 13 1
9 12 2
10 14 1
11 15 5
12 10 1
13 11 2
14 9 1
15 8 21
PROG
(PARI) s=0; v=0; for (n=0, 66, print1 (v", "); s+=2^v; for (k=1, oo, if (!bittest(s, w=bitxor(v, fibonacci(k))), v=w; break)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 07 2021
STATUS
approved