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.

A215733 a(n) is the first digit to appear n times in succession in a power of 3.

Original entry on oeis.org

1, 7, 8, 5, 5, 8, 2, 1, 2, 2, 2, 4, 5, 8, 2, 4, 4
Offset: 1

Views

Author

V. Raman, Aug 22 2012

Keywords

Crossrefs

Programs

  • Python
    def A215733(n):
        l, x = [str(d)*n for d in range(10)], 1
        for m in range(10**9):
            s = str(x)
            for k in range(10):
                if l[k] in s:
                    return k
            x *= 3
        return 'search limit reached'
    # Chai Wah Wu, Dec 17 2014

Extensions

a(12) from Chai Wah Wu, Dec 17 2014
a(13)-a(14) from Giovanni Resta, Apr 20 2016
a(15) from Bert Dobbelaere, Mar 04 2019
a(16)-a(17) from Bert Dobbelaere, Mar 20 2019