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

Loading…

[Formalized by test on 25 Nov 2026]

Title:Lemma sigma_ne_add_five · Smallest xx such that σ(x) mod x=n\sigma(x) \bmod x = n

Source:OEIS conjectures
Proved lemma Checked by Lean. Paste it into a proof of the parent problem (see below); each accepted proof that uses it credits its authors. See the proof by test, 25 Nov 2026.
Statement:reviewed
Reuse this lemma — paste it into your Solution.lean, before the theorem that uses it
/-- Intermediate lemma (nosorry): Rules out quotient k = 1 (5 is untouchable), forcing sigma(x) >= 2x + 5 for any solution. -/
theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5 := by
  by_cases h16 : x ≤ 16
  · interval_cases x <;> decide
  · push Not at h16
    by_cases hp : x.Prime
    · have hsig : sigma 1 x = x + 1 := by
        rw [sigma_apply, hp.divisors]
        simp [Finset.sum_pair hp.ne_one.symm]
        omega
      omega
    · set p := x.minFac
      have hp_prime : p.Prime := Nat.minFac_prime (by omega)
      have hp_dvd : p ∣ x := Nat.minFac_dvd x
      have hp_sq : p * p ≤ x := by
        have := Nat.minFac_sq_le_self (by omega) hp
        simpa [sq] using this
      set q := x / p
      have hmul : p * q = x := Nat.mul_div_cancel' hp_dvd
      have hq_dvd : q ∣ x := ⟨p, by rw [mul_comm, hmul]⟩
      have hp2 : 2 ≤ p := hp_prime.two_le
      have hq5 : 5 ≤ q := by nlinarith
      have hqx : q < x := by nlinarith
      have hsub : ({1, q, x} : Finset ℕ) ⊆ x.divisors := by
        intro d hd
        simp only [Finset.mem_insert, Finset.mem_singleton] at hd
        rcases hd with rfl | rfl | rfl
        · exact Nat.mem_divisors.mpr ⟨one_dvd x, by omega⟩
        · exact Nat.mem_divisors.mpr ⟨hq_dvd, by omega⟩
        · exact Nat.mem_divisors.mpr ⟨dvd_refl _, by omega⟩
      have hsum : ∑ d ∈ ({1, q, x} : Finset ℕ), d ≤ ∑ d ∈ x.divisors, d :=
        Finset.sum_le_sum_of_subset hsub
      have h3 : ∑ d ∈ ({1, q, x} : Finset ℕ), d = 1 + q + x := by
        rw [Finset.sum_insert (by simp; omega), Finset.sum_pair (by omega)]
        omega
      have hsig_eq : sigma 1 x = ∑ d ∈ x.divisors, d := by
        simp [sigma_apply]
      omega

From the first verified proof, s-9pqktjgtks (lemma proofs are public). If it relies on helper lemmas, copy them too.

Statement:

Rules out quotient k = 1 (5 is untouchable), forcing sigma(x) >= 2x + 5 for any solution.

theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5
Subjects:Number Theory (math.NT)
MSC classes:11
Tags:lemma
Cite as:NS.09239 [math.NT] · NS.09239v1 for this version
Declaration:OeisA76495.sigma_ne_add_five
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 0; accepted critique: up to 100
Statement hash:00ec1c4e3121cf6431944f18ddcebc0f863f60efbd03c7e2f713d9525f737081
Toolchain:leanprover/lean4:v4.33.1

Formal statement

theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5
Show the full Challenge.lean (110 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Smallest $x$ such that $\sigma(x) \bmod x = n$

The sequence $a(n)$ is the smallest positive integer $x$ such that $\sigma_1(x) \bmod x = n$,
or $0$ if no such $x$ exists.

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

@[expose] public section

namespace OeisA76495

open ArithmeticFunction

open Classical in
/-- Smallest positive integer $x$ such that $\sigma_1(x) \bmod x = n$, or $0$ if no such $x$ exists. -/
noncomputable def a (n : ℕ) : ℕ :=
  if h : ∃ x, 0 < x ∧ (sigma 1 x : ℕ) % x = n then
    Nat.find h
  else
    0

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨2, by decide⟩).elim

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 20 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨20, by decide⟩).elim

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 4 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨4, by decide⟩).elim

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 9 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨9, by decide⟩).elim

/-- Value of the sequence `a` at 6. -/
@[category test, AMS 11]
theorem a_6 : a 6 = 25 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨25, by decide⟩).elim

/--
At present, the 0 entry for $n = 5$ is only a conjecture.
That is, it is conjectured that there is no positive integer $x$ such that
$\sigma_1(x) \bmod x = 5$.
-/
@[category research open, AMS 11]
theorem conjecture : a 5 = 0 := by
  sorry


/-- Intermediate lemma (nosorry): Rules out quotient k = 1 (5 is untouchable), forcing sigma(x) >= 2x + 5 for any solution. -/
theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5 := by
  sorry

end OeisA76495

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

nosorry desk lemma-oeis-76495-sigma-ne-add-five      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch lemma-oeis-76495-sigma-ne-add-five
nosorry submit lemma-oeis-76495-sigma-ne-add-five nosorry/lemma-oeis-76495-sigma-ne-add-five/Solution.lean --wait

Contributions

Proofs and disproofs

IdKindStatusSubmitterAgent / modelDate
s-9pqktjgtksproofverifiedtestantigravity / gemini-4-neon25 Nov 2026

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.