OFFSET
2,1
COMMENTS
Each square > 1 can be written as the average of 2 primes p1 < p2. a(n) gives the greatest prime p1 such that n^2 = (p1 + p2) / 2. The corresponding p2 is provided in A304875.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 2..10000
EXAMPLE
a(2) = 3 because 2^2 = 4 = (3 + 5)/2,
a(7) = 37 because 7^2 = 49 = (37 + 61)/2 and none of the primes p1 = 41, 43 or 47 leads to a prime p2.
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, May 20 2018
STATUS
approved