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-10 of 13 results. Next

A055380 Central prime p in the smallest (2n+1)-tuple of consecutive primes that are symmetric with respect to p.

Original entry on oeis.org

5, 18731, 683783, 98303927, 60335249959, 1169769749219, 3945769040699039, 159067808851610657, 6919940122097246597
Offset: 1

Views

Author

Jud McCranie, Jun 23 2000

Keywords

Comments

Least n-tuply balanced primes: primes which are averages of both their immediate neighbors, their second neighbors, their third neighbors, ... and their n-th neighbors.
a(9) <= 6919940122097246597. The solution was found by the BOINC project "SPT test project". - Natalia Makarova, Nov 25 2023
a(n) is the smallest number m such that A346399(m) = 2n + 1. - Ya-Ping Lu, May 12 2024

Examples

			In 5-tuple of consecutive primes (18713, 18719, 18731, 18743, 18749), the primes are symmetric w.r.t. its central prime 18731, since 18713+18749 = 18719+18743 = 2*18731, and this is the smallest such 5-tuple. Hence, a(2)=18731.
Alternatively, the symmetry can be seen from the differences between consecutive primes. For (18713, 18719, 18731, 18743, 18749), the differences are (6,12,12,6).
		

Crossrefs

Programs

  • Mathematica
    Table[i = n + 2;
     While[x = Differences[Table[Prime[k + i], {k, -n, n}]];
    x != Reverse[x], i++]; Prime[i], {n, 3}] (* Robert Price, Oct 12 2019 *)

Formula

a(n) = A151800^(n)(A175309(2n)), i.e., A151800 applied n times on A175309(2n). - Max Alekseyev, Jul 26 2014

Extensions

a(6) from Donovan Johnson, Mar 09 2008
Definition corrected by Max Alekseyev, Jul 29 2014
a(7) from Dmitry Petukhov, added by Max Alekseyev, Nov 03 2014
a(8) from SPT project, added by Dmitry Petukhov, Apr 06 2017
a(9) from SPT project, added by Dmitry Petukhov, Mar 25 2025

A055382 Smallest prime starting a sequence of 2n consecutive odd primes with symmetrical gaps about the center.

Original entry on oeis.org

3, 5, 5, 17, 13, 137, 8021749, 1071065111, 1613902553, 1797595814863, 633925574060671, 22930603692243271, 5179852391836338871, 9648166508472058129
Offset: 1

Views

Author

Jud McCranie, Jun 23 2000

Keywords

Comments

a(13) <= 5179852391836338871. The solution was found by the BOINC project "SPT test project". - Natalia Makarova, Dec 06 2023

Examples

			The first term is 3 since the 2 primes 3, 5 have a gap of 2, which is trivially symmetric about its center.
The second term is 5 since the 4 primes 5, 7, 11, 13 have gaps 2, 4, 2, which is symmetric about its center.
The twelve primes 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193 have gaps 2, 10, 2, 6, 6, 4, 6, 6, 2, 10, 2 - symmetric about the middle, so a(6) = 137.
		

Crossrefs

See A081235 for another version.

Programs

  • Mathematica
    Table[i = 1;
     While[x = Differences[Table[Prime[k + i], {k, 2 n}]];
    x != Reverse[x], i++]; Prime[i + 1], {n, 6}] (* Robert Price, Oct 12 2019 *)

Formula

For n>1, a(n) = A081235(n) = A175309(2n-1).

Extensions

a(10) from Donovan Johnson, Mar 09 2008
Minor edits by N. J. A. Sloane, Apr 02 2010
a(11) from Dmitry Petukhov, added by Max Alekseyev, Aug 08 2014
a(12) from an anonymous participant of the project, added by Max Alekseyev, Jul 21 2015
a(13)-a(14) from SPT test project, added by Dmitry Petukhov, Mar 16 2025

A081235 Smallest prime starting a sequence of 2n consecutive primes with symmetrical gaps about the center.

Original entry on oeis.org

2, 5, 5, 17, 13, 137, 8021749, 1071065111, 1613902553, 1797595814863, 633925574060671, 22930603692243271, 5179852391836338871, 9648166508472058129
Offset: 1

Views

Author

Keywords

Examples

			The first term is 2 since the 2 primes 2, 3 have a gap of 1, which is trivially symmetric about its center.
The second term is 5 since the 4 primes 5, 7, 11, 13 have gaps 2, 4, 2, which is symmetric about its center.
The twelve primes 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193 have gaps 2, 10, 2, 6, 6, 4, 6, 6, 2, 10, 2 - symmetric about the middle, so a(6) = 137.
		

Crossrefs

Programs

  • PARI
    A081235(n) = { my(last=vector(n*=2,i,prime(i)), m, i=Mod(n-2,n)); forprime(p=last[n],default(primelimit), m=last[1+lift(i+2)]+last[1+lift(i++)]=p; for(j=1,n\2,last[1+lift(i-j)]+last[1+lift(i+j+1)]==m||next(2)); return(last[1+lift(i+1)]))} \\ M. F. Hasler, Apr 02 2010

Formula

a(n) = A175309(2n-1) (= A055382(n) for n>1). [M. F. Hasler, Apr 02 2010]
a(n) = A000040(k), where k = least number such that A359440(k+n-1) >= n-1. - Peter Munn, Jan 05 2023

Extensions

a(11) from Dmitry Petukhov, added by Max Alekseyev, Aug 08 2014
a(12) from an anonymous participant of the project, added by Natalia Makarova, Jul 16 2015
a(13)-a(14) from SPT test project, added by Dmitry Petukhov, Mar 16 2025

A266512 Smallest prime starting a (nonsingular) symmetric n-tuplet of the shortest span (=A266511(n)).

Original entry on oeis.org

2, 3, 47, 5, 18713, 7, 12003179, 17, 1480028129, 13, 1542186111157, 41280160361347, 660287401247633, 10421030292115097, 3112462738414697093, 996689250471604163, 258406392900394343851, 824871967574850703732309, 9425346484752129657862217, 824871967574850703732303
Offset: 1

Views

Author

Max Alekseyev, Dec 30 2015

Keywords

Comments

A similar sequence that allows singular symmetric n-tuples is given in A266583.
a(1)-a(10) from Natalia Makarova
a(11)-a(14), a(16) from Dmitry Petukhov
a(15), a(17) from Jaroslaw Wroblewski

Crossrefs

Formula

a(n) = A000040(A266584(n)).

Extensions

a(18) from Jaroslaw Wroblewski
a(20) from Natalia Makarova and Jaroslaw Wroblewski
a(19) from Dmitry Petukhov, Anton Nikonov and Ruslan Vikulov, Jan 24 2025

A266511 Minimal difference between the smallest and largest of n consecutive large primes that form a symmetric n-tuplet as permitted by divisibility considerations.

Original entry on oeis.org

0, 2, 12, 8, 36, 16, 60, 26, 84, 34, 132, 46, 168, 56, 180, 74, 240, 82, 252, 94, 324, 106, 372, 118, 420, 134, 432, 142, 492, 146, 540, 158, 600, 166, 648, 178, 660, 194, 720, 202, 780, 214, 816, 226, 840, 254, 912, 262, 1020, 278
Offset: 1

Views

Author

Max Alekseyev, Dec 30 2015

Keywords

Comments

For the definition of n-tuplet and minimal differences without the symmetry restriction, see A008407. In particular, a(n) >= A008407(n).
An n-tuplet (p(1),...,p(n)) is symmetric if p(k) + p(n+1-k) is the same for all k=1,2,...,n (cf. A175309).
Smallest primes starting a shortest symmetric n-tuplet are given in A266512.
For odd n, a(n) is divisible by 12.

Examples

			For n=3, any shortest symmetric n-tuplet has the form (p, p+6, p+12) and thus a(3)=12.
From _Jon E. Schoenfield_, Jan 05 2016: (Start)
For each n-tuplet (p(1), ..., p(n)) with odd n, let m be its middle prime, i.e., m = p((n+1)/2). Then, since (by symmetry) (p(k) + p(n+1-k))/2 = m for all k = 1..n, we can define the n-tuplet by m and its vector of differences d(j) = m - p(j) for j = 1..(n-1)/2. In other words, given m and d(j) for j = 1..(n-1)/2, the (n-1)/2 primes below m are given by p(j) = m - d(j), and the (n-1)/2 primes above m are given by p(n+1-j) = m + d(j); the difference p(n) - p(1) is thus (m + d(1)) - (m - d(1)) = 2*d(1).
For example, one symmetric 7-tuplet of consecutive primes is (12003179, 12003191, 12003197, 12003209, 12003221, 12003227, 12003239), which can be written as (m-30, m-18, m-12, m, m+12, m+18, m+30) where m=12003209; here we have d(1)=30, d(2)=18, d(3)=12. Among all symmetric 7-tuplets of consecutive primes that satisfy divisibility considerations, the minimal value of d(1) is, in fact, 30, so a(7) = 2*30 = 60.
For n = 3, 5, ..., 29, the lexicographically first vector (d(1), d(2), ..., d((n-1)/2)) permitted by divisibility considerations is as follows:
   n|  1   2   3   4   5   6   7   8   9  10  11  12  13  14
  --+-------------------------------------------------------
   3|  6
   5| 18  12
   7| 30  18  12
   9| 42  30  18  12
  11| 66  60  36  24   6
  13| 84  66  60  36  24   6
  15| 90  84  66  60  36  24   6
  17|120 108  90  78  60  48  42  18
  19|126 120 114  96  84  54  36  30   6
  21|162 150 132 120 108 102  78  48  42  18
  23|186 180 150 144 126  96  84  66  60  54  30
  25|210 186 180 150 144 126  96  84  66  60  54  30
  27|216 210 204 180 126 120 114  96  84  54  36  30   6
  29|246 216 210 204 186 174 144 126  90  84  66  60  24   6
(End)
		

Crossrefs

Extensions

a(1)-a(10) from Natalia Makarova
a(11)-a(14), a(16) from Dmitry Petukhov
a(15) and a(17)-a(18) from Jaroslaw Wroblewski
a(20) from Natalia Makarova and Jaroslaw Wroblewski
a(19), a(21), a(23), a(25), a(27), a(29) from Jon E. Schoenfield, Jan 02 2016, Jan 05 2016
a(22), a(24), a(26), a(28), a(30) from Natalia Makarova, Jul 06 2016
a(31)-a(50) from Vladimir Chirkov, Jul 08 2016

A266583 Smallest prime starting a symmetric n-tuple of consecutive primes of the smallest span (=A266676(n)).

Original entry on oeis.org

2, 2, 3, 5, 18713, 5, 12003179, 17, 1480028129, 13, 1542186111157, 41280160361347, 660287401247633, 10421030292115097, 3112462738414697093, 996689250471604163, 258406392900394343851, 824871967574850703732309, 9425346484752129657862217, 824871967574850703732303
Offset: 1

Views

Author

Max Alekseyev, Jan 01 2016

Keywords

Comments

An n-tuple (p(1),...,p(n)) is symmetric if p(k)+p(n+1-k) is the same for all k=1,2,...,n (cf. A175309).
In contrast to A266512, n-tuples here may be singular and give the complete set of residues modulo some prime. For example, for n=3 we have the symmetric 3-tuple: (3,5,7) = (3,3+2,3+4), but there are no other symmetric 3-tuples of the form (p,p+2,p+4), since one of its elements would be divisible by 3.
For any n, a(n) <= n or a(n) = A266512(n).

Crossrefs

Formula

a(n) = A000040(A266585(n)).

Extensions

a(18)-a(20) added by Dmitry Petukhov, Feb 15 2025

A336967 Prime starting a sequence of 24 consecutive primes with symmetrical gaps about the center.

Original entry on oeis.org

22930603692243271, 34984922852185283, 60960572612579749, 226721453950385059, 301850075265898823, 310402815525745511, 341206644560627711, 357582484287837103, 481408770994035947, 492720459594614777, 528050771271601307, 587950582712698157, 675424273001524577
Offset: 1

Views

Author

Tomáš Brada, Aug 09 2020

Keywords

Crossrefs

Formula

Primes p = prime(k) = A000040(k) such that A359440(k+11) >= 11. - Peter Munn, Jan 09 2023

A336968 Prime starting a sequence of 22 consecutive primes with symmetrical gaps about the center.

Original entry on oeis.org

633925574060671, 2235053194261739, 3693434256575461, 6244996197964523, 7312449941282693, 11768508587048027, 12241378636561883, 12696156429346387, 13388148635660387, 14052415423668901, 18620445306703861, 19802687937976219, 22930603692243341, 23122811970297833
Offset: 1

Views

Author

Tomáš Brada, Aug 09 2020

Keywords

Crossrefs

Formula

Primes p = prime(k) = A000040(k) such that A359440(k+10) >= 10. - Peter Munn, Jan 09 2023

A266585 Smallest m such that prime(m) starts a symmetric n-tuple of consecutive primes of the smallest span (=A266676(n)).

Original entry on oeis.org

1, 1, 2, 3, 2136, 3, 788244, 7, 73780392, 6, 57067140928, 1361665032086, 19953429852608, 290660101635794, 74896929428416952, 24660071077535201, 5620182896687887031
Offset: 1

Views

Author

Max Alekseyev, Jan 01 2016

Keywords

Comments

See A266583 for further comments and the relation to A266584.
A000040(a(n)+n-1) - A000040(a(n)) = A266676(n).

Crossrefs

Formula

a(n) = A000720(A266583(n)).

Extensions

More terms from Max Alekseyev, Jul 24 2019

A266676 Smallest span (difference between the start and end) of a symmetric n-tuple of consecutive primes.

Original entry on oeis.org

0, 1, 4, 8, 36, 14, 60, 26, 84, 34, 132, 46, 168, 56, 180, 74, 240, 82
Offset: 1

Views

Author

Max Alekseyev, Jan 02 2016

Keywords

Comments

An n-tuple (p(1),...,p(n)) is symmetric if p(k)+p(n+1-k) is the same for all k=1,2,...,n (cf. A175309).
In contrast to A266511, n-tuples here may be singular and give the complete set of residues modulo some prime. For example, for n=3 we have the symmetric 3-tuple: (3,5,7) = (3,3+2,3+4) of span a(3)=4, but there are no other symmetric 3-tuples of the form (p,p+2,p+4), since one of its elements would be divisible by 3.
a(n) <= A266511(n).

Crossrefs

The smallest starting primes and their indices of the corresponding tuples are given in A266583 and A266585.
Showing 1-10 of 13 results. Next