OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 8 followed by k-2 occurrences of the digit 6 followed by the digits 27 is prime (see Example section).
a(32) > 3*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 86w27.
EXAMPLE
3 is in this sequence because (26*10^3 - 119)/3 = 8627 is prime.
Initial terms and associated primes:
a(1) = 1, 47;
a(2) = 2, 827;
a(3) = 3, 8627;
a(4) = 4, 86627;
a(5) = 6, 8666627, etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(26*10^# - 119)/3] &]
PROG
(Magma) [n: n in [1..500] |IsPrime((26*10^n-119) div 3)]; // Vincenzo Librandi, Jul 07 2016
(PARI) lista(nn) = for(n=1, nn, if(ispseudoprime((26*10^n-119)/3), print1(n, ", "))); \\ Altug Alkan, Jul 08 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, Jul 06 2016
EXTENSIONS
a(30)-a(31) from Robert Price, Jul 12 2023
STATUS
approved