OFFSET
0,2
EXAMPLE
Consider n=1103, digits '9' through '4' do not occur, digit '3' at 1st position (looking from the right), digit '2' does not occur, digit '1' in 3rd and 4th place, and digit '0' is at 2nd position. Thus a(1103) = 00000010342 = 10342.
PROG
(PARI) A260521=a(n)={my(p=vector(10)); for(i=1, #n=if(n, Vecrev(digits(n)), [0]), p[n[i]+1]=if(p[n[i]+1], concat(p[n[i]+1], i), i)); p=concat(Vecrev(p)); p[1]=Str(p[1]); eval(concat(p))}
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Jul 28 2015
STATUS
approved