login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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