OFFSET
1,1
LINKS
Jianing Song, Table of n, a(n) for n = 1..100
FORMULA
a(n) = 2*n*A239800(n)+1.
EXAMPLE
The smallest m such that 2*m*i + 1 is not prime until i = 3 is m = 12, and the corresponding prime is 2*12*3 + 1 = 73 = a(3).
The smallest m such that 2*m*i + 1 is not prime until i = 4 is m = 42, and the corresponding prime is 2*42*4 + 1 = 337 = a(4).
The smallest m such that 2*m*i + 1 is not prime until i = 5 is m = 19, and the corresponding prime is 2*19*5 + 1 = 191 = a(5).
PROG
(PARI) isok(n, m) = for(i=1, n-1, if(isprime(2*m*i+1), return(0))); if(isprime(2*m*n+1), 1, 0)
a(n) = for(m=1, oo, if(isok(n, m), return(2*n*m+1))) \\ based on the conjecture that all numbers occur in A016014
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Mar 09 2021
STATUS
approved