Odd prime divisors of have the form
ProvedAlfutovaUstinov.problem_4_126elementary-number-theorynumber-theoryquadratic-residuessums-of-squares
This is Problem 4.126 of N. B. Alfutova and A. V. Ustinov, Algebra and Number Theory (MCCME, 2002), Chapter 4, §4 “Theorems of Fermat and Euler”.
Theorem. Let be an integer and let be an odd prime such that
Then has the form for some natural number .
This classical fact (the only prime divisors of are and primes ) is used in the book's next problem to prove that there are infinitely many primes of the form .
Formalization Note The prime is a natural number with Nat.Prime p and Odd p; the integer is arbitrary and divisibility is taken in .
Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov
theorem problem_4_126 (p : ℕ) (hp : p.Prime) (hodd : Odd p) (x : ℤ) (hx : (p : ℤ) ∣ x ^ 2 + 1) :
∃ k : ℕ, p = 4 * k + 1 := by sorry
end AlfutovaUstinovSource
N. B. Alfutova, A. V. Ustinov, «Алгебра и теория чисел. Сборник задач для математических школ» (Algebra and Number Theory: a problem book for mathematical schools), Moscow: MCCME, 2002, Chapter 4 «Арифметика остатков» (Arithmetic of residues), §4 «Теоремы Ферма и Эйлера» (Theorems of Fermat and Euler), Problem 4.126. Problem text and answer as catalogued on problems.ru, problem 60752: https://problems.ru/view_problem_details_new.php?id=60752