OFFSET
0,3
COMMENTS
This sequence is a permutation of the nonnegative integers with inverse A371960.
LINKS
PROG
(PARI) a(n) = { my (b = binary(n)); fromdigits(vector(#b, k, sum(i = 1, ceil(k/2), b[i] * b[k+1-i])) % 2, 2); }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 14 2024
STATUS
approved