Math · Advanced · Lesson 6 of 7
Sums of Two Squares
Fermat’s Christmas theorem
An interactive lesson with 7 steps, about 6 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- A prime is a sum of two squares exactly when it is 2 or of the form .
- Squares leave remainder 0 or 1 mod 4, so 4k + 3 numbers can never work.
- The number of grid points inside a circle of radius is about .
Steps
- Points on a circle
- Which primes?
- Why 4k + 3 fails
- Fermat’s Christmas theorem
- Multiplying sums
- Counting inside the circle
- Spot the sum