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.

A185704 Final prime adjoined in the smallest term of A019518 divisible by 73^n.

Original entry on oeis.org

593, 23909, 4851169, 84821071, 13231167673
Offset: 1

Views

Author

James G. Merickel, Feb 05 2011

Keywords

Comments

Associated with A019518(i) at i = 108, 2660, 338775, 4933945,...

Crossrefs

Programs

  • Python
    from sympy import nextprime
    def A185704(n):
        p, k, m = 2, 73**n, 10
        q, m2 = p % k, m % k
        while True:
            p = nextprime(p)
            while p >= m:
                m *= 10
                m2 = m % k
            q = (q*m2 + p) % k
            if q == 0:
                return p # Chai Wah Wu, May 01 2020

Extensions

a(5) from Chai Wah Wu, May 01 2020