OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(32)= 97. Smallest prime greater than 32 is 37 and p(32)=131, largest prime smaller than 32+p(32) or 163 is 157. So (37+157)/2 = 97
MATHEMATICA
Table[(NextPrime[n]+NextPrime[n+Prime[n], -1])/2, {n, 100}] (* Harvey P. Dale, Apr 17 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Avik Roy (avik_3.1416(AT)yahoo.co.in), Jan 22 2009
EXTENSIONS
Corrected by Harvey P. Dale, Apr 16 2013
STATUS
approved