login
A018184
Powers of fifth root of 24 rounded to nearest integer.
1
1, 2, 4, 7, 13, 24, 45, 86, 162, 305, 576, 1088, 2054, 3877, 7321, 13824, 26102, 49285, 93059, 175713, 331776, 626451, 1182849, 2233427, 4217101, 7962624, 15034828, 28388386, 53602242, 101210414, 191102976
OFFSET
0,2
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
Sequence in context: A192654 A260668 A371789 * A192675 A018185 A191526
KEYWORD
nonn
AUTHOR
STATUS
approved