0,3

Table of n, a(n) for n=0..80.

Michael Gilleland, Some Self-Similar Integer Sequences

Robert Walker, Self Similar Sloth Canon Number Sequences

15 = 120 -> 012 = 5, so a(15)=5.

Table[FromDigits[Sort[IntegerDigits[n, 3]], 3], {n, 0, 90}] (* Harvey P. Dale, Dec 08 2015 *)

Sequence in context: A053985 A091564 A191379 * A212713 A072014 A213526

Adjacent sequences: A038571 A038572 A038573 * A038575 A038576 A038577

nonn,base,easy

N. J. A. Sloane.

More terms from Erich Friedman.

approved