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-5 of 5 results.

A079424 A bisection of A024675. Cf. A058296.

Original entry on oeis.org

6, 12, 18, 26, 34, 42, 50, 60, 69, 76, 86, 99, 105, 111, 129, 138, 150, 160, 170, 180, 192, 198, 217, 228, 236, 246, 260, 270, 279, 288, 309, 315, 334, 348, 356, 370, 381, 393, 405, 420, 432, 441, 453, 462, 473, 489, 501, 515, 532, 552, 566, 574, 590, 600, 610, 618, 636
Offset: 1

Views

Author

N. J. A. Sloane, Feb 16 2003

Keywords

A024675 Average of two consecutive odd primes.

Original entry on oeis.org

4, 6, 9, 12, 15, 18, 21, 26, 30, 34, 39, 42, 45, 50, 56, 60, 64, 69, 72, 76, 81, 86, 93, 99, 102, 105, 108, 111, 120, 129, 134, 138, 144, 150, 154, 160, 165, 170, 176, 180, 186, 192, 195, 198, 205, 217, 225, 228, 231, 236, 240, 246, 254, 260, 266, 270, 274, 279, 282, 288, 300
Offset: 1

Views

Author

Keywords

Comments

Sometimes called interprimes.
Where local maxima of A072681 occur: A072681(a(n))=A074927(n+1). - Reinhard Zumkeller, Mar 04 2009
Never prime, for that would contradict the definition. - Jon Perry, Dec 05 2012
A subset of A145025, obtained from that sequence by omitting the primes (which are barycenter of their neighboring primes). - M. F. Hasler, Jun 01 2013
Conjecture: Product_{k=1..n} a(k)/A028334(k+1) is an integer for every natural n. Cf. A352743. - Thomas Ordowski, Mar 31 2022
In contrast to the arithmetic mean, the geometric and the harmonic mean of two consecutive primes is never an integer. What is the first case where either of the two would differ from the arithmetic mean, i.e., this sequence? The existence of such a pair of primes is related to Legendre's conjecture, cf. link to discussion on the math-fun mailing list. - M. F. Hasler, Apr 07 2025

Crossrefs

Cf. A072568, A072569. Bisections give A058296, A079424.
Cf. A373699 (partial sums).

Programs

  • Maple
    seq( ( (ithprime(x)+ithprime(x+1))/2 ),x=2..40);
  • Mathematica
    Plus @@@ Partition[Table[Prime[n], {n, 2, 100}], 2, 1]/2
    ListConvolve[{1, 1}/2, Prime /@ Range[2, 70]] (* Jean-François Alcover, Jun 25 2013 *)
    Mean/@Partition[Prime[Range[2,70]],2,1] (* Harvey P. Dale, Jul 28 2020 *)
  • PARI
    for(X=2,50,print((prime(X)+prime(X+1))/2)) \\ Hauke Worpel (thebigh(AT)outgun.com), May 08 2008
    
  • PARI
    first(n)=my(v=primes(n+2)); vector(n,i,v[i+1]+v[i+2])/2 \\ Charles R Greathouse IV, Jun 25 2013
    
  • Python
    from sympy import prime
    def a(n): return (prime(n + 1) + prime(n + 2)) // 2
    print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jul 11 2017

Formula

a(n) = (prime(n+1)+prime(n+2))/2 = A001043(n+1)/2. - Omar E. Pol, Feb 02 2012
Conjecture: a(n) = ceiling(sqrt(prime(n+1)*prime(n+2))). - Thomas Ordowski, Mar 22 2013 [This requires gaps to be smaller than approximately sqrt(8p) and hence requires a result on prime gaps slightly stronger than that provided by the Riemann hypothesis. - Charles R Greathouse IV, Jul 13 2022]
Equals A145025 \ A006562 = A145025 \ A000040. - M. F. Hasler, Jun 01 2013

A162800 a(n) = n-th grid point that is covered by the zig-zag function for prime numbers such that the grid point is a vertex in the graph of the function.

Original entry on oeis.org

0, 2, 4, 6, 9, 12, 15, 18, 21, 26, 30, 34, 39, 42, 45, 50, 56, 60, 64, 69, 72, 76, 81, 86, 93, 99, 102, 105, 108, 111, 120, 129, 134, 138, 144, 150, 154, 160, 165, 170, 176, 180, 186, 192, 195, 198, 205, 217, 225, 228, 231, 236, 240, 246, 254, 260, 266, 270, 274, 279
Offset: 0

Views

Author

Omar E. Pol, Jul 16 2009

Keywords

Comments

Also {0, 2} together the numbers A024675.
See A162345 for the first differences.

Crossrefs

Programs

  • Mathematica
    Join[{0, 2}, Most[#] + Differences[#]/2] & [Prime[Range[2, 100]]] (* Paolo Xausa, Jun 17 2024 *)

Extensions

Edited by Omar E. Pol, Jul 18 2009

A092163 a(n) = prime(2n) + prime(2n+1).

Original entry on oeis.org

8, 18, 30, 42, 60, 78, 90, 112, 128, 144, 162, 186, 204, 216, 240, 268, 288, 308, 330, 352, 372, 390, 410, 450, 462, 480, 508, 532, 548, 564, 600, 624, 648, 684, 702, 726, 752, 772, 798, 828, 852, 872, 892, 918, 930, 966, 990, 1012, 1044, 1088, 1120, 1140
Offset: 1

Views

Author

Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), Mar 31 2004

Keywords

Examples

			a(1) = 8 because p(2)= 3 and p(3) = 5.
a(2) = 18 because p(4)= 7 and p(5) = 11.
a(3) = 30 because p(6)= 13 and p(7) = 17.
		

Crossrefs

Programs

Formula

a(n) = A001043(2*n). - R. J. Mathar, Apr 20 2009
a(n) = 2*A058296(n+1). - Hugo Pfoertner, Aug 11 2025

Extensions

More terms from Robert G. Wilson v, Apr 22 2004

A162801 Bisection of A162800.

Original entry on oeis.org

0, 4, 9, 15, 21, 30, 39, 45, 56, 64, 72, 81, 93, 102, 108, 120, 134, 144, 154, 165, 176, 186, 195, 205, 225, 231, 240, 254, 266, 274, 282, 300, 312, 324, 342, 351, 363, 376, 386, 399, 414, 426, 436, 446, 459, 465, 483, 495, 506, 522, 544, 560, 570, 582, 596
Offset: 1

Views

Author

Omar E. Pol, Jul 16 2009

Keywords

Comments

Essentially the same as A058296.

Crossrefs

Showing 1-5 of 5 results.