OFFSET
1,3
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
A[1]:= 0: Used[0]:= true:
for n from 2 to 100 do
S:= convert(convert(n, base, 10), set);
k:= 1:
do
while Used[k] = true do k:= k+1 od:
L:= convert(k, base, 10);
v:= select(t -> member(L[t], S), [$1..nops(L)]);
if v = [] then A[n]:= k; Used[k]:= true; break fi;
k:= k + 10^(v[-1]-1) - (k mod 10^(v[-1]-1));
od;
od:
seq(A[n], n=1..100); # Robert Israel, Nov 28 2016
CROSSREFS
KEYWORD
AUTHOR
Eric Angelini, Oct 04 2004
EXTENSIONS
Keyword fini added and offset corrected by Rick L. Shepherd, Nov 28 2016
STATUS
approved