Skip to content

MATH3080 · Method · Chapter 3 · Powers and orders

Fermat test

10 steps of prerequisites below it

For a base a coprime to n, check whether a^{n−1} ≡ 1 (mod n): failure proves n composite, but passing proves nothing, as 341 passes base 2.

Taught in

Builds on

Used by

Everything this builds on, earliest first · 13 steps

Each step comes after its own prerequisites, so reading in this order never needs something you have not met. It is a reading order for these notes, not a diagnosis of what you know.

  1. Divisibility · 1.1
  2. Greatest common divisor · 1.1
  3. Division with remainder · 1.1
  4. Euclid's invariant · 1.2
  5. Euclidean algorithm · 1.1
  6. Extended Euclidean invariant · 1.2
  7. Bézout identity · 1.1
  8. Congruence · 2.1
  9. Unit · 2.1
  10. Unit group · 2.2
  11. Euler's function · 3.1
  12. Euler's theorem · 3.1
  13. Fermat's little theorem · 2.2

Possible roots and a review route need your own answers on these points. None are recorded yet, so none are suggested.

Longest chain down to a starting point

Each step is used by the one above it, across courses where the notes link them. It ends at a point the notes define without another point.

  1. Fermat's little theorem
  2. Euler's theorem
  3. Euler's function
  4. Unit group
  5. Unit
  6. Bézout identity
  7. Euclidean algorithm
  8. Euclid's invariant
  9. Greatest common divisor
  10. Divisibility

Back to the graph →Read the note 3.1 →

Vercel visit statistics and public-page performance measurements each require separate consent. Neither is needed to use the website.

Website function storage (used when needed)

Security, sign-in and your chosen preferences use storage when needed. This is separate from optional statistics.

Withdrawing stops future statistics. The page reloads if analytics code needs unloading. It does not delete data already sent.

Read Cookie and storage details