OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
PROG
(Python)
from gmpy2 import iroot
def A030668(n):
d, nd = 10, 10*n
while True:
x = (iroot(nd-1, 3)[0]+1)**3
if x < nd+d:
return int(x)
d *= 10
nd *= 10 # Chai Wah Wu, May 24 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved