login
a(n+1) is the next smallest nontrivial cube beginning with a(n), initial term is 5.
1

%I #32 Aug 06 2017 22:00:26

%S 5,512,5124031424,5124031424891652800051720000001

%N a(n+1) is the next smallest nontrivial cube beginning with a(n), initial term is 5.

%C a(5) is a 94-digit number. - _Jon E. Schoenfield_, Dec 04 2014

%H Jon E. Schoenfield, <a href="/A249805/b249805.txt">Table of n, a(n) for n = 1..7</a>

%o (Python)

%o def f(x):

%o ..n = x

%o ..s = 1

%o ..while s < 10**7:

%o ....if s % 10:

%o ......S = str(s**3)

%o ......if S.startswith(str(n)):

%o ........print(s**3, end=', ')

%o ........n = s**3

%o ....s += 1

%o f(5)

%o (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++)

%o a(5)

%Y Cf. A249895, A249799, A249804, A249828, A249834.

%K nonn,base

%O 1,1

%A _Derek Orr_, Dec 03 2014

%E a(4) from _Jon E. Schoenfield_, Dec 04 2014