Title:Conjectures associated with A100474
Statement:After , is there another prime?
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.04422 [math.NT] · NS.04422v1 for this version |
| Declaration: | OeisA100474.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | b9d21529f93f1a408d4fd08833074af3f77a43b3815b8faf4022a8c9626cda01 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/100474.lean |
Formal statement
theorem conjecture : ∃ n > 2, (a n).PrimeShow the full Challenge.lean (166 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Conjectures associated with A100474
$a(1) = 1$; $a(n)$ is the smallest integer such that $a(n) + a(n-1)$ has the first $n$ distinct
prime factors not used before in this construction.
*References:*
- [A100474](https://oeis.org/A100474)
-/
@[expose] public section
namespace OeisA100474
/-- The $n$-th triangular number. -/
def triangular (n : ℕ) : ℕ := n * (n + 1) / 2
/-- The primary defining sequence `a`. -/
noncomputable def a : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 =>
(Finset.Ico (triangular (n + 1) - 1) (triangular (n + 2) - 1)).prod (Nat.nth Nat.Prime) -
a (n + 1)
@[category API, AMS 11]
lemma nth_prime_five : Nat.nth Nat.Prime 5 = 13 := by
have h1 : (13).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_six : Nat.nth Nat.Prime 6 = 17 := by
have h1 : (17).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_seven : Nat.nth Nat.Prime 7 = 19 := by
have h1 : (19).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_eight : Nat.nth Nat.Prime 8 = 23 := by
have h1 : (23).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_nine : Nat.nth Nat.Prime 9 = 29 := by
have h1 : (29).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_ten : Nat.nth Nat.Prime 10 = 31 := by
have h1 : (31).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_eleven : Nat.nth Nat.Prime 11 = 37 := by
have h1 : (37).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_twelve : Nat.nth Nat.Prime 12 = 41 := by
have h1 : (41).Prime := by decide
exact Nat.nth_count h1
@[category API, AMS 11]
lemma nth_prime_thirteen : Nat.nth Nat.Prime 13 = 43 := by
have h1 : (43).Prime := by decide
exact Nat.nth_count h1
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by rfl
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 5 := by
change (Finset.Ico 0 2).prod (Nat.nth Nat.Prime) - a 1 = 5
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
simp only [Finset.Ico_self, Finset.prod_empty, one_mul]
rw [Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three]
rfl
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 380 := by
change (Finset.Ico 2 5).prod (Nat.nth Nat.Prime) - a 2 = 380
rw [a_2]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
simp only [Finset.Ico_self, Finset.prod_empty, one_mul]
rw [Nat.nth_prime_two_eq_five, Nat.nth_prime_three_eq_seven, Nat.nth_prime_four_eq_eleven]
rfl
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 96197 := by
change (Finset.Ico 5 9).prod (Nat.nth Nat.Prime) - a 3 = 96197
rw [a_3]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
simp only [Finset.Ico_self, Finset.prod_empty, one_mul]
rw [nth_prime_five, nth_prime_six, nth_prime_seven, nth_prime_eight]
rfl
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 58546472 := by
change (Finset.Ico 9 14).prod (Nat.nth Nat.Prime) - a 4 = 58546472
rw [a_4]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
rw [Finset.prod_Ico_succ_top (by decide)]
simp only [Finset.Ico_self, Finset.prod_empty, one_mul]
rw [nth_prime_nine, nth_prime_ten, nth_prime_eleven, nth_prime_twelve, nth_prime_thirteen]
rfl
/--
After $a(2) = 5$, is there another prime?
-/
@[category research open, question, AMS 11]
theorem conjecture : ∃ n > 2, (a n).Prime := by
sorry
def next_semiprime.answer : ℕ :=
3852669607062814427999374038085094563026983841699038416757537720951140990693348082633155462564082456461927363575765861495986901576629
set_option linter.style.formal_proof_palomar false in
/--
What is the next semiprime in the sequence after $a(11)$?
-/
@[category research solved, question value, AMS 11,
formal_proof using lean4 at
"https://github.com/KitaKen1/oeis-a100474-next-semiprime/blob/d7781751918e63fd1268b15525bf9554c92fdd4d/lean/OeisA100474NextSemiprimeFC.lean#L1285-L1288"]
theorem next_semiprime :
next_semiprime.answer =
a (sInf {n : ℕ | 11 < n ∧ (a n).IsSemiprime}) := by
sorry
end OeisA100474
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA100474.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-100474 nosorry submit oeis-100474 nosorry/oeis-100474/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- next-semiprime — 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.