OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..995
EXAMPLE
a(4) = 4 * 2513 = 10052, in which the fourth digit is 5.
MAPLE
f:= proc(n) local d, m, R, v;
for d from n do
R:= {};
for m from ceil(10^(d-1)/n) do
v:= m*n;
if v > 10^d then break fi;
v:= v mod 10^(d-n+1);
if member(v, R) then break fi;
if floor(v/10^(d-n)) = 5 then return m*n fi;
R:= R union {v};
od
od;
end proc:
map(f, [$1..30]); # Robert Israel, Mar 15 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 06 2005
EXTENSIONS
More terms from Joshua Zucker, May 03 2006
STATUS
approved