cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A069360 Number of prime pairs (p,q), p <= q, such that (p+q)/2 = 2*n.

Original entry on oeis.org

1, 1, 1, 2, 2, 3, 2, 2, 4, 3, 3, 5, 3, 3, 6, 5, 2, 6, 5, 4, 8, 4, 4, 7, 6, 5, 8, 7, 6, 12, 5, 3, 9, 5, 7, 11, 5, 4, 11, 8, 5, 13, 6, 7, 14, 8, 5, 11, 9, 8, 14, 7, 6, 13, 9, 7, 12, 7, 9, 18, 9, 6, 16, 8, 10, 16, 9, 7, 16, 14, 8, 17, 8, 8, 21, 10, 8, 17, 10, 11
Offset: 1

Views

Author

Reinhard Zumkeller, Apr 15 2002

Keywords

Comments

The Goldbach conjecture, if true, would imply a(n) > 0.
Row lengths of table A260689, n > 1. - Reinhard Zumkeller, Nov 17 2015

Examples

			n=8: there are 16 pairs (i,j) with (i+j)/2=n*2=16; only two of them, (3,29) and (13,19), consist of primes, therefore a(8)=2.
		

Crossrefs

Bisection of A002375.
Cf. A082467 (least k such that n-k and n+k are both primes), A134677 (records), A134678 (where records occur), A135146 (index of first occurrence of n).

Programs

Formula

For n > 1: a(n) = #{k | 2*n-k and 2*n+k are prime, 1<=k<=2*n}.
a(n) = Sum_{i=3..2n} isprime(i) * isprime(4n-i) * (sign(4n-i) mod 4), n > 1. - Wesley Ivan Hurt, Dec 18 2016

Extensions

Edited by Klaus Brockhaus, Nov 20 2007
a(1)=1, thanks to Charles R Greathouse IV, who noticed this; b-file adjusted.

A134677 Records in A069360.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 8, 12, 13, 14, 18, 21, 22, 30, 32, 41, 44, 51, 54, 58, 68, 72, 83, 85, 97, 112, 122, 138, 149, 165, 190, 218, 239, 258, 274, 281, 329, 362, 376, 394, 446, 466, 477, 507, 571, 605, 635, 671, 673, 738, 768, 818, 862, 884, 898, 980, 999, 1070, 1083
Offset: 1

Views

Author

Klaus Brockhaus, Nov 20 2007

Keywords

Crossrefs

Cf. A069360, A134678 (where records occur).

A135146 Index of first occurrence of n in A069360.

Original entry on oeis.org

1, 2, 4, 6, 9, 12, 15, 24, 21, 33, 65, 36, 30, 42, 45, 148, 63, 72, 60, 84, 81, 75, 90, 129, 114, 132, 144, 126, 159, 120, 105, 156, 150, 168, 198, 189, 219, 222, 430, 180, 318, 165, 252, 291, 195, 240, 321, 231, 225, 294, 610, 210, 372, 417, 270, 414, 790, 357
Offset: 0

Views

Author

Klaus Brockhaus, Nov 20 2007

Keywords

Comments

a(n) = smallest k > 0 such that there are n prime pairs (p,q), p < q, with (p+q)/2 = 2*k.

Examples

			Number of prime pairs (p,q) with (p+q)/2 = 2*1 is 0, hence a(0) = 1.
9 is the smallest k such that there are four prime pairs (p,q) with (p+q)/2 = 2*k: (5+31)/2 = (7+29)/2 = (13+23)/2 = (17+19)/2 = 18 = 2*9. Hence a(4) = 9.
		

Crossrefs

Cf. A069360, A134677 (records in A069360), A134678 (where records occur in A069360).
Showing 1-3 of 3 results.