OFFSET
1,2
MAPLE
V:= Vector(10^5):
V[1]:= 1: m:= 2:
count:= 1: A[1]:= 1:
L:= [1]:
for n from 2 to 12000 do
for i from m to 10^5 do
if V[i] = 0 then
LL:= convert(i, base, 10);
k:= min(nops(L), nops(LL));
if not has(LL[1..k] - L[1..k], 0) then
V[i]:= n;
if i = m then
for m from m+1 while V[m] <> 0 do od:
fi;
if i = n then
count:= count+1;
A[count]:= n;
fi;
L:= LL;
break
fi
fi
od;
if i = 10^5 + 1 then break fi
od:
seq(A[i], i=1..count); # Robert Israel, Mar 03 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 13 2002
EXTENSIONS
a(19)-a(30) from Robert Israel, Mar 03 2016
STATUS
approved