login
A213217
Earliest string in {1,2,...9}* that is order-isomorphic to string formed by digits of n.
0
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 11, 12, 12, 12, 12, 12, 12, 12, 12, 21, 21, 11, 12, 12, 12, 12, 12, 12, 12, 21, 21, 21, 11, 12, 12, 12, 12, 12, 12, 21, 21, 21, 21, 11, 12, 12, 12, 12, 12, 21, 21, 21, 21, 21, 11, 12, 12, 12, 12, 21, 21, 21, 21, 21, 21, 11, 12, 12, 12, 21, 21, 21, 21, 21, 21, 21, 11, 12, 12, 21, 21, 21, 21, 21, 21, 21, 21, 11, 12, 21, 21, 21, 21, 21, 21, 21, 21, 21, 11, 211, 212, 213, 213, 213, 213, 213, 213, 213, 213, 221, 111, 112, 112, 112, 112, 112, 112, 112, 112
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
Sequence in context: A318648 A033341 A252629 * A300505 A086981 A114011
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Mar 02 2013
STATUS
approved