The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A030688 Smallest nontrivial extension of n-th square which is a square not ending 00. 2

%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_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 8 17:52 EDT 2024. Contains 373227 sequences. (Running on oeis4.)