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.

A278397 Numbers k such that 10^k - 20001 is prime.

Original entry on oeis.org

5, 11, 16, 21, 37, 83, 94, 299, 318, 467, 622, 707, 1931, 2175, 2189, 2238, 2526, 5202, 10541, 15822, 17407, 19919, 19998, 25407, 96377, 118009
Offset: 1

Views

Author

Robert Price, Nov 20 2016

Keywords

Comments

For k > 4, numbers k such that k-5 occurrences of the digit 9 followed by the digits 79999 is prime (see Example section).
a(27) > 2*10^5.

Examples

			5 is in this sequence because 10^5 - 20001 = 79999 is prime.
Initial terms and associated primes:
a(1) = 5, 79999;
a(2) = 11, 99999979999;
a(3) = 16, 9999999999979999;
a(4) = 21, 999999999999999979999;
a(5) = 37, 9999999999999999999999999999999979999; etc.
		

Crossrefs

Programs

  • Magma
    [n: n in [5..400] | IsPrime(10^n - 20001)]; // Vincenzo Librandi, Nov 21 2016
    
  • Mathematica
    Select[Range[0, 100000], PrimeQ[10^# - 20001] &]
  • PARI
    is(n)=ispseudoprime(10^n-20001) \\ Charles R Greathouse IV, Jun 13 2017

Extensions

a(26) from Robert Price, Jan 26 2018