Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Chua's Euclidean prime sequence

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Does Chua's sequence contain every prime?

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.05010 [math.NT] · NS.05010v1 for this version
Declaration:OeisA167604.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:1448520c3229b9a66e9d78c26a14f42e2fc3d2b9a753dff98ba85a07e75fc68a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/167604.lean

Formal statement

theorem conjecture :
    ∀ p : ℕ, p.Prime → ∃ n ≥ 1, a n = p
Show the full Challenge.lean (80 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Chua's Euclidean prime sequence

For a product $n$ of the preceding terms, Chua's sequence chooses the least
prime dividing $d + n / d$ for some divisor $d$ of $n$. The open question is
whether every prime occurs.

*References:*
- [OEIS A167604](https://oeis.org/A167604)
- Andrew R. Booker,
  [A variant of the Euclid--Mullin sequence containing every prime](https://arxiv.org/abs/1605.08929)
-/

@[expose] public section

namespace OeisA167604

/-- The least prime occurring among the sums $d + n / d$ for divisors $d$ of $n$.

Taking the least prime factor of the product gives the same minimum and makes the definition
directly executable. -/
def next (n : ℕ) : ℕ :=
  Nat.minFac (∏ d ∈ n.divisors, (d + n / d))

/-- Product of the first $n$ terms of Chua's sequence. -/
def product : ℕ → ℕ
  | 0 => 1
  | n + 1 => product n * next (product n)

/-- Chua's sequence, extended by $a(0) = 1$. -/
def a : ℕ → ℕ
  | 0 => 1
  | n + 1 => next (product n)

@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
  norm_num [a, product, next]

@[category test, AMS 11]
theorem a_2 : a 2 = 3 := by
  norm_num [a, product, next]

@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by
  norm_num [a, product, next,
    show (6 : ℕ).divisors = {1, 2, 3, 6} by decide]

@[category test, AMS 11]
theorem a_4 : a 4 = 11 := by
  norm_num [a, product, next,
    show (6 : ℕ).divisors = {1, 2, 3, 6} by decide,
    show (30 : ℕ).divisors = {1, 2, 3, 5, 6, 10, 15, 30} by decide]

/-- Does Chua's sequence contain every prime? -/
@[category research open, question, AMS 11]
theorem conjecture :
    ∀ p : ℕ, p.Prime → ∃ n ≥ 1, a n = p := by
  sorry

end OeisA167604

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA167604.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-167604
nosorry submit oeis-167604 nosorry/oeis-167604/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.