Fermat's little theorem and congruence equationsEdexcel A-Level Further Maths: Revision notes
Section 1
Fermat's little theorem
Fermat's little theorem: if is prime and , then An equivalent form is for every integer . The proof is not required. Example: , : . Check: , so as well.
Using Fermat when the modulus is not prime, or when divides . Check both conditions first.
Section 2
Reducing large powers
To find : write with . Then . Example: . , so . Example: : and , so . Reduce the base first, then the exponent.
For questions, reduce each power separately, then add and reduce.
Section 3
When does have solutions?
Let . The congruence has a solution if and only if . When it does, there are exactly solutions modulo , and if there is a unique solution modulo . Examples: has no solution (). : , so solutions modulo ().
Stating there is a unique solution when . There are solutions modulo .
Section 4
Multiplicative inverses and Bezout
If , Bezout gives , so : is the multiplicative inverse of modulo . Find it with the Euclidean algorithm and back substitution. Example: , , , so and the inverse of modulo is . Check: . To solve , multiply by the inverse: gives .
Substitute your answer back into the original congruence to check it.
Section 5
Solving when
If divides , divide , and by to get , which has and a unique solution . The solutions modulo are . Example: . , so . The inverse of is , so . The solutions are modulo .
Dividing and by but leaving the modulus as . The modulus must be divided too.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Fermat's little theorem and congruence equations
- Work modulo , which is prime.Find the remainder when is divided by .2 marks
- Linear congruences of the form are to be solved for integers .Solve .2 marks
- Consider the numbers and .Use the Euclidean algorithm to show that and are coprime.3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).