OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(14) = 18 and its least digit is 1. The least multiple of 1 that has not appeared in the sequence yet is 11, so a(15) = 11.
MATHEMATICA
s={1}; Do[i=1; d=Union[IntegerDigits[s[[-1]]]]; m=If[d[[1]]>0, d[[1]], d[[2]]]; Until[!MemberQ[s, i]&&Mod[i, m]==0, i++]; AppendTo[s, i], {k, 73}]; s (* James C. McMahon, Nov 03 2025 *)
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
an, aset, m = 1, {1}, {i:i for i in range(1, 10)}
while True:
yield an
small = int(min(d for d in str(an) if d > '0'))
an = next(k for k in count(m[small], small) if k not in aset)
m[small] = an
aset.add(an)
print(list(islice(agen(), 74)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michael S. Branicky and Ali Sada, Oct 28 2025
STATUS
approved
