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.

Showing 1-5 of 5 results.

A236437 Primes which occur in their proper place in A236174.

Original entry on oeis.org

2, 263, 269, 347, 397, 431, 461, 479, 499, 569, 599, 607, 677, 683, 719, 769, 797, 821, 929, 941, 1019, 1031, 1049, 1051, 1061, 1069, 1103, 1181, 1223, 1229, 1237, 1297, 1307, 1367, 1399, 1409, 1439, 1453, 1487, 1489, 1523, 1553, 1559, 1571, 1619, 1637, 1733, 1759, 1811, 1823, 1949, 1973, 1997
Offset: 1

Views

Author

N. J. A. Sloane, Jan 25 2014

Keywords

Comments

Primes p such that A236174(k) = prime(k) for some k. The values of k are (essentially) given in A235377.
Same as A052033 if the initial 2 is omitted.

Examples

			263 is the 56th prime and is also the 56th term in A236174.
		

Crossrefs

Programs

  • Python
    from sympy import prime, isprime
    def A236174(n):
        p = prime(n)
        for b in range(2,11):
            x, y, z = p, 0, 1
            while x >= b:
                x, r = divmod(x,b)
                y += r*z
                z *= 10
            y += x*z
            if isprime(y):
                return y
    A236437_list = [prime(n) for n in range(1,10**6) if A236174(n) == prime(n)]
    # Chai Wah Wu, Jan 03 2015

A052033 Primes base 10 that are never primes in any smaller base b, 2<=b<10, expansions interpreted as decimal numbers.

Original entry on oeis.org

263, 269, 347, 397, 431, 461, 479, 499, 569, 599, 607, 677, 683, 719, 769, 797, 821, 929, 941, 1019, 1031, 1049, 1051, 1061, 1069, 1103, 1181, 1223, 1229, 1237, 1297, 1307, 1367, 1399, 1409, 1439, 1453, 1487, 1489, 1523, 1553, 1559, 1571, 1619, 1637
Offset: 1

Views

Author

Patrick De Geest, Dec 15 1999

Keywords

Crossrefs

Programs

A235354 Minimal k > 1 such that the base-k representation of the n-th prime, read in decimal, is also prime.

Original entry on oeis.org

3, 2, 2, 4, 4, 4, 4, 4, 2, 4, 7, 4, 5, 4, 2, 4, 7, 4, 3, 4, 4, 3, 4, 2, 4, 2, 3, 4, 4, 4, 6, 4, 8, 3, 2, 4, 2, 2, 4, 2, 2, 3, 4, 3, 4, 2, 3, 8, 4, 2, 4, 7, 4, 4, 8, 10, 10, 9, 3, 5, 3, 4, 3, 4, 2, 4, 2, 6, 10, 3, 7, 4, 2, 3, 2, 2, 4, 10, 4, 3, 4, 3, 10, 3, 3
Offset: 1

Views

Author

Vladimir Shevelev, Jan 07 2014

Keywords

Comments

Conjecture 1. Every number 2, ..., 10 occurs infinitely many times.
Conjecture 2. There exists limit of average (a(1) + ... + a(n))/n.
Conjecture: The average in Conjecture 2 exists and is equal to 10. - Charles R Greathouse IV, Jan 08 2014

Examples

			Prime(7) = 17. The base 2 representation of 17 is 10001, which reinterpreted in decimal is 73 * 137; the base 3 representation of 17 is 122, which reread as decimal is 2 * 61; and the base 4 representation of 17 is 101, which reread as decimal is prime, so therefore a(7) = 4.
		

Crossrefs

Programs

  • Mathematica
    Table[Module[{b=2},While[!PrimeQ[FromDigits[IntegerDigits[p,b]]],b++];b],{p,Prime[Range[90]]}] (* Harvey P. Dale, Aug 30 2025 *)
  • PARI
    rebase(n,from,to=10)=subst(Pol(digits(n,from)),'x,to)
    a(n)=my(p=prime(n)); for(b=2,9,if(isprime(rebase(p,b)),return(b))); 10 \\ Charles R Greathouse IV, Jan 08 2014

Extensions

More terms from Peter J. C. Moses

A235377 Positions of 10s in A235354.

Original entry on oeis.org

56, 57, 69, 78, 83, 89, 92, 95, 104, 109, 111, 123, 124, 128, 136, 139, 142, 158, 160, 171, 173, 176, 177, 178, 180, 185, 194, 200, 201, 203, 211, 214, 219, 222, 223, 228, 231, 236, 237, 241, 245, 246, 248, 256, 259, 270, 274, 280, 281, 296, 298, 302, 307, 314
Offset: 1

Views

Author

Keywords

Comments

If prime(a(n)) is written in base k>=2, and the k-representation is read in decimal, then all such numbers, for k = 2,3,...,9, are composite.

Crossrefs

Programs

  • PARI
    isok(n) = {my(p = prime(n)); for (b = 2, 9, if (isprime(subst(Pol(digits(p, b)), x, 10)), return(0));); return (1);} \\ Michel Marcus, Jan 18 2014

A253549 Maximal prime written in decimal among the base-k representations of the n-th prime, read in base 16, for k=2,3,...,16.

Original entry on oeis.org

2, 17, 257, 19, 19, 19, 65537, 37, 65809, 53, 307, 257, 53, 547, 563, 293, 101, 277, 4099, 577, 4129, 8737, 787, 137, 577, 257, 593, 4643, 4657, 773, 577, 821, 311, 313, 268501249, 74017, 74257, 8707, 359, 8753, 8963, 613, 9011, 12289, 285212929, 577, 135697
Offset: 1

Views

Author

Chai Wah Wu, Jan 03 2015

Keywords

Comments

A base 16 variant of A236174.

Examples

			For n = 19, 67 is the 19th prime, and written in base 2, ..., is '1000011', '2111', '1003', '232', '151', '124', '103', '74', '67', '61', '57', '52', '4b', '47', '43'.  Out of these, when read in as hexadecimal numbers, the first prime is 1003_16 which is 4099_10.
		

Crossrefs

Cf. A236174.

Programs

  • Python
    from sympy import prime, isprime
    def A253549(n):
        p = prime(n)
        for b in range(2,17):
            x, y, z = p, 0, 1
            while x >= b:
                x, r = divmod(x,b)
                y += r*z
                z *= 16
            y += x*z
            if isprime(y):
                return y
Showing 1-5 of 5 results.