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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Number of 0<k<n0 < k < n such that π(kn)\pi(kn) is prime · a_3

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05742 [math.NT] · NS.05742v1 for this version
Declaration:OeisA237578.a_3
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:bb0dc6d918019ce8df7095303c35340e8d8cbb6078aa23543eeb77e0f406fc12
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/237578.lean

Formal statement

theorem a_3 : a 3 = 2
Show the full Challenge.lean (80 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Number of $0 < k < n$ such that $\pi(kn)$ is prime

Let $\pi$ denote the prime counting function. The sequence $a(n)$ counts the number of integers
$0 < k < n$ such that $\pi(kn)$ is prime.

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

@[expose] public section

namespace OeisA237578

/-- $a(n)$ is the number of integers $0 < k < n$ such that $\pi(k \cdot n)$ is prime. -/
def a (n : ℕ) : ℕ :=
  ∑ k ∈ Finset.Ico 1 n,
    if (Nat.primeCounting (k * n)).Prime 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 = 0 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 2 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by decide

@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by decide

/--
Conjecture: $a(n) > 0$ for all $n > 2$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 2 < n) : 0 < a n := by
  sorry

/--
and $a(n) = 1$ only for $n = 5, 8, 13$.
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) :
    a n = 1 ↔ n = 5 ∨ n = 8 ∨ n = 13 := by
  sorry

/--
Moreover, for each $n = 1, 2, 3, \dots$, there is a positive integer $k < 3\sqrt{n} + 3$ with
$\pi(kn)$ prime.
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 1 ≤ n) :
    ∃ k : ℕ, 0 < k ∧ (k : ℝ) < 3 * Real.sqrt (n : ℝ) + 3 ∧
      (Nat.primeCounting (k * n)).Prime := by
  sorry

end OeisA237578

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA237578.a_3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-237578--a-3      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-237578--a-3
nosorry submit oeis-237578--a-3 nosorry/oeis-237578--a-3/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.