Title:Partitions with prime · conjecture_3
Statement:Conjecture: If in the definition of is replaced by , then the count is positive for all except for (i.e., ).
- Thomas Ordowski, Nov 03 2012; exceptions noted by Mauro Fiorentini, Sep 22 2023
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05368 [math.NT] · NS.05368v1 for this version |
| Declaration: | OeisA218656.conjecture_3 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 1eb0115b4306f93cb2dbe3c7f63789d46a9ab89854603df1d4a20145607edc66 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/218656.lean |
Formal statement
theorem conjecture_3 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({3, 4, 27, 36, 37, 52} : Set ℕ)) :
∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 8 + (2 * n + 1 - x) ^ 8)Show the full Challenge.lean (148 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Partitions $2n + 1 = x + y$ with $x^4 + y^4$ prime
For $n \ge 1$, $a(n)$ is the number of ways to write $2n + 1$ as $x + y$ with $0 < x < y$ such that
$x^4 + y^4$ is prime.
*References:*
- [A218656](https://oeis.org/A218656)
-/
@[expose] public section
namespace OeisA218656
/-- Number of ways to write $2n + 1$ as $x + y$ with $0 < x < y$ and
$x^4 + y^4$ prime. -/
def a (n : ℕ) : ℕ :=
∑ x ∈ Finset.Icc 1 n,
if Nat.Prime (x ^ 4 + (2 * n + 1 - x) ^ 4) then 1 else 0
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by
have h1 : Nat.Prime 257 := by norm_num
have h2 : Nat.Prime 97 := by norm_num
have hIcc : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide
rw [a, hIcc]
have hcongr :
(∑ x ∈ ({1, 2} : Finset ℕ),
if Nat.Prime (x ^ 4 + (2 * 2 + 1 - x) ^ 4) then 1 else 0) =
∑ x ∈ ({1, 2} : Finset ℕ), 1 := by
refine Finset.sum_congr rfl fun x hx => ?_
fin_cases hx <;> simp [h1, h2]
rw [hcongr]
decide
@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by
have h1 : Nat.Prime 1297 := by norm_num
have h2 : Nat.Prime 641 := by norm_num
have h3 : Nat.Prime 337 := by norm_num
have hIcc : Finset.Icc 1 3 = ({1, 2, 3} : Finset ℕ) := by decide
rw [a, hIcc]
have hcongr :
(∑ x ∈ ({1, 2, 3} : Finset ℕ),
if Nat.Prime (x ^ 4 + (2 * 3 + 1 - x) ^ 4) then 1 else 0) =
∑ x ∈ ({1, 2, 3} : Finset ℕ), 1 := by
refine Finset.sum_congr rfl fun x hx => ?_
fin_cases hx <;> simp [h1, h2, h3]
rw [hcongr]
decide
@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by
have h1 : ¬ Nat.Prime 4097 := by norm_num
have h2 : Nat.Prime 2417 := by norm_num
have h3 : ¬ Nat.Prime 1377 := by norm_num
have h4 : Nat.Prime 881 := by norm_num
have hIcc : Finset.Icc 1 4 = ({1, 2, 3, 4} : Finset ℕ) := by decide
rw [a, hIcc]
have hcongr :
(∑ x ∈ ({1, 2, 3, 4} : Finset ℕ),
if Nat.Prime (x ^ 4 + (2 * 4 + 1 - x) ^ 4) then 1 else 0) =
∑ x ∈ ({1, 2, 3, 4} : Finset ℕ), if x = 2 ∨ x = 4 then 1 else 0 := by
refine Finset.sum_congr rfl fun x hx => ?_
fin_cases hx <;> simp <;> first | exact h1 | exact h2 | exact h3 | exact h4
rw [hcongr]
decide
@[category test, AMS 11]
theorem a_5 : a 5 = 3 := by
have h1 : ¬ Nat.Prime 10001 := by norm_num
have h2 : Nat.Prime 6577 := by norm_num
have h3 : Nat.Prime 4177 := by norm_num
have h4 : Nat.Prime 2657 := by norm_num
have h5 : ¬ Nat.Prime 1921 := by norm_num
have hIcc : Finset.Icc 1 5 = ({1, 2, 3, 4, 5} : Finset ℕ) := by decide
rw [a, hIcc]
have hcongr :
(∑ x ∈ ({1, 2, 3, 4, 5} : Finset ℕ),
if Nat.Prime (x ^ 4 + (2 * 5 + 1 - x) ^ 4) then 1 else 0) =
∑ x ∈ ({1, 2, 3, 4, 5} : Finset ℕ), if x = 2 ∨ x = 3 ∨ x = 4 then 1 else 0 := by
refine Finset.sum_congr rfl fun x hx => ?_
fin_cases hx <;> simp <;> first | exact h1 | exact h2 | exact h3 | exact h4 | exact h5
rw [hcongr]
decide
/--
Conjecture: $a(n) > 0$ for all $n \ge 1$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 1 ≤ n) : 0 < a n := by
sorry
/--
Conjecture: If $x^4 + y^4$ in the definition of $a(n)$ is
replaced by $x^2 + y^2$, then the count is positive for all $n \ge 1$.
- _Thomas Ordowski_, Nov 03 2012
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 1 ≤ n) :
∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 2 + (2 * n + 1 - x) ^ 2) := by
sorry
/--
Conjecture: If $x^4 + y^4$ in the definition of $a(n)$ is replaced by $x^8 + y^8$, then the count
is positive for all $n \ge 1$ except for $2n + 1 \in \{7, 9, 55, 73, 75, 105\}$
(i.e., $n \in \{3, 4, 27, 36, 37, 52\}$).
- _Thomas Ordowski_, Nov 03 2012; exceptions noted by _Mauro Fiorentini_, Sep 22 2023
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({3, 4, 27, 36, 37, 52} : Set ℕ)) :
∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 8 + (2 * n + 1 - x) ^ 8) := by
sorry
/--
Conjecture: If $x^4 + y^4$ in the definition of $a(n)$ is replaced by $x^{16} + y^{16}$, then the
count is positive for all $n \ge 1$ except for $2n + 1 \in \{5, 9\}$ (i.e., $n \in \{2, 4\}$).
- _Thomas Ordowski_, Nov 03 2012; exceptions noted by _Mauro Fiorentini_, Sep 22 2023
-/
@[category research open, AMS 11]
theorem conjecture_4 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({2, 4} : Set ℕ)) :
∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 16 + (2 * n + 1 - x) ^ 16) := by
sorry
end OeisA218656
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA218656.conjecture_3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-218656--conjecture-3 nosorry submit oeis-218656--conjecture-3 nosorry/oeis-218656--conjecture-3/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.