Title:Euclid-Mullin sequence
Statement:"Does the sequence ... contain every prime? ... [It] was considered by Guy and Nowakowski and later by Shanks, [Wagstaff93] 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 has 180 digits."
- [CrandallPomerance01]
See also [Mullin63].
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.06992 [math.NT] · NS.06992v1 for this version |
| Declaration: | OeisA945.every_prime_occurs |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 9656e23d7061c5ba00f6f87dec4342a941b3cce98e532e3be5ca93e0588ae6dd |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/945.lean |
Formal statement
theorem every_prime_occurs :
∀ p, p.Prime → ∃ n ≥ 1, a n = pShow the full Challenge.lean (96 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Euclid-Mullin sequence
The Euclid-Mullin sequence starts with $a(1) = 2$. Each subsequent term is the smallest prime
factor of one plus the product of all preceding terms. We extend the sequence by $a(0) = 1$ and
write $b(n)$ for the product of the first $n$ official terms.
*References:*
- [A000945](https://oeis.org/A000945)
- [Mullin63] A. A. Mullin,
["Research Problem 8 (ii)"](https://doi.org/10.1090/S0002-9904-1963-11017-4),
*Bull. Amer. Math. Soc.* **69** (1963), p. 737.
- [Wagstaff93] S. S. Wagstaff, Jr.,
["Computing Euclid's primes"](https://oeis.org/A000945/a000945_4.pdf),
*Bull. Institute Combin. Applications* **8** (1993), pp. 23-32.
- [CrandallPomerance01] R. Crandall and C. Pomerance,
*Prime Numbers: A Computational Perspective*, Springer (2001), p. 6.
- A. R. Booker, "A variant of the Euclid-Mullin sequence containing every prime,"
[arXiv:1605.08929](https://arxiv.org/abs/1605.08929), *Journal of Integer Sequences* **19**
(2016), Article 16.6.4.
-/
@[expose] public section
namespace OeisA945
/-- `b n` is the product of the first `n` terms of the Euclid-Mullin sequence. -/
def b : ℕ → ℕ
| 0 => 1
| n + 1 => b n * Nat.minFac (b n + 1)
/-- The Euclid-Mullin sequence, extended by `a 0 = 1`. -/
def a : ℕ → ℕ
| 0 => 1
| n + 1 => Nat.minFac (b n + 1)
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by rfl
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_2 : a 2 = 3 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_3 : a 3 = 7 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_4 : a 4 = 43 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_5 : a 5 = 13 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_6 : a 6 = 53 := by norm_num [a, b]
@[category test, AMS 11]
theorem a_7 : a 7 = 5 := by norm_num [a, b]
/--
"Does the sequence ... contain every prime? ... [It] was considered by Guy and Nowakowski
and later by Shanks, [Wagstaff93] 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) \cdots a(43) + 1$ has 180 digits."
- [CrandallPomerance01]
See also [Mullin63].
-/
@[category research open, question, AMS 11]
theorem every_prime_occurs :
∀ p, p.Prime → ∃ n ≥ 1, a n = p := by
sorry
end OeisA945
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA945.every_prime_occurs with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_every_prime_occurs : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-945 nosorry submit oeis-945 nosorry/oeis-945/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.