login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A124660
a(n) = Sum_{k=1..n-2} ( prime(n+k)/2 + prime(n-k)/2 - prime(n) ).
1
0, 2, -1, 5, 4, 16, 17, 3, 24, 6, 9, 42, 50, 27, 10, 56, 40, 59, 119, 103, 130, 110, 50, 83, 167, 204, 302, 349, 102, 141, 130, 243, 103, 233, 225, 219, 287, 282, 277, 437, 273, 438, 524, 700, 428, 148, 236, 427, 532, 548, 772, 580, 598, 614, 628, 864, 884, 1018, 1274, 1053
OFFSET
3,2
MAPLE
A124660 := proc(n) add( (ithprime(n+k)+ithprime(n-k))/2-ithprime(n), k=1..n-2) ; end proc:
seq(A124660(n), n=3..80) ; # R. J. Mathar, Mar 28 2010
MATHEMATICA
Table[Sum[Prime[n+k]/2+Prime[n-k]/2-Prime[n], {k, n-2}], {n, 3, 62}] (* James C. McMahon, Dec 14 2024 *)
CROSSREFS
Sequence in context: A309976 A257516 A346800 * A217104 A141485 A005605
KEYWORD
sign,easy,changed
AUTHOR
Artur Jasinski, Dec 23 2006
EXTENSIONS
Offset corrected and sequence extended by R. J. Mathar, Mar 28 2010
STATUS
approved