OFFSET
1,1
COMMENTS
The smallest of three consecutive primes whose sum is equal to 1 plus the sum of two consecutive primes.
EXAMPLE
37, 41, 43 are consecutive primes, 37+41+43 = 121; 59 and 61 are consecutive primes, 59+61+1 = 121. Hence 37 is a term.
19, 23, 29 are consecutive primes, 19+23+29 = 71; 31 and 37 are consecutive primes, 31+37+1 = 69 < 71; 37 and 41 are the next pair of consecutive primes, 37+41+1 = 79 > 71. Hence there are no consecutive primes s and t with s+t+1 = 71 and 19 is not in the sequence.
MAPLE
B:={seq(1+ithprime(k)+ithprime(k+1), k=1..500)}: a:=proc(n) if member(ithprime(n)+ithprime(n+1)+ithprime(n+2), B)=true then ithprime(n) else fi end: seq(a(n), n=1..900); # Emeric Deutsch, Apr 01 2007
PROG
(Magma) [ p: p in PrimesInInterval(3, 1950) | not IsPrime(k) and PreviousPrime(k)+NextPrime(k) eq 2*k where k is (p+NextPrime(p)+NextPrime(NextPrime(p))-1) div 2 ]; /* Klaus Brockhaus, Apr 03 2007 */
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Mar 28 2007
EXTENSIONS
Edited, corrected and extended by Emeric Deutsch and Klaus Brockhaus, Apr 01 2007
STATUS
approved
