OFFSET
1,2
COMMENTS
Numbers k such that the digits 97 followed by k occurrences of the digit 3 is prime (see Example section).
a(27) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 973w3.
EXAMPLE
2 is in this sequence because (292*10^2 - 1)/3 = 9733 is prime.
Initial terms and associated primes:
a(1) = 0, 97;
a(2) = 2, 9733;
a(3) = 4, 973333;
a(4) = 9, 97333333333;
a(5) = 14, 9733333333333333; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(292*10^# - 1)/3] &]
PROG
(PARI) isok(n) = isprime((292*10^n - 1)/3); \\ Michel Marcus, Jan 21 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jan 21 2017
STATUS
approved