OFFSET
1,1
LINKS
James C. McMahon, Table of n, a(n) for n = 1..10000
Stackexchange, Multiple of n that does not contain the digit 1 in its decimal representation, (2016).
EXAMPLE
a(109) = 3*109 because 1*109 = 109 and 2*109 = 218 contain a 1 but 3*109 = 327 does not.
MAPLE
MATHEMATICA
a[n_]:=Module[{k=1}, While[!ContainsNone[IntegerDigits[k*n], {1}], k++]; k*n]; Array[a, 90] (* James C. McMahon, Sep 14 2025 *)
PROG
(Python)
from itertools import count
def a(n): return next(m for k in count(1) if '1' not in str(m:=n*k))
print([a(n) for n in range(1, 91)]) # Michael S. Branicky, Sep 14 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
R. J. Mathar, Sep 14 2025
STATUS
approved
