%I #8 May 24 2016 23:53:12
%S 16,49,961,169,256,361,49284,64009,81225,100489,121104,1444,169744,
%T 196249,225625,256036,289444,3249,361201,400689,4414201,484416,529984,
%U 576081,625681,6765201,729316,784996,8415801,900601,9616201
%N Smallest nontrivial extension of n-th square which is a square not ending 00.
%H Chai Wah Wu, <a href="/A030688/b030688.txt">Table of n, a(n) for n = 1..10000</a>
%o (Python)
%o from gmpy2 import isqrt
%o def A030688(n):
%o d, nd = 10, 10*n**2
%o while True:
%o x = isqrt(nd-1)+1
%o if not x % 10:
%o x += 1
%o x = x**2
%o if x < nd+d:
%o return int(x)
%o d *= 10
%o nd *= 10 # _Chai Wah Wu_, May 24 2016
%Y Cf. A030689.
%K nonn,base
%O 1,1
%A _Patrick De Geest_
|