Math 2.0

Number theory Proof

Proof that the order modulo p divides p − 1

Builds on Multiplicative orderFermat's little theoremDivision algorithmPrime numberCoprime integersCongruence is compatible with powersCongruence is compatible with multiplication

Proof

  1. Let pp be a prime number and let aa be an integer with p∤ap \nmid a.
  2. The only positive divisors of pp are 11 and pp, and p∤ap \nmid a. So gcd⁡(a,p)=1\gcd(a, p) = 1, and aa is coprime to pp.
  3. So the multiplicative order k=ord⁡p(a)k = \operatorname{ord}_p(a) is defined. It is the least positive integer with ak≡1(modp)a^k \equiv 1 \pmod p.
  4. By Fermat's little theorem, ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p.
  5. By the division algorithm, there are integers qq and rr with p−1=qk+rp - 1 = qk + r and 0≤r<k0 \le r < k. Here q≥0q \ge 0, because p−1≥0p - 1 \ge 0 and r<kr < k.
  6. Then ap−1=(ak)q⋅ara^{p-1} = (a^k)^q \cdot a^r. Since ak≡1a^k \equiv 1, powers and products of congruences give ap−1≡1q⋅ar=ar(modp)a^{p-1} \equiv 1^q \cdot a^r = a^r \pmod p.
  7. With step 4 this gives ar≡1(modp)a^r \equiv 1 \pmod p.
  8. If r>0r > 0, then rr is a positive integer less than kk with ar≡1(modp)a^r \equiv 1 \pmod p. This contradicts the minimality of kk.
  9. So r=0r = 0, and p−1=qkp - 1 = qk. Hence ord⁡p(a)\operatorname{ord}_p(a) divides p−1p - 1.

Idea

Fermat's little theorem says that the exponent p−1p - 1 brings aa back to 11. Any exponent that does so is a multiple of the order, since the remainder on division by the order would be a smaller such exponent.

Reading path

To understand this page from the ground up, read these 42 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Fermat's little theorem by rearrangement, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof of Euler's theorem by rearrangement, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of inverses modulo n, Proof that congruence is compatible with powers.

  1. Definition by recursion concept
  2. Divisibility definition
  3. Mathematical induction concept
  4. Natural numbers object
  5. Peano axioms concept
  6. Congruence modulo n definition
  7. Greatest common divisor definition
  8. Prime number definition
  9. Successor function definition
  10. Modular multiplicative inverse definition
  11. Proof that congruence is compatible with multiplication proof
  12. Coprime integers definition
  13. Addition of natural numbers definition
  14. The successor function is injective statement
  15. Zero is not a successor statement
  16. Congruence is compatible with multiplication statement
  17. Euler's totient function definition
  18. Proof of the commutativity of addition by induction proof
  19. Order on the natural numbers definition
  20. Proof that congruence is compatible with powers proof
  21. Commutativity of addition statement
  22. Proof of strong induction from ordinary induction proof
  23. Congruence is compatible with powers statement
  24. Strong induction statement
  25. Proof of the well-ordering principle from strong induction proof
  26. Well-ordering principle statement
  27. Proof of the division algorithm proof
  28. Division algorithm statement
  29. Proof of Bézout's identity proof
  30. Bézout's identity statement
  31. Proof of the existence of inverses modulo n proof
  32. Proof of the generalized Euclid's lemma proof
  33. Existence of inverses modulo n statement
  34. Generalized Euclid's lemma statement
  35. Proof of Euler's theorem by rearrangement proof
  36. Proof of Euclid's lemma proof
  37. Euler's theorem statement
  38. Euclid's lemma statement
  39. Multiplicative order definition
  40. Proof of Fermat's little theorem by rearrangement proof
  41. Fermat's little theorem statement
  42. Proof that the order modulo p divides p − 1 proof

Where this leads

5 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Multiplicative_order, Properties
About this page
TagNFGYSXBH72
URIm2://NFGYSXBH72
Kindproof
WritingW0 stub
MSC11A07
ProvesThe order modulo p divides p − 1
UsesMultiplicative order, Fermat's little theorem, Division algorithm, Prime number, Coprime integers, Congruence is compatible with powers, Congruence is compatible with multiplication
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.