OFFSET
1,2
COMMENTS
A={a(n)} is self-similar in the sense that the subsequence remaining after deleting the first occurrence of each integer is identical to the original sequence A (Kimberling's "upper-trimming" operation).
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..59049
EXAMPLE
a(33)=19 since 33 = 1020(base 3) -> 0201(base 3) = 19.
MATHEMATICA
Table[ FromDigits[ RotateLeft[ IntegerDigits[n, 3]], 3], {n, 1, 76}] (* Zerinvary Lajos, Mar 25 2007 *)
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
John W. Layman and Anthony C. Hill (hilla(AT)hotmail.com)
STATUS
approved