OFFSET
1,2
LINKS
Carole Dubois, Table of n, a(n) for n = 1..5000
EXAMPLE
The sequence starts with 1, 111, 113, 1011, 131, 1101, 133, ... and we see indeed that a(2) = 111 is the smallest available integer showing three digits that divide a(1) = 1; in the same manner we have a(3) = 113 [all three digits divide 111], a(4) = 1011 [the three 1s of 1011 divide 113], a(5) = 131 [all three digits divide 1011], etc.
PROG
(Python)
from itertools import count, islice
def cond(an, k):
return 3 == sum(1 for d in map(int, str(k)) if d and an%d == 0)
def agen(): # generator of terms
an, m, aset = 1, 2, set()
while True:
yield an
aset.add(an)
an = next(k for k in count(m) if k not in aset and cond(an, k))
while m in aset: m += 1
print(list(islice(agen(), 56))) # Michael S. Branicky, May 04 2026
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Jun 06 2019
STATUS
approved
