OFFSET
1,2
COMMENTS
The first term that does not show any digit 1 is a(20) = 33.
LINKS
Carole Dubois, Table of n, a(n) for n = 1..5000
EXAMPLE
The sequence starts with 1, 11, 101, 110, 12, 13, 112, 14,... and we see indeed that a(2) = 11 is the smallest available integer showing two digits that divide a(1) = 1; in the same manner we have a(3) = 101 and a(4) = 110; a(5) = 12 because 12 is the smallest available integer that has two digits dividing a(4); etc.
PROG
(PARI) s=0; v=1; for (n=1, 68, print1 (v", "); s+=2^v; for (w=1, oo, if (!bittest(s, w) && #select(d -> d && v%d==0, digits(w))==2, v=w; break))) \\ Rémy Sigrist, Jul 11 2019
(Python)
from itertools import count, islice
def cond(an, k):
return 2 == 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(), 68))) # Michael S. Branicky, May 04 2026
CROSSREFS
KEYWORD
AUTHOR
Eric Angelini and Carole Dubois, Jun 06 2019
STATUS
approved
