cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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

Original entry on oeis.org

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

Views

Author

Alex Ratushnyak, Apr 23 2012

Keywords

Examples

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

Crossrefs

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