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

A088430 a(n) = the least positive d such that for p=prime(n), the numbers p+0d, p+1d, p+2d, ..., p+(p-1)d are all primes.

Original entry on oeis.org

1, 2, 6, 150, 1536160080, 9918821194590, 341976204789992332560, 2166703103992332274919550
Offset: 1

Views

Author

Zak Seidov, Sep 30 2003

Keywords

Comments

Problem discussed by Russell E. Rierson: starting with given p, find the least d such that the arithmetic progression p,p+d,p+2d,... contains only primes. Obviously, the maximum number of prime terms is p and to reach that maximum, d must be a multiple of all smaller primes. For example, a(5) is a multiple of 2*3*5*7.
There can be other maximum-length prime progressions starting at p, with larger d. (Zak Seidov found d=4911773580 for p=11.)

Examples

			n AP Last term
--------------
1 2+i 3
2 3+2*i 7
3 5+6*i 29
4 7+150*i 907
5 11+1536160080*i 15361600811
6 13+9918821194590*i 119025854335093
7 17+341976204789992332560*i 5471619276639877320977
8 19+2166703103992332274919550*i 39000655871861980948551919
		

References

  • Paulo Ribenboim, The Little Book of Bigger Primes, Springer-Verlag NY 2004. See pp. 139-140.

Crossrefs

See A113834 for last term in the progression, and A231017 for the 2nd term.

Programs

  • Mathematica
    A088430[n_] := Module[{p, m, d},
       p = Prime[n]; m = Product[Prime[i], {i, 1, n - 1}];
       d = m;
       While[! AllTrue[Table[p + i*d, {i, 1, p - 1}], PrimeQ], d = d + m];
       Return[d];
       ];
    Table[A088430[n], {n, 1, 8}] (* Robert Price, Mar 27 2019 *)

Formula

a(n) = A231017(n) - prime(n). - Jonathan Sondow, Nov 08 2013
a(n) = A061558(prime(n)). - Jens Kruse Andersen, Jun 30 2014
a(n) = A002110(n-1) * A231018(n). - Jeppe Stig Nielsen, Mar 16 2016

Extensions

Edited by Don Reble, Oct 04 2003
a(7) was found by Phil Carmody. - Don Reble, Nov 23 2003
Entry revised by N. J. A. Sloane, Jan 25 2006
a(8) found by Wojciech Izykowski. - Jens Kruse Andersen, Jun 30 2014

A133277 Triangle read by rows: row n gives the arithmetic progression of n primes with minimal final term, cf. A005115.

Original entry on oeis.org

2, 2, 3, 3, 5, 7, 5, 11, 17, 23, 5, 11, 17, 23, 29, 7, 37, 67, 97, 127, 157, 7, 157, 307, 457, 607, 757, 907, 199, 409, 619, 829, 1039, 1249, 1459, 1669, 199, 409, 619, 829, 1039, 1249, 1459, 1669, 1879, 199, 409, 619, 829, 1039, 1249, 1459, 1669, 1879, 2089, 110437, 124297, 138157, 152017, 165877, 179737, 193597, 207457, 221317, 235177, 249037
Offset: 1

Views

Author

N. J. A. Sloane, Oct 17 2007

Keywords

Comments

The first 10 rows (i.e., 55 terms) are the same as for A133276 (where the common distance is minimal), but here T(11,1) = a(56) = 110437 while A133276(11,1) = 60858179. - M. F. Hasler, Jan 02 2020
For any prime p there is a p-AP (arithmetic progression of p primes) starting with p, where the common distance is given by A088430. For n between prime(k-1) and prime(k), there may be an n-AP starting at prime(k) (but not earlier) with a smaller common distance, given in A061558. - M. F. Hasler, Sep 17 2024

Examples

			Triangle begins:
    2;
    2,   3;
    3,   5,   7;
    5,  11,  17,  23;
    5,  11,  17,  23,   29;
    7,  37,  67,  97,  127,  157;
    7, 157, 307, 457,  607,  757,  907;
  199, 409, 619, 829, 1039, 1249, 1459, 1669;
  199, 409, 619, 829, 1039, 1249, 1459, 1669, 1879;
  199, 409, 619, 829, 1039, 1249, 1459, 1669, 1879, 2089;
  ...
		

Crossrefs

For common differences, see A093364. For initial terms, see A113827. For final terms, see A005115.
Differs from A133276 (from T(11,1) = a(56) on).
See also A061558 (distance in earliest n-AP), A088430 (same for primes), A231017 (second term in p-AP starting with p), A061558 (distance of n-AP starting at the smallest possible prime).

Extensions

A-numbers in the Name and Crossrefs sections corrected by Bobby Jacobs, Dec 10 2016
Name edited by M. F. Hasler, Jan 02 2020

A231406 Table read by rows, with n-th row the smallest non-constant p-term arithmetic progression of primes beginning with p = prime(n).

Original entry on oeis.org

2, 3, 3, 5, 7, 5, 11, 17, 23, 29, 7, 157, 307, 457, 607, 757, 907, 11, 1536160091, 3072320171, 4608480251, 6144640331, 7680800411, 9216960491, 10753120571, 12289280651, 13825440731, 15361600811, 13, 9918821194603, 19837642389193, 29756463583783, 39675284778373, 49594105972963, 59512927167553, 69431748362143, 79350569556733, 89269390751323, 99188211945913, 109107033140503, 119025854335093, 17, 341976204789992332577
Offset: 1

Views

Author

Jonathan Sondow, Nov 08 2013

Keywords

Comments

For comments, references, and links, see the crossrefs.

Examples

			Triangle begins:
2 3
3 5 7
5 11 17 23 29
7 157 307 457 607 757 907
11 1536160091 3072320171 4608480251 6144640331 7680800411 9216960491 10753120571 12289280651 13825440731 15361600811
		

Crossrefs

For common differences see A088430, for initial terms see A000040, for 2nd terms see A231017, for last terms see A113834.

Formula

T(n,k) = prime(n) + k*A088430(n), 0 <= k < prime(n), n > 0.

A231018 a(n) = d(n)/p(n-1)# where d(n) > 0 is the common difference of the smallest p-term arithmetic progression of primes beginning with p = p(n) = n-th prime.

Original entry on oeis.org

1, 1, 1, 5, 7315048, 4293861989, 11387819007325752, 4244193265542951705
Offset: 1

Views

Author

Jonathan Sondow, Nov 08 2013

Keywords

Comments

d(n) is the least d > 0 such that p, p+d, p+2d, ..., p+(p-1)d are all prime with p = p(n), and p(n-1)# = A002110(n-1) is a primorial.
d(n) is always a multiple of p(n-1)#.
a(5) and a(6) are due to G. Loh in 1986, and a(7) to Phil Carmody in 2001.
See A088430 and A231017 for more comments, references, links, and examples.

Examples

			Prime(3) = 5 and 5, 11, 17, 23, 29 is the smallest 5-term AP beginning with 5, so a(3) = (11-5)/p(2)# = 6/2*3 = 1.
		

Crossrefs

Formula

a(n) = A088430(n) / A002110(n) = (A231017(n) - prime(n)) / A002110(n).

Extensions

a(8) due to Wojciech Izykowski in 2014 added by Jonathan Sondow, Aug 08 2019
Showing 1-4 of 4 results.