OFFSET
1,3
COMMENTS
Record values of the least g >= 1 such that the first g terms of row n of A088643 [start with n and always append the largest k < n not yet used such that n+k is a prime] constitute the set {n, n-1, ..., n-g+1}, and the next (i.e., (g+1)-th) term of that row equals n-g. - M. F. Hasler, Aug 04 2021
PROG
(PARI) {print1(m=0); for( n=1, oo, my( r=A088643_row(n)); for( g=1, #r-1, if( Set(r[1..g]) == [n-g+1..n] && r[g+1]==n-g, g > m && print1(", "m=g); break)))} \\ M. F. Hasler, Aug 04 2021
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
Revised by Sean A. Irvine, Aug 03 2021
STATUS
approved