OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n=2, the second prime is 3, and 36 is the smallest square that begins with 3, so a(2) = 36. - Michael B. Porter, Sep 06 2016
MAPLE
A030666:= proc(x) local d;
for d from 1 do
if ceil(sqrt(10^d*x)) <= floor(sqrt(10^d*(x+1)-1)) then
return ceil(sqrt(10^d*x))^2
fi
od
end proc:
seq(A030666(ithprime(i)), i=1..100); # Robert Israel, Sep 05 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Name edited by Robert Israel, Sep 06 2016
STATUS
approved