OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The multiples of 3 are: 3, 6, 9, 12, 15, etc.; 12 is the first one containing the digit 1, hence a(3) = 12.
MATHEMATICA
on1[n_]:=Module[{k=1}, While[DigitCount[k*n, 10, 1]<1, k++]; k*n]; Array[on1, 60] (* Harvey P. Dale, Apr 09 2022 *)
PROG
(PARI) a(n) = forstep (m=n, oo, n, if (setsearch(Set(digits(m)), 1), return (m)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 23 2018
EXTENSIONS
Definition clarified by Harvey P. Dale, Apr 09 2022
STATUS
approved