Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:a(n)=(smallest prime>n2)−n2a(n) = (\text{smallest prime} > n^2) - n^2

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Conjecture: a(n)≤1+ϕ(n)a(n) \le 1 + \phi(n) for n>0n > 0. This improves on Oppermann's conjecture, which says a(n)<na(n) < n.

  • Thomas Ordowski, Dec 17 2014
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.06629 [math.NT] · NS.06629v1 for this version
Declaration:OeisA53000.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:090da0e71a1f0541cc46770e436e29f248a5bb7dcb5f3ae5373cad0506b4285b
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/53000.lean

Formal statement

theorem conjecture (n : ℕ) (hn : 0 < n) : a n ≤ 1 + n.totient
Show the full Challenge.lean (61 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# $a(n) = (\text{smallest prime} > n^2) - n^2$

The difference between the smallest prime strictly greater than $n^2$ and $n^2$.

*References:*
- [A053000](https://oeis.org/A053000)-/

@[expose] public section

namespace OeisA53000

/-- $a(n) = (\text{smallest prime} > n^2) - n^2$. -/
noncomputable def a (n : ℕ) : ℕ :=
  (sInf {p | Nat.Prime p ∧ n ^ 2 < p}) - n ^ 2

@[category test, AMS 11]
theorem a_0 : a 0 = 2 := tsub_eq_of_eq_add <| IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := tsub_eq_of_eq_add <| IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 1 := tsub_eq_of_eq_add <| IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 2 := tsub_eq_of_eq_add <| IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 1 := tsub_eq_of_eq_add <| IsLeast.csInf_eq <| by decide

/--
Conjecture: $a(n) \le 1 + \phi(n)$ for $n > 0$. This improves on Oppermann's conjecture, which says
$a(n) < n$.
- Thomas Ordowski, Dec 17 2014
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 0 < n) : a n ≤ 1 + n.totient := by
  sorry

end OeisA53000

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA53000.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-53000
nosorry submit oeis-53000 nosorry/oeis-53000/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.