login
A140317
Smallest n-digit number divisible by n^2.
2
1, 12, 108, 1008, 10000, 100008, 1000041, 10000000, 100000008, 1000000000, 10000000109, 100000000080, 1000000000116, 10000000000144, 100000000000125, 1000000000000000, 10000000000000152, 100000000000000008
OFFSET
1,2
LINKS
FORMULA
a(n) = n^2*ceiling(10^(n-1)/n^2). - Michel Marcus, Aug 25 2020
EXAMPLE
a(7) = 1000041 because 1000041 has 7 digits, 1000041/49 = 20409 = 3 * 6803 and no integer between 1000000 and 1000041 is divisible by 7^2 = 49.
a(9) = 100000008 because 100000008 has 9 digits, 100000008/81 = 1234568 = 23 * 154321 and no integer between 100000000 and 100000008 is divisible by 9^2 = 81.
MAPLE
A140317 := proc(n) n^2*ceil(10^(n-1)/n^2) ; end: seq(A140317(n), n=1..30) ; # R. J. Mathar, May 31 2008
MATHEMATICA
snd[n_]:=Module[{c=n^2-PowerMod[10, n-1, n^2]}, If[Divisible[10^(n-1), n^2], 10^(n-1), 10^(n-1)+c]]; Array[snd, 20] (* Harvey P. Dale, Dec 14 2012 *)
CROSSREFS
Sequence in context: A055533 A037602 A037707 * A069653 A155608 A228013
KEYWORD
easy,nonn,base
AUTHOR
Jonathan Vos Post, May 26 2008
EXTENSIONS
More terms from R. J. Mathar, May 31 2008
STATUS
approved