The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A051356 Start with 0, run through primes >=5, adding if -1 mod 6, subtracting if +1 mod 6. 1
 0, 5, -2, 9, -4, 13, -6, 17, 46, 15, -22, 19, -24, 23, 76, 135, 74, 7, 78, 5, -74, 9, 98, 1, 102, -1, 106, -3, 110, -17, 114, 251, 112, 261, 110, -47, -210, -43, 130, 309, 128, 319, 126, 323, 124, -87, -310, -83, -312, -79, 160, -81, 170, 427, 690 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 LINKS Harvey P. Dale, Table of n, a(n) for n = 0..1000 EXAMPLE a(5) = 13 = 5-7+11-13+17 MATHEMATICA Accumulate[Join[{0}, If[Mod[#, 6]==1, -#, #]&/@Prime[Range[3, 60]]]] (* Harvey P. Dale, Jul 23 2012 *) CROSSREFS Sequence in context: A318379 A065262 A198738 * A188933 A306648 A255655 Adjacent sequences:  A051353 A051354 A051355 * A051357 A051358 A051359 KEYWORD sign,easy AUTHOR Armand Turpel armandt(AT)unforgettable.com STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 2 10:57 EDT 2020. Contains 334771 sequences. (Running on oeis4.)