Title:Representations of with Jacobi symbol constraints
Statement:Conjecture: for all .
- Zhi-Wei Sun, Dec 30 2012
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05174 [math.NT] · NS.05174v1 for this version |
| Declaration: | OeisA191004.conjecture_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 79b9a4470bebf95e92fc400d2c640bfe5a8c809e9cd8438b455c2eec61530379 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/191004.lean |
Formal statement
theorem conjecture_1 (n : ℕ) (hn : 5 < n) : 0 < a nShow the full Challenge.lean (113 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Representations of $n = p + q + (n \bmod 2)q$ with Jacobi symbol constraints
The sequence $a(n)$ counts the number of ways to write $n = p + q + (n \bmod 2)q$, where $p$ is an
odd prime and $q \le n/2$ is a prime such that $\left(\frac{q}{n}\right) = 1$ if $n$ is odd, and
$\left(\frac{(q+1)/2}{n+1}\right) = 1$ if $n$ is even.
*References:*
- [A191004](https://oeis.org/A191004)
- [Conjectures involving primes and quadratic forms](https://arxiv.org/abs/1211.1588)
by *Zhi-Wei Sun*, arXiv:1211.1588 (2012)
-/
@[expose] public section
namespace OeisA191004
/--
Number of ways to write $n = p + q + (n \bmod 2)q$, where $p$ is an odd prime and $q \le n/2$ is a
prime such that $\left(\frac{q}{n}\right) = 1$ if $n$ is odd, and
$\left(\frac{(q+1)/2}{n+1}\right) = 1$ if $n$ is even.
-/
def a (n : ℕ) : ℕ :=
∑ q ∈ Finset.range (n / 2 + 1),
if q.Prime ∧ 2 * q ≤ n then
let p := if n % 2 = 1 then n - 2 * q else n - q
if p.Prime ∧ p ≠ 2 then
if n % 2 = 1 then
if jacobiSym (q : ℤ) n = 1 then 1 else 0
else
if jacobiSym (((q + 1) / 2) : ℤ) (n + 1) = 1 then 1 else 0
else 0
else 0
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 0 := by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 0 := by decide
@[category test, AMS 11]
theorem a_5 : a 5 = 0 := by decide
@[category test, AMS 11]
theorem a_6 : a 6 = 1 := by decide +kernel
@[category test, AMS 11]
theorem a_14 : a 14 = 2 := by decide +kernel
/--
Conjecture: $a(n) > 0$ for all $n > 5$.
- _Zhi-Wei Sun_, Dec 30 2012
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 5 < n) : 0 < a n := by
sorry
/--
Refinement conjecture (odd case): Any odd number $2n+1 > 64$ not among $105, 247, 255, 1105$ can be
written as $p + 2q$, where $p$ and $q$ are primes, and $\left(\frac{q}{p'}\right) = 1$ for any prime
divisor $p'$ of $2n+1$.
- _Zhi-Wei Sun_, Dec 30 2012
-/
@[category research open, AMS 11]
theorem conjecture_2 (m : ℕ) (hm : 64 < m) (hodd : Odd m)
(hnot : m ∉ ({105, 247, 255, 1105} : Finset ℕ)) :
∃ p q : ℕ, p.Prime ∧ q.Prime ∧ m = p + 2 * q ∧
∀ p' ∈ m.primeFactors, jacobiSym (q : ℤ) p' = 1 := by
sorry
/--
Refinement conjecture (even case): Any even number $m = 2n > 8$ not among $32$ and $152$ can be
written as $p + q$, where $p$ and $q \le m/2$ are primes, and
$\left(\frac{(q+1)/2}{p'}\right) = 1$ for any prime divisor $p'$ of $m+1$.
(The OEIS comment writes $q \le n/2$ after renaming the argument of $a(\cdot)$ to $2n$, which is a
slip for $q \le (2n)/2 = n = m/2$, matching the bound in the definition of $a(2n)$ and yielding the
stated exceptional set $\{32, 152\}$.)
- _Zhi-Wei Sun_, Dec 30 2012
-/
@[category research open, AMS 11]
theorem conjecture_3 (m : ℕ) (hm : 8 < m) (heven : Even m)
(hnot : m ∉ ({32, 152} : Finset ℕ)) :
∃ p q : ℕ, p.Prime ∧ q.Prime ∧ m = p + q ∧ q ≤ m / 2 ∧
∀ p' ∈ (m + 1).primeFactors, jacobiSym (((q + 1) / 2) : ℤ) p' = 1 := by
sorry
end OeisA191004
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA191004.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-191004 nosorry submit oeis-191004 nosorry/oeis-191004/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture-2 — open
- conjecture-3 — open
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.