Title:Equal prime counts in adjacent intervals and · a_5
Statement:No informal statement.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05768 [math.NT] · NS.05768v1 for this version |
| Declaration: | OeisA238281.a_5 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | 58c32127dfc01a891a81fb7a9afd1a2ea6a12d3a9ed55a2d4b6a727394eb2e8d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/238281.lean |
Formal statement
theorem a_5 : a 5 = 2Show the full Challenge.lean (97 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Equal prime counts in adjacent intervals $(kn, (k+1)n)$ and $((k+1)n, (k+2)n)$
Let $\pi$ denote the prime counting function. The sequence $a(n)$ counts the number of integers
$0 < k < n$ such that the intervals $(kn, (k+1)n)$ and $((k+1)n, (k+2)n)$ contain the same number
of primes.
*References:*
- [A238281](https://oeis.org/A238281)
-/
@[expose] public section
namespace OeisA238281
/-- $a(n)$ is the number of integers $0 < k < n$ such that the two intervals $(kn, (k+1)n)$ and
$((k+1)n, (k+2)n)$ contain the same number of primes. -/
def a (n : ℕ) : ℕ :=
∑ k ∈ Finset.Ico 1 n,
if Nat.primeCounting ((k + 1) * n) - Nat.primeCounting (k * n) =
Nat.primeCounting ((k + 2) * n) - Nat.primeCounting ((k + 1) * n) 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 = 2 := by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide
@[category test, AMS 11]
theorem a_5 : a 5 = 2 := by decide
/--
Conjecture (i): $a(n) > 0$ for all $n > 1$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 1 < n) : 0 < a n := by
sorry
/--
Conjecture: Moreover, if $n > 1$ is not equal to $8$, then there is a positive integer $k < n$ with
$2k + 1$ prime such that the two intervals $((k-1)n, kn]$ and $(kn, (k+1)n]$ contain the same
number of primes.
OEIS states open intervals, but for $n = 2$ the only candidate is $k = 1$, where the open
interval $(0, 2)$ contains 0 primes while $(2, 4)$ contains 1 prime. Half-open intervals
$((k-1)n, kn]$ match Sun's Mathematica formula `PrimePi[k*n] - PrimePi[(k-1)*n]` and hold for
$n = 2$.
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 1 < n) (h8 : n ≠ 8) :
∃ k : ℕ, 0 < k ∧ k < n ∧ (2 * k + 1).Prime ∧
Nat.primeCounting (k * n) - Nat.primeCounting ((k - 1) * n) =
Nat.primeCounting ((k + 1) * n) - Nat.primeCounting (k * n) := by
sorry
/--
Conjecture (ii): For any integer $n > 4$, there is a positive integer $k < p_n$ such that all the
three intervals $(kn, (k+1)n)$, $((k+1)n, (k+2)n)$, $((k+2)n, (k+3)n)$ contain the same number of
primes, i.e., $\pi(kn)$, $\pi((k+1)n)$, $\pi((k+2)n)$, $\pi((k+3)n)$ form a $4$-term arithmetic
progression.
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 4 < n) :
∃ k : ℕ, 0 < k ∧ k < Nat.nth Nat.Prime (n - 1) ∧
Nat.primeCounting ((k + 1) * n) - Nat.primeCounting (k * n) =
Nat.primeCounting ((k + 2) * n) - Nat.primeCounting ((k + 1) * n) ∧
Nat.primeCounting ((k + 2) * n) - Nat.primeCounting ((k + 1) * n) =
Nat.primeCounting ((k + 3) * n) - Nat.primeCounting ((k + 2) * n) := by
sorry
end OeisA238281
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA238281.a_5 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_5 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-238281--a-5 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-238281--a-5 nosorry submit oeis-238281--a-5 nosorry/oeis-238281--a-5/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.