OFFSET
0,11
COMMENTS
Well-defined for n < 1023456789 (i.e. until all ten digits appear in n).
a(n) = n iff n = (10^k-1)/9 for some k<10.
EXAMPLE
73307 is order-isomorphic to 32213, so a(73307) = 32213.
a(n) = 1 for n <= 9; a(10)=21, a(11)=11, a(12)=...=a(19)=12, a(20)=21, ...
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Mar 02 2013
STATUS
approved