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-4 of 4 results.

A175427 Starting values which reach a single-digit number after a finite number of iterations of the map x->A175429(x).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50
Offset: 1

Views

Author

Jaroslav Krizek, May 09 2010

Keywords

Comments

Arguments m such that A175424(m) >= 0. Also arguments m such that A175419(m) >= 0.
Complement of A175426.

Examples

			27 is in the sequence because a single-digit number is reached in 3 iterations: 7^2 = 49, 9^4 = 6561, ((1^6)^5)^6 = 1, so A175424(27) = 3.
		

Crossrefs

A167417 Largest prime concatenation of the first n primes, or 0 if no such prime exists.

Original entry on oeis.org

2, 23, 523, 7523, 751123, 75311213, 7523171311, 753217131911, 75323219131117, 0, 753312923219111713, 75373312923192171311, 7541373132923217111319, 754341373132923192171311, 75474341373132923211171319
Offset: 1

Views

Author

Eva-Maria Zschorn (e-m.zschorn(AT)zaschendorf.km3.de), Nov 03 2009

Keywords

Comments

a(10) doesn't exist, because the sum of digits of the first 10 primes (2+3+5+7+(1+1)+(1+3)+(1+7)+(1+9)+(2+3)+(2+9)) = 57 is a multiple of 3.

Examples

			The only prime concatenations of the first n primes for n = 1..3 are a(1)=2, a(2)=23, and a(3)=523.
For n=4, the only prime concatenations of 2, 3, 5, and 7 are 2357, 2753, 3257, 3527, 5237, 5273, 7253, 7523; the largest of these is a(4) = 7523.
		

References

  • Richard E. Crandall and Carl Pomerance, Prime Numbers, Springer 2005.
  • Paulo Ribenboim, The New Book of Prime Number Records, Springer 1996.
  • A. Weil, Number theory: an approach through history, Birkhäuser 1984.

Crossrefs

Programs

  • Python
    from sympy import sieve, isprime
    from itertools import permutations
    for n in range(1, 14):
        sieve.extend_to_no(n)
        p = list(map(str, list(sieve._list)))[:n]
        mint = 0
        for i in permutations(p, len(p)):
            t = int(''.join(i))
            if  t > mint and isprime(t):
                mint = t
        print(mint, end = ', ') # Gleb Ivanov, Dec 05 2021

Extensions

Edited by Charles R Greathouse IV, Apr 28 2010
Several terms corrected and a(11)-a(15) from Gleb Ivanov, Dec 05 2021

A167416 Smallest prime concatenation of the first n primes, or 0 if no such prime exists.

Original entry on oeis.org

2, 23, 523, 2357, 112573, 11132357, 1113257317, 111317193257, 11131719223357, 0, 111317192232935317, 11131719223293157373, 1113171922329313377541, 111317192232931337415743, 11131719223293133741474357
Offset: 1

Views

Author

Eva-Maria Zschorn (e-m.zschorn(AT)zaschendorf.km3.de), Nov 03 2009

Keywords

Comments

a(10) doesn't exist, because the sum of digits of the first 10 primes (2+3+5+7+(1+1)+(1+3)+(1+7)+(1+9)+(2+3)+(2+9)) = 57 is a multiple of 3.

Examples

			The only prime concatenations of the first n primes for n = 1..3 are a(1)=2, a(2)=23, and a(3)=523.
For n=4, the only prime concatenations of 2, 3, 5, and 7 are 2357, 2753, 3257, 3527, 5237, 5273, 7253, 7523; the smallest of these is a(4) = 2357.
		

References

  • Richard E. Crandall and Carl Pomerance, Prime Numbers, Springer 2005.
  • Paulo Ribenboim, The New Book of Prime Number Records, Springer 1996.
  • A. Weil, Number theory: an approach through history, Birkhäuser 1984.

Crossrefs

Programs

  • Python
    from sympy import sieve, isprime
    from itertools import permutations
    for n in range(1, 20):
        sieve.extend_to_no(n)
        p = list(map(str, list(sieve._list)))[:n]
        mint = 10**1000
        for i in permutations(p, len(p)):
            t = int(''.join(i))
            if  t < mint and isprime(t):
                mint = t
        if mint == 10**1000:
            print(0, end = ', ')
        else:
            print(mint, end = ', ') # Gleb Ivanov, Dec 04 2021

Extensions

Keyword:full added by R. J. Mathar, Nov 11 2009
Edited by Charles R Greathouse IV, Apr 28 2010
Several terms corrected and a(11)-a(15) from Gleb Ivanov, Dec 04 2021

A295206 Number of primes that are permutations of the first 3*n - 2 numbers.

Original entry on oeis.org

0, 4, 534, 222864, 284197799
Offset: 1

Views

Author

Paolo P. Lava, Nov 17 2017

Keywords

Comments

The sequence would be a concatenation of chunks of the form {x, 0, 0}, where x is a value greater than zero, apart from the first term. Here only x's are listed.

Examples

			a(2) = 4 because for the first 4 numbers {1,2,3,4} we have 1423, 2143, 2341, 4231 that are prime.
		

Crossrefs

Programs

  • Maple
    with(combinat): P:=proc(q) local a,b,j,k,n,t; a:=[];
    for n from 1 to q do a:=permute(3*n-2); t:=0;
    for k from 1 to nops(a) do b:=0;
    for j from 1 to nops(a[k]) do b:=10^(ilog10(a[k][j])+1)*b+a[k][j]; od;
    if isprime(b) then t:=t+1; fi; od; print(t);
    od; end: P(5); # Paolo P. Lava, Nov 17 2017
  • Mathematica
    Array[Count[Map[FromDigits@ Flatten[IntegerDigits@ #] &, Permutations[Range@ #, {#}]], ?PrimeQ] &, 10] (* _Michael De Vlieger, Nov 17 2017 *)

Extensions

a(4)-a(5) from Giovanni Resta, Nov 17 2017
Showing 1-4 of 4 results.