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.

A000945 Euclid-Mullin sequence: a(1) = 2, a(n+1) is smallest prime factor of 1 + Product_{k=1..n} a(k).

Original entry on oeis.org

2, 3, 7, 43, 13, 53, 5, 6221671, 38709183810571, 139, 2801, 11, 17, 5471, 52662739, 23003, 30693651606209, 37, 1741, 1313797957, 887, 71, 7127, 109, 23, 97, 159227, 643679794963466223081509857, 103, 1079990819, 9539, 3143065813, 29, 3847, 89, 19, 577, 223, 139703, 457, 9649, 61, 4357
Offset: 1

Views

Author

Keywords

Comments

"Does the sequence ... contain every prime? ... [It] was considered by Guy and Nowakowski and later by Shanks, [Wagstaff 1993] computed the sequence through the 43rd term. The computational problem inherent in continuing the sequence further is the enormous size of the numbers that must be factored. Already the number a(1)* ... *a(43) + 1 has 180 digits." - Crandall and Pomerance
If this variant of Euclid-Mullin sequence is initiated either with 3, 7 or 43 instead of 2, then from a(5) onwards it is unchanged. See also A051614. - Labos Elemer, May 03 2004
Wilfrid Keller informed me that a(1)* ... *a(43) + 1 was factored as the product of two primes on Mar 09 2010 by the GNFS method. See the post in the Mersenne Forum for more details. The smaller 68-digit prime is a(44). Terms a(45)-a(47) were easy to find. Finding a(48) will require the factorization of a 256-digit number. See the b-file for the four new terms. - T. D. Noe, Oct 15 2010
On Sep 11 2012, Ryan Propper factored the 256-digit number by finding a 75-digit factor by using ECM. Finding a(52) will require the factorization of a 335-digit number. See the b-file for the terms a(48) to a(51). - V. Raman, Sep 17 2012
Needs longer b-file. - N. J. A. Sloane, Dec 18 2015
A056756 gives the position of the k-th prime in this sequence for each k. - Jianing Song, May 07 2021
Named after the Greek mathematician Euclid (flourished c. 300 B.C.) and the American engineer and mathematician Albert Alkins Mullin (1933-2017). - Amiram Eldar, Jun 11 2021
In Ribenboim 2004, a wrong value of a(8) is given, 6221271 instead of 6221671. - Stefano Spezia, Mar 27 2025

Examples

			a(5) is equal to 13 because 2*3*7*43 + 1 = 1807 = 13 * 139.
		

References

  • Richard Crandall and Carl Pomerance, Prime Numbers: A Computational Perspective, Springer, NY, 2001; see p. 6.
  • Richard Guy and Richard Nowakowski, Discovering primes with Euclid, Delta (Waukesha), Vol. 5, pp. 49-63, 1975.
  • Paulo Ribenboim, The Little Book of Bigger Primes, Springer-Verlag NY 2004. See p. 5.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • Samuel S. Wagstaff, Jr., Computing Euclid's primes, Bull. Institute Combin. Applications, Vol. 8 (1993), pp. 23-32.

Crossrefs

Programs

  • Maple
    a :=n-> if n = 1 then 2 else numtheory:-divisors(mul(a(i),i = 1 .. n-1)+1)[2] fi: seq(a(n), n=1..15);
    # Robert FERREOL, Sep 25 2019
  • Mathematica
    f[1]=2; f[n_] := f[n] = FactorInteger[Product[f[i], {i, 1, n - 1}] + 1][[1, 1]]; Table[f[n], {n, 1, 46}]
    nxt[{p_,a_}]:=With[{c=FactorInteger[p+1][[1,1]]},{p*c,c}]; Rest[NestList[nxt,{1,2},20][[;;,2]]] (* Harvey P. Dale, Feb 02 2025 *)
  • PARI
    print1(k=2);for(n=2,20,print1(", ",p=factor(k+1)[1,1]);k*=p) \\ Charles R Greathouse IV, Jun 10 2011
    
  • PARI
    P=[];until(,print(P=concat(P,factor(vecprod(P)+1)[1,1]))) \\ Jeppe Stig Nielsen, Apr 01 2024

A093777 a(n) is the smallest prime which, if used to start a Euclid-Mullin sequence (like A000945), the resulting sequence contains the n consecutive primes 2, 3, ..., prime(n).

Original entry on oeis.org

2, 2, 19, 199, 2089, 99109, 1960969, 10129129, 87726649, 4549584049, 328034245549, 20584643748679, 666188861477149, 31395465477725359, 894857713367947339, 434392154438254391389, 17934770256689308411399
Offset: 1

Views

Author

Labos Elemer, May 03 2004

Keywords

Comments

Thanks in part to Dirichlet's theorem, a(n) exists for each n. - Don Reble, Oct 07 2006

Examples

			a(1) = a(2) = 2 because they generate {2,3,7,43,13,...};
a(3) = 19 because it generates {19,2,3,5,571,271,...}, see A051312;
a(4) = 199 because it generates {199,2,3,5,7,23,881,...};
a(5) = 2089 because it generates {2089,2,3,5,7,11,269,...};
a(6) = 99109 because it generates {99109,2,3,5,7,11,13,2976243271,...};
a(7) = 1960969 because it generates {1960969,2,3,5,7,11,13,17,281,47,419,5539788476533581271,37,19,173,...}
		

Crossrefs

Extensions

More terms from Don Reble, Oct 07 2006

A051616 Primes p for which A051614(p) is 3 but are not Sophie Germain primes.

Original entry on oeis.org

17, 47, 71, 107, 137, 167, 197, 227, 257, 263, 317, 347, 401, 449, 467, 557, 569, 587, 599, 617, 647, 677, 701, 797, 827, 839, 857, 863, 881, 887, 929, 947, 971, 977, 1061, 1097, 1181, 1187, 1217, 1259, 1277, 1283, 1307, 1367, 1373, 1427, 1433, 1487, 1493
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A000945, A051309-A051335, A005384 (Sophie Germain primes).

Formula

p values so that F(2*p*F(2*p+1)+1)=3 and 2p+1 is not prime; F(x) is the least prime divisor of x.

Extensions

Name corrected by Sean A. Irvine, Sep 22 2021

A094153 a(n) is least prime p such that 7 is the n-th term in the Euclid-Mullin sequence starting at p, or 0 if no such prime p exists.

Original entry on oeis.org

7, 0, 2, 43, 11, 13, 31, 149, 347, 23, 439, 223, 461, 173, 5, 71, 197, 1153, 191, 307, 1657, 971, 9473, 19, 2399, 1607, 6781, 89, 9187, 281, 23623, 15077, 25579, 17203
Offset: 1

Views

Author

Labos Elemer, May 05 2004

Keywords

Comments

The sequence is not monotonic. Compare to A093882.
Next term exceeds 50000. - Sean A. Irvine, Jan 12 2012

Examples

			a(5)=11 because p=7 first arises in EM at position 5, which is initiated with 11: {11,2,23,3,7,10627,433}; see A051309.
		

Crossrefs

Extensions

Definition clarified, terms corrected and extended by Sean A. Irvine, Apr 15 2011
More terms from Sean A. Irvine, May 22 2011
25579 and 17203 from Sean A. Irvine, Jan 11 2012

A051615 Primes for which A051614 is 3.

Original entry on oeis.org

5, 11, 17, 23, 29, 41, 47, 53, 71, 83, 89, 107, 113, 131, 137, 167, 173, 179, 191, 197, 227, 233, 239, 251, 257, 263, 281, 293, 317, 347, 359, 401, 419, 431, 443, 449, 467, 491, 509, 557, 569, 587, 593, 599, 617, 641, 647, 653, 659, 677, 683, 701, 719, 743
Offset: 1

Views

Author

Keywords

Crossrefs

Formula

Odd p values such that F(2*p*F(2*p+1)+1)=3, where F(x) is the least prime divisor of x.
Showing 1-5 of 5 results.