OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..144
FORMULA
a(n) is the smallest multiple of n appearing in A007908.
EXAMPLE
a(3) = 12, because 12 is the smallest multiple of 3 that appears in A007908.
MAPLE
f:= proc(n) local x, i;
x:= 0;
for i from 1 do
x:= x*10^(1+ilog10(i))+i;
if x mod n = 0 then return x fi
od
end proc:
map(f, [$1..20]); # Robert Israel, Oct 25 2020
MATHEMATICA
smn[n_]:=Module[{k=1, c=1}, While[!Divisible[c, n], k++; c= c*10^IntegerLength[ k]+ k]; c]; Array[ smn, 20] (* Harvey P. Dale, Apr 04 2022 *)
PROG
(PARI) a(n) = j=""; for(k=1, oo, j=eval(concat(Str(j), k)); if(j%n==0, return(j)))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Eder Vanzei, Sep 09 2020
STATUS
approved