[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A278397
Numbers k such that 10^k - 20001 is prime.
1
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,1
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.
EXAMPLE
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.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[10^# - 20001] &]
PROG
(Magma) [n: n in [5..400] | IsPrime(10^n - 20001)]; // Vincenzo Librandi, Nov 21 2016
(PARI) is(n)=ispseudoprime(10^n-20001) \\ Charles R Greathouse IV, Jun 13 2017
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 20 2016
EXTENSIONS
a(26) from Robert Price, Jan 26 2018
STATUS
approved