OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
Michael Gilleland, Some Self-Similar Integer Sequences
Robert Walker, Self Similar Sloth Canon Number Sequences
EXAMPLE
15 = 120 -> 012 = 5, so a(15)=5.
MATHEMATICA
Table[FromDigits[Sort[IntegerDigits[n, 3]], 3], {n, 0, 90}] (* Harvey P. Dale, Dec 08 2015 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved