OFFSET
1,3
COMMENTS
a(11)=23 since a(10)=10 and any number from 11 to 21 would share a digit between the two terms while 22 has a repeated digit
PROG
(Python)
def ok(s, t): return len(set(t)) == len(t) and len(set(s+t)) == len(s+t)
def agen(): # generator of complete sequence of terms
an, MAX = 0, 987654321
while True:
if an < MAX: yield an
else: return
an, s = an+1, str(an)
MAX = 10**(10-len(s))
while an < MAX and not ok(s, str(an)): an += 1
print(list(agen())) # Michael S. Branicky, Jun 30 2022
CROSSREFS
KEYWORD
nonn,base,easy,fini,full
AUTHOR
Henry Bottomley, Apr 18 2000
STATUS
approved