OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The first terms, alongside a(n) XOR (2*a(n+1)), are:
n a(n) a(n) XOR (2*a(n+1))
-- ---- -------------------
1 1 3
2 1 5
3 2 0
4 1 7
5 3 1
6 1 9
7 4 6
8 1 11
9 5 13
10 4 2
PROG
(PARI) s=0; v=1; for(n=1, 72, print1(v", "); for (w=1, oo, if (!bittest(s, x=bitxor(v, 2*w)), s+=2^x; v=w; break)))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, May 10 2019
STATUS
approved