OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 4 followed by k-2 occurrences of the digit 8 followed by the digits 01 is prime (see Example section).
a(23) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 48w01.
EXAMPLE
2 is in this sequence because (44*10^2 - 791)/9 = 401 is prime.
Initial terms and associated primes:
a(1) = 2, 401;
a(2) = 3, 4801;
a(3) = 9, 4888888801;
a(4) = 15, 4888888888888801;
a(5) = 20, 488888888888888888801; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(44*10^# - 791)/9] &]
PROG
(Magma) [n: n in [1..400] |IsPrime((44*10^n - 791) div 9)]; // Vincenzo Librandi, Dec 03 2018
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 23 2017
STATUS
approved