OFFSET
0,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..1000
PROG
(Python)
from gmpy2 import iroot_rem
def A018142(n):
i, j = iroot_rem(24**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