OFFSET
1,3
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 6 followed by the digits 81 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 26w81.
EXAMPLE
2 is in this sequence because (8*10^2 + 43)/3 = 281 is prime.
Initial terms and associated primes:
a(1) = 0, 17;
a(2) = 1, 41;
a(3) = 2, 281;
a(4) = 4, 26681;
a(5) = 5, 266681; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(8*10^# + 43)/3] &]
PROG
(PARI) lista(nn) = for(n=0, nn, if(isprime((8*10^n + 43)/3), print1(n, ", "))) \\ Iain Fox, Oct 18 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 11 2017
EXTENSIONS
a(23)-a(25) from Robert Price, Jun 09 2018
STATUS
approved