OFFSET
1,2
COMMENTS
RECORDS transform of A016014.
Sequence is infinite; a terrible upper bound can be derived from Linnik's theorem together with the Chinese Remainder Theorem, giving a(n) << exp(a(n-1)^6).
FORMULA
EXAMPLE
2*4*2+1 = 17 is prime with k = 2, but 1 through 3 have k = 1.
2*12*3+1 = 73 is prime with k = 3, but k = 2 for 4, 7, 10 and k = 1 for the other n < 12.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Mar 25 2014
EXTENSIONS
a(37)-a(40) from Giovanni Resta, Mar 26 2014
STATUS
approved