Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A071917
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A071917 Number of pairs (x,y) where x is even, y is odd, 1<=x<=n, 1<=y<=n and x+y is prime. +0
2
0, 1, 2, 4, 5, 7, 9, 11, 14, 18, 21, 25, 28, 31, 35, 40, 44, 48, 52, 56, 61, 67, 72, 78, 84, 90, 97, 104, 110, 117, 124, 131, 138, 146, 154, 163, 172, 181, 190, 200, 209, 219, 228, 237, 247, 257, 266, 275, 285, 295, 306, 318, 329, 341, 354, 367, 381, 395, 408, 421 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n) = sum over primes p from 3 to 2n-1 of min(p-1, 2n+1-p)/2.

EXAMPLE

a(6)=7: The sums x+y are 2+1, 2+3, 2+5, 4+1, 4+3, 6+1, 6+5.

MATHEMATICA

a[n_] := Sum[If[PrimeQ[p], Min[p-1, 2n+1-p]/2, 0], {p, 3, 2n-1}]

CROSSREFS

Sequence in context: A057352 A156625 A058577 this_sequence A051060 A116650 A140205

Adjacent sequences: A071914 A071915 A071916 this_sequence A071918 A071919 A071920

KEYWORD

easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Jun 13 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Jun 18 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 December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research