A249805 a(n+1) is the next smallest nontrivial cube beginning with a(n), initial term is 5.
5, 512, 5124031424, 5124031424891652800051720000001
Offset: 1
Links
- Jon E. Schoenfield, Table of n, a(n) for n = 1..7
Programs
-
PARI
a(n)=k=n; s=1; while(s<10^7, if(s%10, if(s^3\(10^(#Str(s^3)-#Str(k)))==k, print1(s^3, ", "); k=s^3)); s++) a(5)
-
Python
def f(x): n = x s = 1 while s < 10**7: if s % 10: S = str(s**3) if S.startswith(str(n)): print(s**3, end=', ') n = s**3 s += 1 f(5)
Extensions
a(4) from Jon E. Schoenfield, Dec 04 2014
Comments