A182305 a(n+1) = a(n) + floor(a(n)/4) with a(0)=4.
4, 5, 6, 7, 8, 10, 12, 15, 18, 22, 27, 33, 41, 51, 63, 78, 97, 121, 151, 188, 235, 293, 366, 457, 571, 713, 891, 1113, 1391, 1738, 2172, 2715, 3393, 4241, 5301, 6626, 8282, 10352, 12940, 16175, 20218, 25272, 31590, 39487
Offset: 0
Keywords
Examples
a(8) = a(7)+floor(a(7)/4) = 15 + 3 = 18.
Programs
-
Mathematica
NestList[#+Floor[#/4]&,4,50] (* Harvey P. Dale, Oct 06 2020 *)
-
Python
a=4 for i in range(55): print(a, end=',') a += a//4
-
Python
from itertools import islice def A182305_gen(): # generator of terms a = 4 while True: yield a a += a>>2 A182305_list = list(islice(A182305_gen(),30)) # Chai Wah Wu, Sep 21 2022