OFFSET
1,2
COMMENTS
Numbers k such that the digits 50 followed by k occurrences of the digit 3 is prime (see Example section).
a(30) > 3*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 503w.
EXAMPLE
3 is in this sequence because (151*10^3 - 1)/3 = 50333 is prime.
Initial terms and associated primes:
a(1) = 1, 503;
a(2) = 3, 50333;
a(3) = 6, 50333333;
a(4) = 15, 50333333333333333;
a(5) = 19, 503333333333333333333; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(151*10^# - 1)/3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Apr 09 2017
EXTENSIONS
a(26)-a(28) from Robert Price, Mar 17 2020
a(29) from Robert Price, Oct 25 2023
STATUS
approved