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.

A087706 A087705/5.

Original entry on oeis.org

1, 1, 2, 7, 2, 6, 7, 3, 181, 6, 4, 7, 21, 5, 181, 42, 6, 17, 11, 7, 12, 21, 8, 482, 181, 9, 42, 16, 10, 17, 81, 11, 31, 32, 12, 56, 21, 13, 22, 482, 14, 181, 67, 15, 42, 26, 16, 27, 46, 17, 132, 81, 18, 232, 31, 19, 32, 417, 20
Offset: 2

Views

Author

N. J. A. Sloane, Sep 29 2003

Keywords

Programs

  • Python
    from fractions import Fraction
    def A087706(n):
        x = Fraction(n,1)
        while x.denominator > 1 or x<=n:
            x = Fraction(5*x._floor_(),3)
        return int(x)//5 # Chai Wah Wu, Sep 01 2023