Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

σ(pk)=2m2\sigma(p^k) = 2m^2σ(pk)=2m2 forces p≡k≡1(mod16)p \equiv k \equiv 1 \pmod{16}p≡k≡1(mod16)

Proved
OddPerfectNumber.prime_and_exp_mod_sixteen_of_sigma_eq_two_mul_sq

by Gabewhigham · Sep 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

diophantine-equationsdivisor-sumsnumber-theoryperfect-numbers

Write σ(n)=∑d∣nd\sigma(n)=\sum_{d\mid n} dσ(n)=∑d∣n​d for the sum-of-divisors function.

Let ppp be a prime with p≡1(mod4)p \equiv 1 \pmod 4p≡1(mod4) and let kkk be a natural number with k≡1(mod4)k \equiv 1 \pmod 4k≡1(mod4). If

σ(pk)  =  2m2\sigma(p^{k}) \;=\; 2m^{2}σ(pk)=2m2

for some natural number mmm, then necessarily

p≡1(mod16)andk≡1(mod16).p \equiv 1 \pmod{16} \qquad\text{and}\qquad k \equiv 1 \pmod{16}.p≡1(mod16)andk≡1(mod16).

The statement is not vacuous: for p=17p = 17p=17 and k=1k = 1k=1 one has σ(17)=18=2⋅32\sigma(17) = 18 = 2\cdot 3^{2}σ(17)=18=2⋅32, and indeed 17≡1(mod16)17 \equiv 1 \pmod{16}17≡1(mod16) and 1≡1(mod16)1 \equiv 1 \pmod{16}1≡1(mod16); likewise σ(97)=98=2⋅72\sigma(97) = 98 = 2 \cdot 7^{2}σ(97)=98=2⋅72 with 97≡1(mod16)97 \equiv 1 \pmod{16}97≡1(mod16).

Role in the theory of odd perfect numbers. If N=pkm2N = p^{k}m^{2}N=pkm2 is an odd perfect number in Euler form, so that p≡k≡1(mod4)p \equiv k \equiv 1 \pmod 4p≡k≡1(mod4) and p∤mp \nmid mp∤m, the Euler equation σ(pk)σ(m2)=2pkm2\sigma(p^{k})\sigma(m^{2}) = 2p^{k}m^{2}σ(pk)σ(m2)=2pkm2 together with p∤σ(pk)p \nmid \sigma(p^{k})p∤σ(pk) yields natural numbers sss with 2m2=σ(pk)s2m^{2} = \sigma(p^{k})s2m2=σ(pk)s and σ(m2)=pks\sigma(m^{2}) = p^{k}sσ(m2)=pks. One has s=1s = 1s=1 exactly in the extremal situation m2≤pkm^{2} \le p^{k}m2≤pk, and then σ(pk)=2m2\sigma(p^{k}) = 2m^{2}σ(pk)=2m2. The congruences above therefore restrict that extremal situation severely: unless both the special prime and the special exponent are ≡1(mod16)\equiv 1 \pmod{16}≡1(mod16), one must have pk<m2p^{k} < m^{2}pk<m2.

Preamble
import Mathlib
open Finset
Formal statement
namespace OddPerfectNumber

theorem prime_and_exp_mod_sixteen_of_sigma_eq_two_mul_sq (p k m : ℕ) (hp : p.Prime)
    (hp4 : p % 4 = 1) (hk : k % 4 = 1)
    (h : (∑ d ∈ (p ^ k).divisors, d) = 2 * m ^ 2) :
    p % 16 = 1 ∧ k % 16 = 1 := by sorry

end OddPerfectNumber
Source
Elementary consequence of the classical splitting of the Euler equation for odd perfect numbers; the parametrisation 2m^2 = sigma(p^k) s, sigma(m^2) = p^k s is due to J. A. B. Dris, 'The abundancy index of divisors of odd perfect numbers', Journal of Integer Sequences 15 (2012), Article 12.4.4, Section 2.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me