Factorial Hypergraph: card roots Mod eq two iff
ProvedFactorialHypergraph.card_rootsMod_eq_two_ifffactorial-hypergraph-auxiliary-erdos
ρ(p) = 2 exactly for the primes p ≡ ±1 (mod 5); for the remaining primes
p ≠ 2, 5 one has ρ(p) = 0, so ρ(p) ∈ {0, 2}.
Preamble
import Definitions.Def_FactorialHypergraph_Definitions import Definitions.Def_FactorialHypergraph_QuadraticRoots set_option autoImplicit true open FactorialHypergraph open Finset
Formal statement
theorem FactorialHypergraph.card_rootsMod_eq_two_iff (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2) (hp5 : p ≠ 5) :
(rootsMod p).card = 2 ↔ (p % 5 = 1 ∨ p % 5 = 4) := by sorrySource