OFFSET
0,3
COMMENTS
LINKS
FORMULA
PROG
(PARI)
A064706(n) = bitxor(n, n>>2);
A057300(n) = { my(t=1, s=0); while(n>0, if(1==(n%4), n++, if(2==(n%4), n--)); s += (n%4)*t; n >>= 2; t <<= 2); (s); };
CROSSREFS
Cf. A302845 (inverse permutation).
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 14 2018
STATUS
approved