login
A107411
Each digit of a(n) appears in a(n+1) and a(n+1) > a(n) is minimal.
2
0, 10, 100, 101, 102, 120, 201, 210, 1002, 1012, 1020, 1021, 1022, 1023, 1032, 1203, 1230, 1302, 1320, 2013, 2031, 2103, 2130, 2301, 2310, 3012, 3021, 3102, 3120, 3201, 3210, 10023, 10032, 10123, 10132, 10203, 10213, 10223, 10230, 10231, 10232, 10233, 10234, 10243
OFFSET
0,2
COMMENTS
Starting with another integer as 0 (the "seed") would lead to another sequence.
LINKS
EXAMPLE
After 100 we get 101 (and not 1000) because the lone 0 in "101" is considered as the copy of both zeros of "100".
MAPLE
R:= 0: S:= {0}: count:= 1;
for k from 1 while count < 100 do
Sk:= convert(convert(k, base, 10), set);
if S subset Sk then
R:= R, k;
count:= count+1;
S:= Sk;
fi
od:
R; # Robert Israel, Nov 21 2022
PROG
(Python)
from itertools import islice
def agen(an=0):
while True:
yield an
target, k = set(str(an)), an + 1
while not (target <= set(str(k))): k += 1
an = k
print(list(islice(agen(), 41))) # Michael S. Branicky, Nov 21 2022
CROSSREFS
Cf. A297065.
Sequence in context: A323708 A293870 A305701 * A297065 A376454 A019513
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 09 2005
EXTENSIONS
Missing terms a(35)-a(37) inserted by Michael S. Branicky, Nov 21 2022
STATUS
approved