Informally, a field is an algebraic structure in which all non-zero elements are invertible. That is, a structure where multiplication has division. Examples of fields include the rationals, the reals and the complex numbers. Interestingly, it also includes precisely when is a prime number.
Reflect.
Look back at your notes. You should be able to prove that any non-zero element of is invertible just by citing the right things.
Note:
Most of this section is discussed informally and actively (i.e. with a lot of me pointing at things) during the lecture. As such, these notes do not cover said discussion.
Fermat’s little theorem
Let be a prime number.
Fermat's little theorem.
If , then .
I prove this by first considering a lemma.
Lemma.
Let and . If , then .
Proofs are informally seen in lectures.
Example.
Say you want to figure out what the number is mod . First, divide and substitute. Then, Fermat’s little theorem solves the problem.
A tiny glimpse into more advanced number theory
Prove these as exercises. You need nothing more than what I covered so far.
Modular logarithms.
If , then . That is, you can reduce the exponent mod to simplify computations.
Modular inverses.
If is not , then the inverse of is .
Modular unit square roots.
If is not , then . That is, is like the “square root” of mod .