OFFSET
1,1
COMMENTS
For n > 1, a(n) is the prime preceding A229832(n-1). [Follows from the definitions] - Chris Boyd, Mar 28 2015
Banks, Freiberg, & Turnage-Butterbaugh show that a(n) exists for each n. - Charles R Greathouse IV, Jun 30 2022
LINKS
William D. Banks, Tristan Freiberg, and Caroline L. Turnage-Butterbaugh, Consecutive primes in tuples (2013), arXiv:1311.7003 [math.NT].
Carlos Rivera, Puzzle 11. Distinct, Increasing & Decreasing Gaps, The Prime Puzzles and Problems Connection.
EXAMPLE
a(8)=1319407 is the first prime to be followed by n=8 monotonic increasing prime gaps: 4,8,10,14,16,18,32,34.
a(14)=1472840004017 is the first prime to be followed by n=14 monotonic increasing prime gaps: 2,4,6,8,10,12,14,28,30,38,48,64,66,74.
PROG
(PARI) is(p, k, g=0)=my(q=nextprime(p+1)); if(g>=q-p, 0, if(k>1, is(q, k-1, q-p), q-p>=nextprime(q+1)-q))
a(n)=forprime(p=2, , if(is(p, n), return(p))) \\ Charles R Greathouse IV, Nov 02 2012
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Alan Worley (aw(AT)xiboo.co.uk), Mar 31 2009
EXTENSIONS
a(15) from Giovanni Resta, Apr 19 2016
STATUS
approved