|
|
A030688
|
|
Smallest nontrivial extension of n-th square which is a square not ending 00.
|
|
2
|
|
|
16, 49, 961, 169, 256, 361, 49284, 64009, 81225, 100489, 121104, 1444, 169744, 196249, 225625, 256036, 289444, 3249, 361201, 400689, 4414201, 484416, 529984, 576081, 625681, 6765201, 729316, 784996, 8415801, 900601, 9616201
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
PROG
|
(Python)
from gmpy2 import isqrt
d, nd = 10, 10*n**2
while True:
x = isqrt(nd-1)+1
if not x % 10:
x += 1
x = x**2
if x < nd+d:
return int(x)
d *= 10
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|