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!)
A090292 Least square k^2 > n^2 whose decimal expansion ends in n^2. 3
100, 81, 64, 49, 2116, 225, 1936, 1849, 1764, 1681, 8100, 57121, 238144, 56169, 236196, 1225, 234256, 54289, 232324, 53361, 6400, 52441, 228484, 51529, 226576, 5625, 224676, 49729, 222784, 48841, 4900, 47961, 6091024, 1481089, 6081156, 81225, 6071296, 1471369 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Subsidiary Sequence: n-th square whose decimal expansion ends in n^2.
LINKS
FORMULA
a(n) = A090293(n)^2. - David Wasserman, Oct 27 2005
PROG
(Python)
def a(n):
k, target = n + 1, str(n*n)
while not str(k*k).endswith(target): k += 1
return k*k
print([a(n) for n in range(38)]) # Michael S. Branicky, Oct 09 2021
(Python) # alternate version
from math import isqrt
def issquare(n): return isqrt(n)**2 == n
def a(n):
k, target = 1, str(n*n)
while not issquare(int(str(k)+target)): k += 1
return int(str(k)+target)
print([a(n) for n in range(38)]) # Michael S. Branicky, Oct 09 2021
CROSSREFS
Cf. A090293.
Sequence in context: A260707 A180102 A242615 * A020993 A115020 A169735
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 29 2003
EXTENSIONS
More terms from David Wasserman, Oct 27 2005
STATUS
approved

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 April 25 12:27 EDT 2024. Contains 371969 sequences. (Running on oeis4.)