[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A069879 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of pairs {i,j} with i different from j; 1<=i<=n; 1<= j <=n such that i+j is a prime number.
(history; published version)
#7 by Alois P. Heinz at Fri Sep 29 17:29:06 EDT 2017
STATUS

editing

approved

#6 by Alois P. Heinz at Fri Sep 29 17:28:41 EDT 2017
FORMULA

a(n) = 2 * A071917(n). - Alois P. Heinz, Sep 29 2017

#5 by Alois P. Heinz at Fri Sep 29 17:27:38 EDT 2017
DATA

0, 2, 4, 8, 10, 14, 18, 22, 28, 36, 42, 50, 56, 62, 70, 80, 88, 96, 104, 112, 122, 134, 144, 156, 168, 180, 194, 208, 220, 234, 248, 262, 276, 292, 308, 326, 344, 362, 380, 400, 418, 438, 456, 474, 494, 514, 532, 550, 570, 590, 612, 636, 658, 682, 708, 734

MAPLE

with(numtheory):

b:= proc(n) option remember; `if`(n=0, 0,

b(n-1)+pi(2*n-1)-pi(n))

end:

a:= n-> 2*b(n):

seq(a(n), n=1..70); # Alois P. Heinz, Sep 29 2017

STATUS

approved

editing

#4 by Harvey P. Dale at Fri Jan 23 15:33:32 EST 2015
STATUS

editing

approved

#3 by Harvey P. Dale at Fri Jan 23 15:33:28 EST 2015
MATHEMATICA

Table[2*Count[Subsets[Range[n], {2}], _?(PrimeQ[Total[#]]&)], {n, 50}] (* Harvey P. Dale, Jan 23 2015 *)

STATUS

approved

editing

#2 by Charles R Greathouse IV at Thu Oct 03 09:37:42 EDT 2013
AUTHOR

_Santi Spadaro (spados(AT)katamail.com), _, May 04 2002

Discussion
Thu Oct 03
09:37
OEIS Server: https://oeis.org/edit/global/1989
#1 by N. J. A. Sloane at Fri May 16 03:00:00 EDT 2003
NAME

Number of pairs {i,j} with i different from j; 1<=i<=n; 1<= j <=n such that i+j is a prime number.

DATA

0, 2, 4, 8, 10, 14, 18, 22, 28, 36, 42, 50, 56, 62, 70, 80, 88, 96, 104, 112, 122, 134, 144, 156, 168, 180, 194, 208, 220, 234, 248, 262, 276, 292, 308, 326, 344, 362, 380, 400, 418, 438, 456, 474, 494, 514, 532, 550, 570, 590

OFFSET

1,2

CROSSREFS

Partial sums of 2*A060715(n).

KEYWORD

nonn

AUTHOR

Santi Spadaro (spados(AT)katamail.com), May 04 2002

STATUS

approved