OFFSET
1,4
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
EXAMPLE
For n < 4 there are no such primes, thus a(1)-a(3)=0.
For n=4, 2*4+1 = 9 = 2*3+3, thus a(4)=3.
For n=11, 2*11+1 = 23 = 2*5+13, thus a(11)=13.
MATHEMATICA
Join[{0, 0, 0}, Table[m=3; While[! (PrimeQ[m] && (((n-m)/2) > 2) && PrimeQ[(n-m)/2]), m=m+2]; m, {n, 9, 299, 2}]]
PROG
(Scheme) (define (A103506 n) (let ((ind (A103509 n))) (if (zero? ind) 0 (A000040 ind)))) -- Antti Karttunen, Jun 19 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Lei Zhou, Feb 09 2005
EXTENSIONS
Edited by Antti Karttunen, Jun 19 2007
STATUS
approved