|
|
A057169
|
|
Least integer with the same nonzero decimal digits as n and one more 0 digit.
|
|
2
|
|
|
10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 200, 102, 202, 203, 204, 205, 206, 207, 208, 209, 300, 103, 203, 303, 304, 305, 306, 307, 308, 309, 400, 104, 204, 304, 404, 405, 406, 407, 408, 409, 500, 105
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MAPLE
|
f:= proc(n) local L, m, p;
L:= convert(n, base, 10);
m:= nops(L);
L:= sort(subs(0=NULL, L));
p:= nops(L);
10^m*L[1]+add(L[j]*10^(p-j), j=2..p)
end proc:
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|