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
- Fermat's little theorem · used in an argument or worked solution, passage 3.1
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.
- Divisibility · 1.1
- Greatest common divisor · 1.1
- Division with remainder · 1.1
- Euclid's invariant · 1.2
- Euclidean algorithm · 1.1
- Extended Euclidean invariant · 1.2
- Bézout identity · 1.1
- Congruence · 2.1
- Unit · 2.1
- Unit group · 2.2
- Euler's function · 3.1
- Euler's theorem · 3.1
- 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.