OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 1 followed by k-2 occurrences of the digit 6 followed by the digits 97 is prime (see Example section).
a(31) > 3*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 16w97.
EXAMPLE
3 is in this sequence because (5*10^3 + 91) / 3 = 1697 is prime.
Initial terms and associated primes:
a(1) = 1, 47;
a(2) = 2, 197;
a(3) = 3, 1697;
a(4) = 10, 16666666697;
a(5) = 19, 16666666666666666697, etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(5*10^# + 91) / 3] &]
PROG
(PARI) is(n)=ispseudoprime((5*10^n + 91)/3) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, Nov 12 2016
EXTENSIONS
a(26)-a(29) from Robert Price, Apr 28 2018
a(30) from Robert Price, Oct 25 2023
STATUS
approved