|
|
A034995
|
|
Smallest square starting with a string of n 9's.
|
|
2
|
|
|
9, 99225, 9991921, 999950884, 99999515529, 9999995824729, 999999961946176, 99999999356895225, 99999999989350756, 999999999956753113201, 99999999999470044512256, 9999999999991276338467889
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MAPLE
|
f:= proc(n) local d, q, x;
for d from n do
q:= 10^d-10^(d-n);
x:= isqrt(q);
if x^2 < q then x:= x+1 fi;
if x^2 < 10^d then return x^2 fi
od
end proc:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|