The order of modulo a prime divides
ProvedAlfutovaUstinov.problem_4_114elementary-number-theoryfermat-little-theoremmultiplicative-ordernumber-theory
This is Problem 4.114 of N. B. Alfutova and A. V. Ustinov, Algebra and Number Theory (MCCME, 2002), Chapter 4, §4 “Theorems of Fermat and Euler”.
Let be a prime and let be an integer not divisible by . Let be the least positive integer such that
(the multiplicative order of modulo ).
Theorem. Under these assumptions,
This is the basic link between Fermat's little theorem and the orders of residues modulo a prime; it is the starting point of the theory of primitive roots.
Formalization Note The minimality of is expressed by IsLeast {j : ℕ | 0 < j ∧ a ^ j ≡ 1 [ZMOD p]} k: the number is a positive exponent with , and every positive exponent with satisfies .
Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov
theorem problem_4_114 (p : ℕ) (hp : p.Prime) (a : ℤ) (ha : ¬ (p : ℤ) ∣ a) (k : ℕ)
(hk : IsLeast {j : ℕ | 0 < j ∧ a ^ j ≡ 1 [ZMOD p]} k) : k ∣ p - 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.114. Problem text and answer as catalogued on problems.ru, problem 60740: https://problems.ru/view_problem_details_new.php?id=60740