OFFSET
1,1
COMMENTS
a(n) is also the minimal rank where n consecutive 1's appear in A023512.
The sequence is infinite by Shiu's theorem.
LINKS
D. K. L. Shiu, Strings of Congruent Primes, J. Lond. Math. Soc. 61 (2) (2000) 359-373.
FORMULA
EXAMPLE
For n=3, a(3) = 24 because prime(24)+1=90, prime(25)+1=98, and prime(26)+1=102 are the first 3 consecutive primes p such that p+1 is divisible by 2 and not by 4.
CROSSREFS
KEYWORD
nonn
AUTHOR
Léo Gratien, May 13 2023
STATUS
approved