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^3
1 1 2^3
2 9 1^3
3 8 3^3
4 19 1^3
5 18 2^3
6 26 1^3
7 27 4^3
8 91 1^3
9 90 2^3
10 82 1^3
11 83 3^3
12 72 1^3
13 73 2^3
14 65 1^3
15 64 5^3
PROG
(PARI) s=0; v=0; for (n=0, 57, print1 (v", "); s+=2^v; for (k=1, oo, if (!bittest(s, w=bitxor(v, k^3)), v=w; break)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 07 2021
STATUS
approved