login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A317180 a(n) is the least positive multiple of n that contains at least one digit 1 in its decimal representation. 2
1, 10, 12, 12, 10, 12, 14, 16, 18, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 100, 21, 110, 115, 120, 100, 104, 81, 112, 116, 120, 31, 128, 132, 102, 105, 108, 111, 114, 117, 120, 41, 126, 129, 132, 135, 138, 141, 144, 147, 100, 51, 104, 106, 108, 110, 112, 114 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = n * A317173(n).
a(n) <= A187285(n).
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
Sequence in context: A303151 A103618 A308781 * A187285 A098732 A301860
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 23 2018
EXTENSIONS
Definition clarified by Harvey P. Dale, Apr 09 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 08:48 EDT 2024. Contains 371930 sequences. (Running on oeis4.)