OFFSET
1,2
COMMENTS
Every number coprime with 10 has a smallest multiple that is repunit (A099679).
Every positive number has a smallest multiple consisting of a succession of 1's followed by a succession of 0's (A052983).
Every number coprime with 10 has a smallest multiple that is alternating of the form 1010...0101 (this sequence).
EXAMPLE
MATHEMATICA
a[n_] := Module[{k = (5*n + (Mod[3*n + 2, 4] - 4))/2, m = 0}, While[! Divisible[1 + 100*(100^m - 1)/99, k], m++]; m]; Array[a, 100] (* Amiram Eldar, Apr 15 2021 *)
PROG
(PARI) a045572(n)=10*(n>>2)+[-1, 1, 3, 7][n%4+1] \\ after Charles R Greathouse IV in A045572
a094028(n) = 1+100*(100^n-1)/99
a(n) = for(m=0, oo, if(a094028(m)%a045572(n)==0, return(m))) \\ Felix Fröhlich, Apr 15 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Apr 15 2021
EXTENSIONS
More terms from Felix Fröhlich, Apr 15 2021
STATUS
approved