OFFSET
1,2
COMMENTS
Self-inverse permutation of the natural numbers.
If n is written in base-4 representation, then a(n) is the value after replacing all digits d (except for the leading one) by 3-d.
LINKS
FORMULA
a(n) = A115310(n+2,3).
MATHEMATICA
A115304[n_] := FromDigits[MapAt[3 - # &, IntegerDigits[n, 4], 2;; ], 4];
Array[A115304, 100] (* Paolo Xausa, May 20 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 20 2006
STATUS
approved