OFFSET
2,1
LINKS
James Spahlinger, Table of n, a(n) for n = 2..1000
FORMULA
EXAMPLE
a(2) = 0 - 3 = -3. a(5) = (8+9+10) - 11 = 16.
MATHEMATICA
a[n_] := Total@Range[Prime[n - 1] + 1, Prime[n] - 1] - Prime[n]; Array[a, 50, 2] (* James Spahlinger, Feb 20 2016 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Jason Earls, Apr 10 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Apr 20 2001
STATUS
approved