Title:Partitions with prime · conjecture_4
Statement:Conjecture: where for a prime , are the unique positive integers such that .
- Zhi-Wei Sun
Disproved by Hecke's (1920) equidistribution theorem for Hecke Grossencharacters of , which yields the true limit
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05360 [math.NT] · NS.05360v1 for this version |
| Declaration: | OeisA218585.conjecture_4 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10; accepted critique: up to 100 |
| Statement hash: | d4df48a0a308e84dc151c82542fc4e136f4820c74ec11bc1eeacff04e4cfd61d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/218585.lean |
Formal statement
theorem conjecture_4 :
¬ Filter.atTop.Tendsto
(fun N : ℕ =>
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), ((xp p : ℝ) ^ 2)) /
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), ((yp p : ℝ) ^ 2)))
(nhds (52 / 9 : ℝ))Show the full Challenge.lean (128 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Partitions $n = x + y$ with $x^2 + xy + y^2$ prime
For $n \ge 1$, $a(n)$ is the number of ways to write $n$ as $x + y$ with $0 < x \le y$ such that
$x^2 + xy + y^2$ is prime.
*References:*
- [A218585](https://oeis.org/A218585)
- E. Hecke, "Eine neue Art von Zetafunktionen und ihre Beziehungen zur Verteilung der Primzahlen.
Zweite Mitteilung", Math. Z. **6** (1920), 11–51.
-/
@[expose] public section
namespace OeisA218585
/-- Number of ways to write $n = x + y$ with $0 < x \le y$ and $x^2 + xy + y^2$ prime. -/
def a (n : ℕ) : ℕ :=
∑ x ∈ Finset.Icc 1 (n / 2),
let y := n - x
if Nat.Prime (x ^ 2 + x * y + y ^ 2) then 1 else 0
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide
@[category test, AMS 11]
theorem a_7 : a 7 = 2 := by decide
@[category test, AMS 11]
theorem a_8 : a 8 = 0 := by decide
/-- For a prime $p \equiv 1 \pmod 3$, `xp p` is the unique integer $x > 0$ such that
$p = x^2 + xy + y^2$ with $x > y > 0$ (or $0$ if no such representation exists). -/
def xp (p : ℕ) : ℕ :=
((List.range p).find? fun x =>
(List.range x).any fun y => 0 < y && x ^ 2 + x * y + y ^ 2 == p).getD 0
/-- For a prime $p \equiv 1 \pmod 3$, `yp p` is the unique integer $y > 0$ such that
$p = x^2 + xy + y^2$ with $x > y > 0$ (or $0$ if no such representation exists). -/
def yp (p : ℕ) : ℕ :=
((List.range p).find? fun y =>
0 < y && (List.Ico (y + 1) p).any fun x => x ^ 2 + x * y + y ^ 2 == p).getD 0
/--
Conjecture: $a(n) > 0$ for all $n > 1$ with the only exception $n = 8$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 1 < n) (h8 : n ≠ 8) : 0 < a n := by
sorry
/--
Conjecture: The number of primes of the form $nx + (n - x)^2$
with $0 < x < n / 3$ is positive for $n > 12$.
- _Zak Seidov_, Sep 25 2013
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 12 < n) :
∃ x : ℕ, 0 < x ∧ 3 * x < n ∧ Nat.Prime (n * x + (n - x) ^ 2) := by
sorry
/--
$$\lim_{N \to \infty} \frac{\sum_{p < N, \, p \equiv 1 \pmod 3} x(p)}{\sum_{p < N, \, p \equiv 1 \pmod 3} y(p)} = 1 + \sqrt{3},$$
where for a prime $p \equiv 1 \pmod 3$, $x(p) > y(p) > 0$ are the unique positive integers such
that $p = x(p)^2 + x(p)y(p) + y(p)^2$.
- _Zhi-Wei Sun_
This follows from Hecke's (1920) equidistribution theorem for Hecke Grossencharacters of
$\mathbb{Q}(\sqrt{-3})$ and partial summation with the prime number theorem.
-/
@[category research solved, AMS 11]
theorem conjecture_3 :
Filter.atTop.Tendsto
(fun N : ℕ =>
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), (xp p : ℝ)) /
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), (yp p : ℝ)))
(nhds (1 + Real.sqrt 3)) := by
sorry
/--
Conjecture:
$$\lim_{N \to \infty} \frac{\sum_{p < N, \, p \equiv 1 \pmod 3} x(p)^2}{\sum_{p < N, \, p \equiv 1 \pmod 3} y(p)^2} = \frac{52}{9},$$
where for a prime $p \equiv 1 \pmod 3$, $x(p) > y(p) > 0$ are the unique positive integers such
that $p = x(p)^2 + x(p)y(p) + y(p)^2$.
- _Zhi-Wei Sun_
Disproved by Hecke's (1920) equidistribution theorem for Hecke Grossencharacters of
$\mathbb{Q}(\sqrt{-3})$, which yields the true limit
$$\frac{\int_0^{\pi/6} (\cos\theta - \frac{1}{\sqrt{3}}\sin\theta)^2\,d\theta}{\int_0^{\pi/6} \frac{4}{3}\sin^2\theta\,d\theta} = \frac{2\pi}{2\pi - 3\sqrt{3}} \approx 5.780124 \neq \frac{52}{9}.$$
-/
@[category research solved, AMS 11]
theorem conjecture_4 :
¬ Filter.atTop.Tendsto
(fun N : ℕ =>
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), ((xp p : ℝ) ^ 2)) /
(∑ p ∈ (Finset.range N).filter (fun p => p.Prime ∧ p % 3 = 1), ((yp p : ℝ) ^ 2)))
(nhds (52 / 9 : ℝ)) := by
sorry
end OeisA218585
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA218585.conjecture_4 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_4 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-218585--conjecture-4 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-218585--conjecture-4 nosorry submit oeis-218585--conjecture-4 nosorry/oeis-218585--conjecture-4/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.