OFFSET
0,4
COMMENTS
This sequence is a permutation from the nonnegative integers onto the integers (Z).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..6560
FORMULA
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) - b2t(t2)", "); if (n++==61, break (2))))) }
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, May 02 2022
STATUS
approved