Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A077133
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A077133 Difference between the sum of odd indexed primes and even indexed primes. +0
2
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; listen)
OFFSET

1,2

COMMENT

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}]

PROGRAM

(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: A106878 A079481 A075571 this_sequence A164642 A120460 A127459

Adjacent sequences: A077130 A077131 A077132 this_sequence 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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research