Every prime divisor of p^2+p+1 or p^2-p+1 other than 3 is 1 mod 3
ProvedOddPerfectNumber.Kernel.five_cyclotomic_primes_one_mod_threefactorizationnumber-theoryordersperfect-numbers
Let be an odd prime and let be a prime divisor of . Then .
Indeed while , because would force . Since the multiplicative order of modulo is therefore exactly , so by Lagrange's theorem. The same argument applied to , which divides , gives there.
In the two-prime residual this shows that both kernel primes and are , which is the first order-theoretic restriction on the square-free kernel available from the first Dris equation alone.
Preamble
import Mathlib
Formal statement
namespace OddPerfectNumber.Kernel
theorem five_cyclotomic_primes_one_mod_three {p q : Nat} (hp : p.Prime) (hp2 : p != 2)
(hq : q.Prime) (hq3 : q != 3) (hqd : q ∣ p ^ 2 + p + 1) : q % 3 = 1 := by
sorry
end OddPerfectNumber.KernelSource
Mathlib/Data/Nat/Prime/Basic.lean and Mathlib/GroupTheory/OrderOfElement.lean together with the classical order-of-a-unit argument: and give , and Lagrange gives . Uses the accepted children OddPerfectNumber.Kernel.five_cyclotomic_factors_ne_square (648a7dc4) and OddPerfectNumber.Kernel.five_cyclotomic_pair_coprime (dbed225d) for the factor shapes only; it encodes no unproved conjecture.