Math 2.0

Number theory Proof

Proof of Euler's theorem by rearrangement

Builds on Euler's totient functionCoprime integersCongruence modulo nDivisibilityModular multiplicative inverseExistence of inverses modulo nDivision algorithmCongruence is compatible with multiplication

Proof

  1. Let nn be a positive integer and let aa be an integer coprime to nn. Let RR be the set of integers rr with 1≤r≤n1 \le r \le n and gcd⁡(r,n)=1\gcd(r, n) = 1.
  2. By the definition of Euler's totient function, RR has φ(n)\varphi(n) elements.
  3. By the existence of inverses modulo n, an integer is coprime to nn if and only if it has a modular multiplicative inverse modulo nn. Let xx be an inverse of aa, so ax≡1(modn)a x \equiv 1 \pmod n.
  4. Let r∈Rr \in R, and let yy be an inverse of rr. By compatibility with multiplication, (ar)(xy)=(ax)(ry)≡1⋅1=1(modn)(a r)(x y) = (a x)(r y) \equiv 1 \cdot 1 = 1 \pmod n.
  5. By the division algorithm, ar=qn+ta r = q n + t with 0≤t<n0 \le t < n. Let s(r)=ts(r) = t if t>0t > 0, and s(r)=ns(r) = n if t=0t = 0. Then 1≤s(r)≤n1 \le s(r) \le n and nn divides ar−s(r)a r - s(r), so s(r)≡ar(modn)s(r) \equiv a r \pmod n.
  6. By steps 4 and 5 and compatibility with multiplication, s(r)(xy)≡(ar)(xy)≡1(modn)s(r) (x y) \equiv (a r)(x y) \equiv 1 \pmod n. So s(r)s(r) has an inverse, and by step 3, s(r)∈Rs(r) \in R.
  7. Let r,r′∈Rr, r' \in R with s(r)=s(r′)s(r) = s(r'). Then ar≡ar′(modn)a r \equiv a r' \pmod n. Multiplying by xx gives (xa)r≡(xa)r′(modn)(x a) r \equiv (x a) r' \pmod n, so r≡r′(modn)r \equiv r' \pmod n by step 3.
  8. Since rr and r′r' lie in {1,…,n}\{ 1, \dots, n \}, their difference has absolute value less than nn. As nn divides it, r=r′r = r'.
  9. By steps 6 to 8, ss is an injective map from the finite set RR to itself. So ss is a bijection of RR, and ∏r∈Rs(r)=∏r∈Rr\prod_{r \in R} s(r) = \prod_{r \in R} r.
  10. Let P=∏r∈RrP = \prod_{r \in R} r. By steps 5 and 9 and compatibility with multiplication, aφ(n)P=∏r∈R(ar)≡∏r∈Rs(r)=P(modn)a^{\varphi(n)} P = \prod_{r \in R} (a r) \equiv \prod_{r \in R} s(r) = P \pmod n.
  11. Each r∈Rr \in R has an inverse yry_r. Let z=∏r∈Ryrz = \prod_{r \in R} y_r. By compatibility with multiplication, Pz=∏r∈R(ryr)≡1(modn)P z = \prod_{r \in R} (r y_r) \equiv 1 \pmod n.
  12. Multiply the congruence of step 10 by zz. This gives aφ(n)(Pz)≡Pz(modn)a^{\varphi(n)} (P z) \equiv P z \pmod n.
  13. By step 11, aφ(n)(Pz)≡aφ(n)(modn)a^{\varphi(n)} (P z) \equiv a^{\varphi(n)} \pmod n and Pz≡1(modn)P z \equiv 1 \pmod n. With step 12, aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n.

Idea

Multiplying the residues coprime to nn by aa only shuffles them, because aa can be undone by its inverse. So the product PP of these residues equals aφ(n)Pa^{\varphi(n)} P modulo nn. Since PP is invertible, we can cancel it.

Reading path

To understand this page from the ground up, read these 30 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the commutativity of addition by induction, Proof of strong induction from ordinary induction, 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.

Show the path as a graph
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptDivisibility, definition, no evidence levelDivisibilitydefinitionMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptCongruence modulo n, definition, no evidence levelCongruence modulo ndefinitionGreatest common divisor, definition, no evidence levelGreatest common divis…definitionSuccessor function, definition, no evidence levelSuccessor functiondefinitionModular multiplicative inverse, definition, no evidence levelModular multiplicativ…definitionProof that congruence is compatible with multiplication, proof, no evidence levelProof that congruence…proofCoprime integers, definition, no evidence levelCoprime integersdefinitionAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementCongruence is compatible with multiplication, statement, no evidence levelCongruence is compati…statementEuler's totient function, definition, no evidence levelEuler's totient funct…definitionProof of the commutativity of addition by induction, proof, no evidence levelProof of the commutat…proofOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionCommutativity of addition, statement, no evidence levelCommutativity of addi…statementProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofStrong induction, statement, no evidence levelStrong inductionstatementProof of the well-ordering principle from strong induction, proof, no evidence levelProof of the well-ord…proofWell-ordering principle, statement, no evidence levelWell-ordering princip…statementProof of the division algorithm, proof, no evidence levelProof of the division…proofDivision algorithm, statement, no evidence levelDivision algorithmstatementProof of Bézout's identity, proof, no evidence levelProof of Bézout's ide…proofBézout's identity, statement, no evidence levelBézout's identitystatementProof of the existence of inverses modulo n, proof, no evidence levelProof of the existenc…proofExistence of inverses modulo n, statement, no evidence levelExistence of inverses…statementProof of Euler's theorem by rearrangement, proof, no evidence levelProof of Euler's theo…proof
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  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. Successor function definition
  9. Modular multiplicative inverse definition
  10. Proof that congruence is compatible with multiplication proof
  11. Coprime integers definition
  12. Addition of natural numbers definition
  13. The successor function is injective statement
  14. Zero is not a successor statement
  15. Congruence is compatible with multiplication statement
  16. Euler's totient function definition
  17. Proof of the commutativity of addition by induction proof
  18. Order on the natural numbers definition
  19. Commutativity of addition statement
  20. Proof of strong induction from ordinary induction proof
  21. Strong induction statement
  22. Proof of the well-ordering principle from strong induction proof
  23. Well-ordering principle statement
  24. Proof of the division algorithm proof
  25. Division algorithm statement
  26. Proof of Bézout's identity proof
  27. Bézout's identity statement
  28. Proof of the existence of inverses modulo n proof
  29. Existence of inverses modulo n statement
  30. Proof of Euler's theorem by rearrangement proof

Where this leads

17 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Euler%27s_theorem, Proofs
About this page
TagDBX26C9SMJ
URIm2://DBX26C9SMJ
Kindproof
WritingW0 stub
MSC11A07
ProvesEuler's theorem
UsesEuler's totient function, Coprime integers, Congruence modulo n, Divisibility, Modular multiplicative inverse, Existence of inverses modulo n, Division algorithm, Congruence is compatible with multiplication
MethodsDirect proof
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.