Title:Least such that divides
Statement:Conjecture: exists for any . The existence of for is formalized by requiring that the defining set is nonempty (equivalently, ).
- Zhi-Wei Sun, Sep 25 2014
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05886 [math.NT] · NS.05886v1 for this version |
| Declaration: | OeisA247824.conjecture_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 2eba5991d66517fa2b4ea30dd4400c81133196a551222d99fcedfcb10b3771a0 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/247824.lean |
Formal statement
theorem conjecture_1 (n : ℕ) (hn : 0 < n) :
({ m : ℕ | 0 < m ∧
(m + n) ∣ (Nat.nth Nat.Prime (m - 1) + Nat.nth Nat.Prime (n - 1)) }).NonemptyShow the full Challenge.lean (129 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Least $m$ such that $m + n$ divides $\mathrm{prime}(m) + \mathrm{prime}(n)$
The sequence $a(n)$ is the least positive integer $m$ such that $m + n$ divides
$\mathrm{prime}(m) + \mathrm{prime}(n)$, where $\mathrm{prime}(k)$ denotes the $k$-th prime number
(with $\mathrm{prime}(1) = 2$).
*References:*
- [A247824](https://oeis.org/A247824)
-/
@[expose] public section
namespace OeisA247824
open Nat Set
/-- Least positive integer $m$ such that $m + n$ divides $\mathrm{prime}(m) + \mathrm{prime}(n)$.
If no such $m$ exists (or if $n = 0$), returns $0$. -/
noncomputable def a (n : ℕ) : ℕ :=
if n = 0 then 0 else
sInf { m : ℕ | 0 < m ∧ (m + n) ∣ (Nat.nth Nat.Prime (m - 1) + Nat.nth Nat.Prime (n - 1)) }
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
dsimp [a]
apply IsLeast.csInf_eq
refine ⟨⟨by omega, ?_⟩, fun m hm => hm.1⟩
have h : Nat.nth Nat.Prime 0 + Nat.nth Nat.Prime 0 = 2 * Nat.nth Nat.Prime 0 := by ring
rw [h]
exact dvd_mul_right 2 _
@[category test, AMS 11]
theorem a_2 : a 2 = 5 := by
dsimp [a]
apply IsLeast.csInf_eq
refine ⟨⟨by omega, ?_⟩, fun m hm => ?_⟩
· norm_num [Nat.nth_prime_four_eq_eleven, Nat.nth_prime_one_eq_three]
· by_contra! hlt
have hm1 := hm.1
interval_cases m
· revert hm; norm_num [Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three]
· revert hm; norm_num [Nat.nth_prime_one_eq_three]
· revert hm; norm_num [Nat.nth_prime_two_eq_five, Nat.nth_prime_one_eq_three]
· revert hm; norm_num [Nat.nth_prime_three_eq_seven, Nat.nth_prime_one_eq_three]
@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by
dsimp [a]
apply IsLeast.csInf_eq
refine ⟨⟨by omega, ?_⟩, fun m hm => ?_⟩
· norm_num [Nat.nth_prime_four_eq_eleven, Nat.nth_prime_two_eq_five]
· by_contra! hlt
have hm1 := hm.1
interval_cases m
· revert hm; norm_num [Nat.nth_prime_zero_eq_two, Nat.nth_prime_two_eq_five]
· revert hm; norm_num [Nat.nth_prime_one_eq_three, Nat.nth_prime_two_eq_five]
· revert hm; norm_num [Nat.nth_prime_two_eq_five]
· revert hm; norm_num [Nat.nth_prime_three_eq_seven, Nat.nth_prime_two_eq_five]
@[category test, AMS 11]
theorem a_4 : a 4 = 5 := by
dsimp [a]
apply IsLeast.csInf_eq
refine ⟨⟨by omega, ?_⟩, fun m hm => ?_⟩
· norm_num [Nat.nth_prime_four_eq_eleven, Nat.nth_prime_three_eq_seven]
· by_contra! hlt
have hm1 := hm.1
interval_cases m
· revert hm; norm_num [Nat.nth_prime_zero_eq_two, Nat.nth_prime_three_eq_seven]
· revert hm; norm_num [Nat.nth_prime_one_eq_three, Nat.nth_prime_three_eq_seven]
· revert hm; norm_num [Nat.nth_prime_two_eq_five, Nat.nth_prime_three_eq_seven]
· revert hm; norm_num [Nat.nth_prime_three_eq_seven]
@[category test, AMS 11]
theorem a_5 : a 5 = 2 := by
dsimp [a]
apply IsLeast.csInf_eq
refine ⟨⟨by omega, ?_⟩, fun m hm => ?_⟩
· norm_num [Nat.nth_prime_one_eq_three, Nat.nth_prime_four_eq_eleven]
· by_contra! hlt
have hm1 := hm.1
interval_cases m
· revert hm; norm_num [Nat.nth_prime_zero_eq_two, Nat.nth_prime_four_eq_eleven]
/--
Conjecture: $a(n)$ exists for any $n > 0$.
The existence of $a(n)$ for $n > 0$ is formalized by requiring that the defining set is nonempty
(equivalently, $0 < a(n)$).
- _Zhi-Wei Sun_, Sep 25 2014
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 0 < n) :
({ m : ℕ | 0 < m ∧
(m + n) ∣ (Nat.nth Nat.Prime (m - 1) + Nat.nth Nat.Prime (n - 1)) }).Nonempty := by
sorry
/--
Conjecture: $a(n) < n(n-1)$ for all $n > 2$.
- _Zhi-Wei Sun_, Sep 25 2014
Disproved by Khai-Hoan Nguyen-Dang (Oct 30 2026), who found the counterexample
$n = 1322164$, for which $a(1322164) = 2636932401176 > 1748116320732 = 1322164 \cdot 1322163$.
-/
@[category research solved, AMS 11]
theorem conjecture_2 : ¬ ∀ n : ℕ, 2 < n → a n < n * (n - 1) := by
sorry
end OeisA247824
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA247824.conjecture_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-247824 nosorry submit oeis-247824 nosorry/oeis-247824/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture-2 — known result
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.