OFFSET
1,2
COMMENTS
LINKS
PROG
(PARI)
A006068(n)= { my(s=1, ns); while(1, ns = n >> s; if(0==ns, break()); n = bitxor(n, ns); s <<= 1; ); return (n); } \\ Essentially Joerg Arndt's Jul 19 2012 code.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Dec 25 2017
STATUS
approved