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!)
A335401 a(n) is the smallest positive number such that the decimal digits of n*a(n) are all 0, 1, 2 or 3. 0
1, 1, 1, 3, 2, 2, 3, 4, 37, 1, 1, 1, 1, 8, 2, 2, 6, 74, 7, 1, 1, 1, 1, 5, 4, 5, 49, 4, 7, 1, 1, 1, 1, 3, 6, 37, 3, 29, 8, 3, 3, 5, 7, 3, 74, 5, 26, 25, 27, 2, 2, 6, 4, 43, 2, 2, 23, 4, 17, 2, 2, 5, 21, 5, 2, 2, 3, 15, 19, 3, 3, 31, 14, 3, 4, 132, 3, 4, 27, 4, 41 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
If a(n) = k, then a(10n) = k.
a(n) = 1 iff n is in A007090; hence, except for a(1) = a(2) = a(3) = 1, the terms 1 always appear in strings of 4 consecutive 1's.
Records occur for n: 1, 4, 8, 9, 18, 76, ...
LINKS
FORMULA
a(n) = A334914(n)/n.
EXAMPLE
a(9)= 37 because 9*37=333 is the smallest multiple of 9 whose decimal digits are all 0, 1, 2 or 3.
MATHEMATICA
a[n_] := Block[{k = 1}, While[Max@ IntegerDigits[k n] > 3, k++]; k]; Array[a, 81] (* Giovanni Resta, Jun 06 2020 *)
PROG
(PARI) a(n) = my(k=1); while(vecmax(digits(k*n))>3, k++); k; \\ Michel Marcus, Jun 08 2020
CROSSREFS
Cf. A079339 (similar, with digits 0 and 1), A181061 (similar, with digits 0, 1 and 2).
Sequence in context: A222456 A222673 A222666 * A324465 A361565 A334592
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Jun 06 2020
EXTENSIONS
More terms from Giovanni Resta, Jun 06 2020
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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)