Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 4500 articles have referenced us, often saying "we would not have discovered this result without the OEIS".
1,3
Table of n, a(n) for n=1..103.
a(n)=abs(A000290(n)-A113425(n))=abs(A000290(n)-A113426(n)). - Reinhard Zumkeller, Oct 31 2005
n=1: n^2=1 is surrounded by primes {-2,2} and 2 is closer, so a(1)=1; n=11: n^2=121 is between primes {113,127} and closer to 127, thus a(11)=6.
[seq(min(nextprime(i^2)-i^2, i^2-prevprime(i^2)), i=2..256)]; n=1 computed separately.
Cf. A007491, A053001, A058043, A056927, A053000, A051700, A060268-A060269, A060272, A059959, A059790.
Sequence in context: A219254 A072504 A072499 * A209315 A174713 A129985
Adjacent sequences: A060269 A060270 A060271 * A060273 A060274 A060275
nonn
Labos Elemer, Mar 23 2001
approved