OFFSET
1,1
COMMENTS
For k > 1, numbers k such that k-2 occurrences of the digit 8 followed by the digits 21 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 8w21.
EXAMPLE
3 is in this sequence because (8*10^3 - 611)/9 = 821 is prime.
Initial terms and associated primes:
a(1) = 3, 821;
a(2) = 4, 8821;
a(3) = 7, 8888821;
a(4) = 9, 888888821; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(8*10^# - 611)/9] &]
PROG
(PARI) isok(k) = isprime((8*10^k - 611)/9); \\ Michel Marcus, Nov 22 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 21 2017
EXTENSIONS
Incorrect a(1)=2 removed by Georg Fischer, Jun 26 2020
STATUS
approved