Title:Smallest such that is prime
Statement:There is a conjecture that the first zero is (which is equivalent to the statement that is composite for ). - T. D. Noe, Feb 25 2011
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06853 [math.NT] · NS.06853v1 for this version |
| Declaration: | OeisA78680.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | e27fe06a57f2dd8826cf90367fe5f7cf238383daff67f81ec0409b29d39063bd |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/78680.lean |
Formal statement
theorem conjecture :
a (2 ^ 16) = 0 ∧ ∀ n : ℕ, 1 ≤ n ∧ n < 2 ^ 16 → a n ≠ 0Show the full Challenge.lean (101 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Smallest $m > 0$ such that $n \cdot 2^m + 1$ is prime
The sequence $a(n)$ is the smallest positive integer $m$ such that $n \cdot 2^m + 1$ is prime,
or $0$ if no such $m$ exists.
*References:*
- [A078680](https://oeis.org/A078680)-/
@[expose] public section
namespace OeisA78680
open Classical in
/-- Smallest $m > 0$ such that $n \cdot 2^m + 1$ is prime, or 0 if no such $m$ exists. -/
noncomputable def a (n : ℕ) : ℕ :=
if h : ∃ m, 0 < m ∧ (n * 2 ^ m + 1).Prime then
Nat.find h
else
0
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
classical
dsimp [a]
split_ifs with h
· rw [Nat.find_eq_iff]
decide +native
· exact (h ⟨1, by decide +native⟩).elim
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
classical
dsimp [a]
split_ifs with h
· rw [Nat.find_eq_iff]
decide +native
· exact (h ⟨1, by decide +native⟩).elim
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
classical
dsimp [a]
split_ifs with h
· rw [Nat.find_eq_iff]
decide +native
· exact (h ⟨1, by decide +native⟩).elim
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by
classical
dsimp [a]
split_ifs with h
· rw [Nat.find_eq_iff]
decide +native
· exact (h ⟨2, by decide +native⟩).elim
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by
classical
dsimp [a]
split_ifs with h
· rw [Nat.find_eq_iff]
decide +native
· exact (h ⟨1, by decide +native⟩).elim
/--
There is a conjecture that the first zero is $n = 65536 = 2^{16}$ (which is equivalent to
the statement that $2^{2^k} + 1$ is composite for $k > 4$). - _T. D. Noe_, Feb 25 2011
-/
@[category research open, AMS 11]
theorem conjecture :
a (2 ^ 16) = 0 ∧ ∀ n : ℕ, 1 ≤ n ∧ n < 2 ^ 16 → a n ≠ 0 := by
sorry
end OeisA78680
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA78680.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-78680 nosorry submit oeis-78680 nosorry/oeis-78680/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.