OFFSET
0,6
COMMENTS
XOR denotes the bitwise XOR operator.
This sequence is unbounded, and contains infinitely many 0's.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8192
Rémy Sigrist, Scatterplot of the first 2^20 terms
EXAMPLE
The first terms, alongside the corresponding k's, are:
n a(n) k's
-- ---- --------------------
0 0 None
1 0 0
2 0 0, 1
3 1 None
4 0 0, 1, 2
5 3 None
6 0 0, 1, 2, 4
7 7 None
8 0 0, 1, 2, 4, 6
9 1 3
10 3 5
11 5 None
12 0 0, 1, 2, 4, 6, 8
13 9 None
14 0 0, 1, 2, 4, 6, 8, 12
15 5 11
PROG
(PARI) { p=vector(123); v=0; for (n=0, 76, print1(v", "); w=p[1+v]; p[1+v]=bitxor(p[1+v], n); v=w) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 27 2021
STATUS
approved