login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182305 a(n+1) = a(n) + floor(a(n)/4) with a(0)=4. 6

%I #16 Sep 21 2022 12:26:33

%S 4,5,6,7,8,10,12,15,18,22,27,33,41,51,63,78,97,121,151,188,235,293,

%T 366,457,571,713,891,1113,1391,1738,2172,2715,3393,4241,5301,6626,

%U 8282,10352,12940,16175,20218,25272,31590,39487

%N a(n+1) = a(n) + floor(a(n)/4) with a(0)=4.

%e a(8) = a(7)+floor(a(7)/4) = 15 + 3 = 18.

%t NestList[#+Floor[#/4]&,4,50] (* _Harvey P. Dale_, Oct 06 2020 *)

%o (Python)

%o a=4

%o for i in range(55):

%o print(a, end=',')

%o a += a//4

%o (Python)

%o from itertools import islice

%o def A182305_gen(): # generator of terms

%o a = 4

%o while True:

%o yield a

%o a += a>>2

%o A182305_list = list(islice(A182305_gen(),30)) # _Chai Wah Wu_, Sep 21 2022

%Y Cf. A061418, A100585.

%K nonn

%O 0,1

%A _Alex Ratushnyak_, Apr 23 2012

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 23:15 EDT 2024. Contains 371798 sequences. (Running on oeis4.)