OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
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
KEYWORD
easy,nonn,base
AUTHOR
Jonathan Vos Post, May 26 2008
EXTENSIONS
More terms from R. J. Mathar, May 31 2008
STATUS
approved