Title:Number of odd primes between and with
Statement:Conjecture: for all .
- Zhi-Wei Sun, Dec 29 2012
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05121 [math.NT] · NS.05121v1 for this version |
| Declaration: | OeisA185150.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 637d480c8fbacea07ecfe1894320c63d46b44ea20a2ef76c943022995e364b15 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/185150.lean |
Formal statement
theorem conjecture (n : ℕ) (hn : 0 < n) : 0 < a nShow the full Challenge.lean (78 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Number of odd primes between $n^2$ and $(n+1)^2$ with $(n/p) = 1$
$a(n)$ is the number of odd primes $p$ between $n^2$ and $(n+1)^2$ such that the Legendre symbol
$\left(\frac{n}{p}\right) = 1$.
*References:*
- [A185150](https://oeis.org/A185150)
- Z.-W. Sun, "Conjectures involving primes and quadratic forms", arXiv preprint
[arXiv:1211.1588](https://arxiv.org/abs/1211.1588) [math.NT], 2012.-/
@[expose] public section
namespace OeisA185150
/-- Number of odd primes $p \in (n^2, (n+1)^2)$ with $(n/p) = 1$. -/
def a (n : ℕ) : ℕ :=
∑ p ∈ Finset.Ioo (n ^ 2) ((n + 1) ^ 2),
if p.Prime ∧ p ≠ 2 ∧ jacobiSym (n : ℤ) p = 1 then 1 else 0
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by rfl
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
change (if (2).Prime ∧ 2 ≠ 2 ∧ jacobiSym (1 : ℤ) 2 = 1 then 1 else 0) +
((if (3).Prime ∧ 3 ≠ 2 ∧ jacobiSym (1 : ℤ) 3 = 1 then 1 else 0) + 0) = 1
norm_num
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
change (if (5).Prime ∧ 5 ≠ 2 ∧ jacobiSym (2 : ℤ) 5 = 1 then 1 else 0) +
((if (6).Prime ∧ 6 ≠ 2 ∧ jacobiSym (2 : ℤ) 6 = 1 then 1 else 0) +
((if (7).Prime ∧ 7 ≠ 2 ∧ jacobiSym (2 : ℤ) 7 = 1 then 1 else 0) +
((if (8).Prime ∧ 8 ≠ 2 ∧ jacobiSym (2 : ℤ) 8 = 1 then 1 else 0) + 0))) = 1
norm_num
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 2 := by decide +kernel
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 3 := by decide +kernel
/--
Conjecture: $a(n) > 0$ for all $n > 0$.
- _Zhi-Wei Sun_, Dec 29 2012
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 0 < n) : 0 < a n := by
sorry
end OeisA185150
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA185150.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-185150 nosorry submit oeis-185150 nosorry/oeis-185150/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.