2

Fermat's Little Theorem

medium25 pts

Statement#

Prove Fermat's Little Theorem:

If pp is a prime number and aa is an integer not divisible by pp, then: ap11(modp)a^{p-1} \equiv 1 \pmod{p}

Required Topics#

  • Prime numbers
  • Modular arithmetic
  • Congruences
  • Multiplicative properties
  • Permutations

Definitions#

Congruence modulo p: ab(modp)a \equiv b \pmod{p} means p(ab)p \mid (a-b).

Relatively prime: gcd(a,p)=1\gcd(a,p) = 1 (which is automatic when pp is prime and pap \nmid a).

Strategy#

  1. Consider the set S={a,2a,3a,,(p1)a}S = \{a, 2a, 3a, \ldots, (p-1)a\}
  2. Show all elements of SS are distinct modulo pp
  3. Therefore, S{1,2,3,,p1}(modp)S \equiv \{1, 2, 3, \ldots, p-1\} \pmod{p} (as sets)
  4. Take the product of all elements
  5. Simplify to get the result

Corollary#

For any integer aa and prime pp: apa(modp)a^p \equiv a \pmod{p}

Solution#

Solution coming soon.

Hints (4)

Topics Needed

fermats-little-theoremmodular-arithmeticprime-numbers

Prerequisites

  • modular-arithmetic
  • congruences
  • group-theory-basics

Statistics

0
Total Attempts
0%
Success Rate
0%
First Try Success
0%
Completion Rate