The Euclidean Algorithm on Paper
When numbers are small, finding the Greatest Common Divisor by factoring is straightforward. But what if you are asked to simplify , or find ? Factoring large numbers into primes is slow, difficult, and prone to errors.
Over years ago, Euclid of Alexandria described an astonishingly brilliant algorithm in his Elements (Book VII). The Euclidean Algorithm finds the exact GCD of any two numbers through simple repeated long division—without factoring a single number!
1. Concepts & Paper Visuals
The Mathematical Foundation: Division with Remainder
Every division of positive integers can be written as:
where is the dividend, is the divisor, is the quotient, and is the remainder.
Euclid's Core Theorem: The Greatest Common Divisor of and is identical to the Greatest Common Divisor of and the remainder :
Why Does This Work on Paper?
Let be any common divisor of and .
- Because divides both and , it must also divide any combination of them:Since divides and divides , must divide their difference .
- Conversely, if divides both and , it must divide:
Therefore, and share the exact same common divisors as and !
Geometric Paper Visual: Tiling a Rectangle
Euclid visualized this geometrically as measuring lengths with a measuring stick.
Imagine a rectangular strip of paper measuring . You want to cut the rectangle into the largest possible identical squares of size with zero waste:
┌───────────────────────────────────────┬─────────┐
│ │ │
│ Square (b × b) │ b × r │
│ │ │
└───────────────────────────────────────┴─────────┘
◄───────────────── a ──────────────────►- You cut out as many full squares as possible (this count is the quotient ).
- You are left with a smaller leftover rectangle of dimensions .
- Any square tile that cleanly measures the original rectangle must also cleanly tile the leftover rectangle!
- You repeat the process on the leftover rectangle until no remainder is left. The size of the final square tile is the GCD!
2. Step-by-Step Paper Calculation Method
On lined notebook paper, set up a systematic table with four columns:
The 3 Rules of the Paper Slide:
- Divide: Perform on scratch paper to find quotient and remainder .
- Slide Left:
- The old divisor slides left to become the new dividend .
- The old remainder slides left to become the new divisor .
- Terminate: When remainder , STOP!
- The last non-zero remainder (which is the divisor in that final line) is the GCD!
3. Step-by-Step Notebook Examples
Example 1: Finding
Problem: Compute on paper using the Euclidean Algorithm.
- Step 1: Divide by :
- Step 2 (Slide): Replace with , and with :
- Step 3 (Slide): Replace with , and with :
- Step 4 (Stop): The remainder is . The last non-zero remainder is .
Summary Table in Notebook:
- Final Answer:
Example 2: Reducing Large Numbers Without Factoring
Problem: Find and use it to reduce the fraction to lowest terms.
Euclidean Algorithm Steps:
- Step 1:
- Step 2:
- Step 3:
- Step 1:
Conclusion: The last non-zero remainder is , so:
Simplifying the Fraction on Paper: Divide both numerator and denominator by their GCD ():
Final Answer: and the reduced fraction is .
Example 3: Verifying Coprime Numbers
Problem: Find on paper.
- When the remainder reached , the divisor was .
- The last non-zero remainder is .
- Final Answer:
4. Common Mistakes & Paper Traps
[!WARNING] Trap 1: Writing the quotient as the GCD. The quotients simply tell you how many times the divisor fits into the dividend. The GCD is always the last non-zero remainder (the divisor in the final step), never the quotient!
- In Example 1, in every line, but the GCD is .
[!WARNING] Trap 2: Saying the GCD is 0. Because the algorithm stops when the remainder reaches , students sometimes mistakenly write .
- The GCD of two positive numbers is always at least 1.
- The GCD is the last non-zero remainder (or the divisor that caused remainder ).
[!WARNING] Trap 3: Sliding the wrong numbers. Always remember the paper rule: becomes the new , and becomes the new . Never slide the quotient into the next row!
5. Pencil & Paper Practice
Calculate the GCD on your notebook paper using the Euclidean Algorithm:
- Practice 1: Find .
- Practice 2: Find .
- Practice 3: Find .
6. Worked Solutions for Practice Problems
Solution to Practice 1
- Step 1: (; )
- Step 2:
- Step 3:
- Step 4:
- Remainder is . The last non-zero remainder is .
- .
Solution to Practice 2
- Step 1: (; )
- Step 2:
- Step 3: ()
- Remainder is . The last non-zero remainder is .
- .
Solution to Practice 3
- Step 1: (; )
- Step 2: ()
- Remainder is . The last non-zero remainder is .
- .
7. Summary
- Theorem: where .
- Advantage: Computes the GCD in a few rapid division steps without prime factorization.
- Rule: The GCD is the last non-zero remainder.
- Application: Essential for reducing fractions with large numerators and denominators.
Test yourself
In the Euclidean Algorithm, what is the mathematical justification for replacing with ?
- Because
- Because any common divisor of and must also divide the remainder
- Because the quotient is always a prime number
- Because is always greater than
A student performs the Euclidean Algorithm on two numbers and gets the final step: . What is the GCD?
Use the Euclidean Algorithm to find :