login
A039934
Smallest k for which k, 2*k, ..., n*k all contain the digit 3.
9
3, 153, 1153, 1183, 3465, 7673, 7673, 7673, 65913, 65913, 65913, 76923, 232767, 232767, 232767, 232767, 232767, 2307767, 2307767, 2307767, 2307767, 3076923, 6923313, 17078903, 19507893, 56695913, 56695913, 113322666, 113322666
OFFSET
1,1
COMMENTS
a(169) > 7*10^11. - Giovanni Resta, Apr 27 2017
a(169) = a(170) = ... = a(188) = 1538461526061, and a(189) > 2*10^12. - David Radcliffe, Sep 12 2018
LINKS
EXAMPLE
a(2)=153 since 153 and 306 both contain a 3, and 153 is the smallest number for which this is the case.
PROG
(Python)
from itertools import count, islice
def agen(startn=1, startk=1):
n = startn
for k in count(startk):
ki, nn = k, 0
while "3" in str(ki): ki += k; nn += 1
while n < ki//k: yield k; n += 1
print(list(islice(agen(), 22))) # Michael S. Branicky, Jul 31 2022
KEYWORD
base,nonn
EXTENSIONS
More terms from Patrick De Geest, Oct 15 1999
STATUS
approved