login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A173479
a(n) = the smallest n-digit number ending in n-1 zeros that is divisible by n, else 0.
1
1, 10, 300, 1000, 10000, 300000, 7000000, 10000000, 900000000, 1000000000, 0, 300000000000, 0, 70000000000000, 300000000000000, 1000000000000000, 0, 900000000000000000, 0, 10000000000000000000, 0, 0, 0, 300000000000000000000000, 1000000000000000000000000, 0, 0, 7000000000000000000000000000, 0
OFFSET
1,2
COMMENTS
LINKS
MAPLE
f:= proc(n) local i; for i from 1 to 9 do if i*10^(n-1) mod n = 0 then return i*10^(n-1) fi od: 0 end proc:
map(f, [$1..20]); # Robert Israel, Jan 16 2017
CROSSREFS
Sequence in context: A000459 A125288 A217487 * A173478 A069672 A129005
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Feb 19 2010
EXTENSIONS
a(16)-a(29) from Robert Israel, Jan 16 2017
STATUS
approved