login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162735 An alternating sum of all numbers from prime(n) to prime(n+1). 0
1, 4, 6, 9, 12, 15, 18, 21, 26, 30, 34, 39, 42, 45, 50, 56, 60, 64, 69, 72, 76, 81, 86, 93, 99, 102, 105, 108, 111, 120, 129, 134, 138, 144, 150, 154, 160, 165, 170, 176, 180, 186, 192, 195, 198, 205, 217, 225, 228, 231, 236, 240, 246, 254, 260, 266, 270, 274, 279 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Without the initial term, identical to A024675, cf. formula. Except for the initial terms, also the same as A162800. - M. F. Hasler, Jun 01 2013
LINKS
FORMULA
a(n) = sum_{j= A000040(n).. A000040(n+1)} (-1)^(j+1)*j = A001057(A000040(n+1))-A001057(A000040(n)-1).
{1} U A024675.
EXAMPLE
a(1) = 1 = -2+3. a(2) = 4=3-4+5. a(3) = 6 =5-6+7. a(4) = 9 = 7-8+9-10+11.
CROSSREFS
Sequence in context: A079255 A171845 A157124 * A024675 A274135 A163656
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by R. J. Mathar, Sep 23 2009
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:16 EDT 2024. Contains 371967 sequences. (Running on oeis4.)