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, ...
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
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Jun 06 2020
EXTENSIONS
More terms from Giovanni Resta, Jun 06 2020
STATUS
approved