OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digits 79 followed by k occurrences of the digit 3 is prime (see Example section).
a(36) > 3*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 793w.
EXAMPLE
3 is in this sequence because (238*10^3-1)/3 = 79333 is prime.
Initial terms and associated primes:
a(1) = 0, 79;
a(2) = 2, 7933;
a(3) = 3, 79333;
a(4) = 4, 793333;
a(5) = 6, 79333333, etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(238*10^# - 1)/3] &]
PROG
(Magma) [n: n in [0..500] | IsPrime((238*10^n - 1) div 3)]; // Vincenzo Librandi, May 25 2016
(PARI) is(n)=ispseudoprime(238*10^n\3) \\ Charles R Greathouse IV, Jun 08 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, May 24 2016
EXTENSIONS
a(30)-a(33) from Robert Price, Apr 01 2020
a(34)-a(35) from Robert Price, Oct 26 2023
STATUS
approved