login
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
OFFSET
1,1
PROG
(Python)
from gmpy2 import isqrt
def A030688(n):
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
nd *= 10 # Chai Wah Wu, May 24 2016
CROSSREFS
Cf. A030689.
Sequence in context: A104992 A153483 A030686 * A235962 A235573 A186850
KEYWORD
nonn,base
STATUS
approved