%I #8 Aug 19 2016 04:33:25
%S 1,2,4,7,13,24,45,86,162,305,576,1088,2054,3877,7321,13824,26102,
%T 49285,93059,175713,331776,626451,1182849,2233427,4217101,7962624,
%U 15034828,28388386,53602242,101210414,191102976
%N Powers of fifth root of 24 rounded to nearest integer.
%H Chai Wah Wu, <a href="/A018184/b018184.txt">Table of n, a(n) for n = 0..1000</a>
%o (Python)
%o from gmpy2 import iroot_rem
%o def A018142(n):
%o i,j = iroot_rem(24**n,5)
%o return int(i) + int(32*j >= 10*i*(4*i*(2*i*(i + 1) + 1) + 1) + 1) # _Chai Wah Wu_, Aug 18 2016
%K nonn
%O 0,2
%A _N. J. A. Sloane_.
|