Contents · 0% complete
Number Theory
Euclid's algorithm finds by repeated division, and running it backwards writes the gcd as (Bézout). In modular arithmetic we work with remainders: means . Fermat: for prime , .
Learning objectives
- Use the Euclidean algorithm and Bézout's identity.
- Calculate with congruences and solve linear congruences.
- Use Fermat's little theorem for large powers.
- Explain divisibility tests.
It's 9 o'clock. What time will it be in 100 hours?
Core idea
If it's 9 o'clock now, what time is it in 100 hours? You don't need to count: only the remainder after dividing by 24 matters. Arithmetic with remainders turns huge calculations into small ones, and it secures every online payment.
Euclid's algorithm finds by repeated division; reversing it writes . Congruences mod let us add and multiply remainders, and Fermat's little theorem cuts large powers down to size.
1. Euclid's algorithm and Bézout
- Division algorithm, .
- A common divisor of divides .
- And conversely.
Find and integers with .
- Goal
- gcd and .
- Strategy
- Divide down, then substitute back up.
- First division.
- Continue until remainder .
- Start from the last non-zero remainder.
- Replace .
- Replace .
2. Congruences and Fermat
- where
- the modulus.
Solve .
- Goal
- mod 7.
- Strategy
- Multiply by the inverse of 3.
- So .
- Multiply both sides by .
- Multiplying by just reorders the non-zero remainders ( prime, ).
- Multiply all elements of each set.
- is coprime to , so cancel.
Find the remainder when is divided by .
- Goal
- A remainder.
- Strategy
- Find a small power .
- Even quicker than Fermat's .
- .
- Replace by .
Each test is just a congruence for 10.
Find without a calculator.
Summary
- .
- Back-substitute for Bézout.
- Solve congruences with inverses.
- Fermat: .
- Congruent
- Same remainder on division by n.
- Coprime
- gcd equal to 1.
- Modular inverse
- with .
Key formulae
Worked examples
Explore the graph
- The remainders cycle with period .
- Fermat guarantees the period divides .
.
Common mistakes
2¹⁰⁰ mod 7 by calculator
Fermat: 2³ ≡ 1, so it's 2. Next question.
Exam tip
Guided practice
Practice questions
More questions on every skill in this subtopic are in the question bank under Practise.
Challenge
Summary
- Euclid: repeated division.
- Bézout: back-substitute.
- Congruences: multiply by inverses.
- Fermat reduces powers.
Quick quiz
Same topic, different board
- Specification
- A level Further Mathematics 9FM0
- Where
- Further Pure 2 · Number theory
- Expected
- Division algorithm, Euclid's algorithm, Bézout's identity, modular arithmetic, linear congruences, Fermat's little theorem, divisibility tests; combinatorics including derangements.
- Calculator
- Permitted; show enough working to earn the method marks.
- Typical style
- Edexcel often opens with a routine part and builds to a "show that" or "prove" part.
- Open in
- 9FM0 · Option
Past paper questions
No past paper questions are tagged to this subtopic yet. We add papers every week.
Browse past papersSalam Academy original content · Content status: reviewed and published. Syllabus mapping: Pearson Edexcel 9FM0, First teaching 2017 (official specification).