OFFSET
0,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..1000
MATHEMATICA
Round[Surd[18, 5]^Range[0, 40]] (* Harvey P. Dale, Jul 16 2016 *)
PROG
(Python)
from gmpy2 import iroot_rem
def A018166(n):
i, j = iroot_rem(18**n, 5)
return int(i) + int(32*j >= 10*i*(4*i*(2*i*(i + 1) + 1) + 1) + 1) # Chai Wah Wu, Aug 18 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved