OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digits 33 followed by k-1 occurrences of the digit 8 followed by the digit 9 is prime (see Example section).
a(22) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 338w9.
EXAMPLE
2 is in this sequence because (305*10^2 + 1)/9 = 3389 is prime.
Initial terms and associated primes:
a(1) = 2, 3389;
a(2) = 3, 33889;
a(3) = 12, 33888888888889;
a(4) = 14, 3388888888888889;
a(5) = 38, 3388888888888888888888888888888888888889; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(305*10^# + 1)/9] &]
PROG
(PARI) isok(k) = isprime((305*10^k + 1)/9); \\ Michel Marcus, Nov 22 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 21 2017
EXTENSIONS
a(21) from Robert Price, Jan 31 2020
STATUS
approved
