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!)
A249898 a(n+1) is next smallest square not divisible by 10 beginning with a(n), initial term is 8. 4
8, 81, 81225, 8122515625, 812251562541751472569, 812251562541751472569881528811450814530084 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Hiroaki Yamanouchi, Table of n, a(n) for n = 1..10
PROG
(PARI) a(n)=k=n; s=1; while(s<5*10^7, if(s%10, if(s^2\(10^(#Str(s^2)-#Str(k)))==k, print1(s^2, ", "); k=s^2)); s++)
a(8)
(Python)
def f(x):
..print(x, end=', ')
..n = x
..s = 1
..while s < 10**7:
....if s % 10:
......S = str(s**2)
......if S.startswith(str(n)):
........print(s**2, end=', ')
........n = s**2
....s += 1
f(8)
CROSSREFS
Sequence in context: A104126 A100879 A080811 * A073699 A356829 A358600
KEYWORD
nonn,base
AUTHOR
Derek Orr, Nov 08 2014
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 23 08:11 EDT 2024. Contains 371905 sequences. (Running on oeis4.)