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!)
A113560 Least multiple of n in which the n-th digit from left is 5. 6
5, 150, 105, 10052, 10005, 1000050, 1000055, 100000056, 100000035, 10000000050, 10000000065, 1000000000056, 1000000000025, 100000000000054, 100000000000005, 10000000000000256, 10000000000000135, 1000000000000000152, 1000000000000000075, 1000000000000000000500 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Sequence in context: A362494 A332716 A230666 * A094364 A232788 A324097
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 06 2005
EXTENSIONS
More terms from Joshua Zucker, May 03 2006
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 June 29 07:27 EDT 2024. Contains 373826 sequences. (Running on oeis4.)