OFFSET
0,2
COMMENTS
This sequence is a permutation of the nonnegative integers with inverse A353661.
LINKS
EXAMPLE
PROG
(PARI) b2t(n) = fromdigits(binary(n), 3)
{ n=-1; for (d=0, 2^8-1, for (k=0, d, if (bitand(t1=k, t2=d-k)==0, print1 (b2t(t1) + 2*b2t(t2)", "); if (n++==67, break (2))))) }
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, May 02 2022
STATUS
approved