A039934 Smallest k for which k, 2*k, ..., n*k all contain the digit 3.
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
Examples
a(2)=153 since 153 and 306 both contain a 3, and 153 is the smallest number for which this is the case.
Links
- Giovanni Resta, Table of n, a(n) for n = 1..168
Programs
-
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
Extensions
More terms from Patrick De Geest, Oct 15 1999
Comments