Title:Number of prime powers strictly between -th prime and -th prime
Statement:It is conjectured that for all .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06879 [math.NT] · NS.06879v1 for this version |
| Declaration: | OeisA80101.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 413dab39992488a58d979079a4083691c0bb74b109ae1863f7791bd33db622f0 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/80101.lean |
Formal statement
theorem conjecture (n : ℕ) : a n ≤ 2Show the full Challenge.lean (78 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Number of prime powers strictly between $n$-th prime and $(n+1)$-th prime
The sequence $a(n)$ is the number of prime powers $k$ strictly between the $n$-th prime $p_n$
and the $(n+1)$-th prime $p_{n+1}$: $p_n < k < p_{n+1}$.
*References:*
- [A080101](https://oeis.org/A080101)-/
@[expose] public section
namespace OeisA80101
open Finset
/-- Number of prime powers strictly between the $n$-th prime and the $(n+1)$-th prime. -/
noncomputable def a (n : ℕ) : ℕ :=
if n = 0 then 0
else
let pn := Nat.nth Nat.Prime (n - 1)
let pn1 := Nat.nth Nat.Prime n
((Ioo pn pn1).filter IsPrimePow).card
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
change ((Ioo (Nat.nth Nat.Prime 0) (Nat.nth Nat.Prime 1)).filter IsPrimePow).card = 0
rw [Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three]
decide +native
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
change ((Ioo (Nat.nth Nat.Prime 1) (Nat.nth Nat.Prime 2)).filter IsPrimePow).card = 1
rw [Nat.nth_prime_one_eq_three, Nat.nth_prime_two_eq_five]
decide +native
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 0 := by
change ((Ioo (Nat.nth Nat.Prime 2) (Nat.nth Nat.Prime 3)).filter IsPrimePow).card = 0
rw [Nat.nth_prime_two_eq_five, Nat.nth_prime_three_eq_seven]
decide +native
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by
change ((Ioo (Nat.nth Nat.Prime 3) (Nat.nth Nat.Prime 4)).filter IsPrimePow).card = 2
rw [Nat.nth_prime_three_eq_seven, Nat.nth_prime_four_eq_eleven]
decide +native
/--
It is conjectured that $a(n) \le 2$ for all $n$.-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) : a n ≤ 2 := by
sorry
end OeisA80101
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA80101.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-80101 nosorry submit oeis-80101 nosorry/oeis-80101/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.