OFFSET
4,5
COMMENTS
It looks like a(n) >= 0 for all n >= 4.
If (n,n+2) are twin primes, then a(n) = 0 and a(n+1) = 0.
Partial sums of b(k) = prevprime(k) + nextprime(k) - 2*k; b(k) = 0 for A145025.
EXAMPLE
a(4) = (3 + 5)/2 - 4 = 0;
a(5) = (3 + 5)/2 - 4 + (3 + 7)/2 - 5 = 0.
MATHEMATICA
Array[Sum[Total[NextPrime[k, {-1, 1}]]/2 - k, {k, 4, #}] &, 92, 4] (* Michael De Vlieger, Apr 10 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Apr 07 2020
STATUS
approved