when
ProvedOddPerfectNumber.sigma_prime_pow_ne_two_mul_sq_of_six_dvdWrite for the sum-of-divisors function.
Let be an odd prime and let be a natural number with . Then the equation
has no solution in natural numbers .
Equivalently, is never a perfect square when .
Why this is relevant to odd perfect numbers. If is an odd perfect number in Euler form ( prime, , ), then multiplicativity of gives the Euler equation . Since and is odd, one gets , and writing , shows that forces , i.e. . The statement above therefore rules out whenever ; for the special exponents with this covers , in particular the first case .
Proof idea. Writing and , the geometric series identity factors , where is even and divides . Hence becomes
The two quadratic factors are coprime, and each has greatest common divisor with dividing ; since cannot divide both, one of them is coprime to the remaining product and must be a perfect square. That is impossible because and .
import Mathlib open Finset
namespace OddPerfectNumber
theorem sigma_prime_pow_ne_two_mul_sq_of_six_dvd (p k m : ℕ) (hp : p.Prime) (hp2 : p ≠ 2)
(hk : (k + 1) % 6 = 0) :
(∑ d ∈ (p ^ k).divisors, d) ≠ 2 * m ^ 2 := by sorry
end OddPerfectNumber