login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077133 Difference between the sum of odd indexed primes and even indexed primes. 1
1, 3, 5, 7, 13, 19, 21, 27, 29, 33, 39, 45, 49, 53, 57, 61, 63, 65, 71, 77, 79, 81, 83, 95, 97, 103, 113, 119, 121, 125, 135, 139, 143, 149, 151, 157, 163, 167, 175, 183, 185, 187, 191, 199, 201, 213, 217, 221, 233, 251, 261, 267, 273, 279, 281, 287, 289, 299 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Some odd numbers such as 11, 17, 23 and 25 never appear.

FORMULA

a(n) = Sum_{i=0..n-1} (p(2i+2)-p(2i+1)).

EXAMPLE

a(2)=3 as a_o(2)=10 and a_e(2)=7

MATHEMATICA

Table[ Sum[ Prime[2i], {i, 1, n}] - Sum[ Prime[2i - 1], {i, 1, n}], {n, 1, 60}]

PROG

(PARI) pc=1; p1s=0; p2s=0; forprime (p=2, 500, pc=3-pc; if (pc==1, p1s=p1s+p, p2s=p2s+p); if (pc==1, print1(p1s-p2s", ")))

CROSSREFS

Sequence in context: A192294 A079481 A075571 * A164642 A120460 A127459

Adjacent sequences:  A077130 A077131 A077132 * A077134 A077135 A077136

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Nov 29 2002

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 30 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 09:00 EST 2012. Contains 205904 sequences.