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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Representations n=k2+mn = k^2 + m (0<k2≤m0 < k^2 \le m) with σ(k2)+ϕ(m)\sigma(k^2) + \phi(m) prime

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 (i): a(n)>0a(n) > 0 for all n>1n > 1.

  • Zhi-Wei Sun
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05616 [math.NT] · NS.05616v1 for this version
Declaration:OeisA233544.conjecture_1
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:e4839c9ef09b13c29e93f06c3375e8fb04ae91a194dda1e1a407078bbe84549a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/233544.lean

Formal statement

theorem conjecture_1 (n : ℕ) (hn : 1 < n) : 0 < a n
Show the full Challenge.lean (97 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Representations $n = k^2 + m$ ($0 < k^2 \le m$) with $\sigma(k^2) + \phi(m)$ prime

Let $\sigma$ denote the sum-of-divisors function and $\phi$ denote Euler's totient function.
The sequence $a(n)$ counts the representations $n = k^2 + m$ ($0 < k^2 \le m$) such that
$\sigma(k^2) + \phi(m)$ is prime.

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

@[expose] public section

namespace OeisA233544

open ArithmeticFunction
open scoped ArithmeticFunction.sigma

/--
Number of ways to write $n = k^2 + m$ with $k > 0$ and $m \ge k^2$ such that
$\sigma(k^2) + \phi(m)$ is prime, where $\sigma(k^2)$ is the sum of all positive divisors of $k^2$,
and $\phi$ is Euler's totient function.
-/
def a (n : ℕ) : ℕ :=
  ∑ k ∈ (Finset.Icc 1 n).filter (fun k => 2 * k ^ 2 ≤ n),
    let m := n - k ^ 2
    if Nat.Prime (σ 1 (k ^ 2) + m.totient) then 1 else 0

@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
  unfold a; simp only [sigma_apply, pow_one]; decide

@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
  unfold a; simp only [sigma_apply, pow_one]; decide

@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
  unfold a; simp only [sigma_apply, pow_one]; decide

@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by
  unfold a; simp only [sigma_apply, pow_one]; decide

@[category test, AMS 11]
theorem a_9 : a 9 = 2 := by
  unfold a; simp only [sigma_apply, pow_one]; decide

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

/--
Conjecture (ii): Any integer $n > 1$ can be written as $k + m$ with $k > 0$ and $m > 0$
such that $\sigma(k)^2 + \phi(m)$ is prime.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 1 < n) :
    ∃ k m : ℕ, 0 < k ∧ 0 < m ∧ n = k + m ∧ Nat.Prime (σ 1 k ^ 2 + m.totient) := by
  sorry

/--
Conjecture (ii): Any integer $n > 1$ can be written as $k + m$ with $k > 0$ and $m > 0$
such that $\sigma(k) + \phi(m)^2$ is prime.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 1 < n) :
    ∃ k m : ℕ, 0 < k ∧ 0 < m ∧ n = k + m ∧ Nat.Prime (σ 1 k + m.totient ^ 2) := by
  sorry

end OeisA233544

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

nosorry fetch oeis-233544
nosorry submit oeis-233544 nosorry/oeis-233544/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.