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.

A365369 A365368/5, except when A365368(n) = -1, then a(n) = -1.

Original entry on oeis.org

1, 1, 1, 4, 2049, 2, 4, 2049, 3, 26, 6, 4, 2049, 21, 5, 9, 26, 6, 49, 11, 7, 2049, 21, 8, 14, 24, 9, 26, 16, 10, 29, 49, 11, 19, 54, 12, 2049, 21, 13, 104, 174, 14, 24, 521, 15, 71, 26, 16, 76, 46, 17, 29, 49, 18, 51, 31, 19, 54, 151, 20, 34, 2049, 21, 99, 36
Offset: 1

Views

Author

Chai Wah Wu, Sep 02 2023

Keywords

Crossrefs

Programs

  • Python
    from fractions import Fraction
    def A365369(n):
        x = Fraction(n)
        while x.denominator > 1 or x<=n:
            x = Fraction(5*x._round_(),3)
        return int(x)//5