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.

A018160 Powers of fifth root of 16 rounded to nearest integer.

Original entry on oeis.org

1, 2, 3, 5, 9, 16, 28, 49, 84, 147, 256, 446, 776, 1351, 2353, 4096, 7132, 12417, 21619, 37641, 65536, 114105, 198668, 345901, 602249, 1048576, 1825677, 3178688, 5534417, 9635980, 16777216, 29210830, 50859008
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A011101.

Programs

  • Mathematica
    Floor[(16^(1/5))^Range[0,40]+1/2] (* Harvey P. Dale, May 23 2012 *)
  • Python
    from gmpy2 import iroot_rem
    def A018160(n):
        i, j = iroot_rem(1<<(n<<2),5)
        return int(i)+int(j<<5>=10*i*((i*((i*(i+1)<<1)+1)<<2)+1)+1) # Chai Wah Wu, Jun 20 2024