OFFSET
2,1
COMMENTS
a(1)=2.5 which is not an integer
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
EXAMPLE
a(4)=1 because smallest prime greater than 4^2 is 17, largest prime less than 5^2 is 23 and average of 17 and 23 is 20
MATHEMATICA
Table[Mean[{NextPrime[n^2], NextPrime[(n+1)^2, -1]}], {n, 2, 50}] (* Harvey P. Dale, May 10 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jul 12 2000
STATUS
approved