TExcelTAD
Home › School Integers, Rational Numbers & Proportions › The Euclidean Algorithm on Paper

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 4621,071\frac{462}{1{,}071}, or find gcd⁡(2,324,756)\gcd(2{,}324, 756)? Factoring large numbers into primes is slow, difficult, and prone to errors.

Over 2,3002{,}300 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:

a=b×q+r(0≤r<b)a = b \times q + r \quad (0 \le r < b)

where aa is the dividend, bb is the divisor, qq is the quotient, and rr is the remainder.

Euclid's Core Theorem: The Greatest Common Divisor of aa and bb is identical to the Greatest Common Divisor of bb and the remainder rr:

gcd⁡(a,b)=gcd⁡(b,r)\gcd(a, b) = \gcd(b, r)

Why Does This Work on Paper?

Let dd be any common divisor of aa and bb.

  1. Because dd divides both aa and bb, it must also divide any combination of them:
    r=a−(b×q)r = a - (b \times q)
    Since dd divides aa and dd divides (b×q)(b \times q), dd must divide their difference rr.
  2. Conversely, if dd divides both bb and rr, it must divide:
    a=b×q+ra = b \times q + r

Therefore, aa and bb share the exact same common divisors as bb and rr!


Geometric Paper Visual: Tiling a Rectangle

Euclid visualized this geometrically as measuring lengths with a measuring stick.

Imagine a rectangular strip of paper measuring a×ba \times b. You want to cut the rectangle into the largest possible identical squares of size d×dd \times d with zero waste:

┌───────────────────────────────────────┬─────────┐
│                                       │         │
│          Square (b × b)               │  b × r  │
│                                       │         │
└───────────────────────────────────────┴─────────┘
◄───────────────── a ──────────────────►
  1. You cut out as many full b×bb \times b squares as possible (this count is the quotient qq).
  2. You are left with a smaller leftover rectangle of dimensions b×rb \times r.
  3. Any square tile that cleanly measures the original rectangle must also cleanly tile the leftover rectangle!
  4. 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:

StepDividend aDivisor bQuotient qRemainder r1a1b1q1r12b1r1q2r23r1r2q3r3……………\begin{array}{|c|c|c|c|c|} \hline \textbf{Step} & \textbf{Dividend } a & \textbf{Divisor } b & \textbf{Quotient } q & \textbf{Remainder } r \\ \hline 1 & a_1 & b_1 & q_1 & r_1 \\ 2 & b_1 & r_1 & q_2 & r_2 \\ 3 & r_1 & r_2 & q_3 & r_3 \\ \dots & \dots & \dots & \dots & \dots \\ \hline \end{array}

The 3 Rules of the Paper Slide:

  1. Divide: Perform a÷ba \div b on scratch paper to find quotient qq and remainder rr.
  2. Slide Left:
    • The old divisor bb slides left to become the new dividend aa.
    • The old remainder rr slides left to become the new divisor bb.
  3. Terminate: When remainder r=0r = 0, 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 gcd⁡(252,105)\gcd(252, 105)

Problem: Compute gcd⁡(252,105)\gcd(252, 105) on paper using the Euclidean Algorithm.

  • Step 1: Divide 252252 by 105105:
    252=105×2+42(q=2,  r=42)252 = 105 \times 2 + 42 \quad (q = 2, \; r = 42)
  • Step 2 (Slide): Replace 252252 with 105105, and 105105 with 4242:
    105=42×2+21(q=2,  r=21)105 = 42 \times 2 + 21 \quad (q = 2, \; r = 21)
  • Step 3 (Slide): Replace 105105 with 4242, and 4242 with 2121:
    42=21×2+0(q=2,  r=0)42 = 21 \times 2 + 0 \quad (q = 2, \; r = 0)
  • Step 4 (Stop): The remainder is 00. The last non-zero remainder is 2121.

Summary Table in Notebook:

Stepabqr12521052422105422213422120\begin{array}{|c|c|c|c|c|} \hline \textbf{Step} & a & b & q & r \\ \hline 1 & 252 & 105 & 2 & 42 \\ 2 & 105 & 42 & 2 & 21 \\ 3 & 42 & 21 & 2 & \mathbf{0} \\ \hline \end{array}
  • Final Answer:
    gcd⁡(252,105)=21\gcd(252, 105) = 21

Example 2: Reducing Large Numbers Without Factoring

Problem: Find gcd⁡(1,071,462)\gcd(1{,}071, 462) and use it to reduce the fraction 4621,071\frac{462}{1{,}071} to lowest terms.

  • Euclidean Algorithm Steps:

    • Step 1:
      1,071=462×2+147(462×2=924;  1,071−924=147)1{,}071 = 462 \times 2 + 147 \quad (462 \times 2 = 924; \; 1{,}071 - 924 = 147)
    • Step 2:
      462=147×3+21(147×3=441;  462−441=21)462 = 147 \times 3 + 21 \quad (147 \times 3 = 441; \; 462 - 441 = 21)
    • Step 3:
      147=21×7+0(21×7=147;  147−147=0)147 = 21 \times 7 + 0 \quad (21 \times 7 = 147; \; 147 - 147 = 0)
  • Conclusion: The last non-zero remainder is 2121, so:

    gcd⁡(1,071,462)=21\gcd(1{,}071, 462) = 21
  • Simplifying the Fraction on Paper: Divide both numerator and denominator by their GCD (2121):

    462÷211,071÷21=2251\frac{462 \div 21}{1{,}071 \div 21} = \frac{22}{51}
  • Final Answer: gcd⁡=21\gcd = 21 and the reduced fraction is 2251\frac{22}{51}.


Example 3: Verifying Coprime Numbers

Problem: Find gcd⁡(325,114)\gcd(325, 114) on paper.

Stepabqr1325114297(325=114×2+97)211497117(114=97×1+17)39717512(97=17×5+12)4171215(17=12×1+5)512522(12=5×2+2)65221(5=2×2+1)72120(2=1×2+0)\begin{array}{|c|c|c|c|c|} \hline \textbf{Step} & a & b & q & r \\ \hline 1 & 325 & 114 & 2 & 97 \quad (325 = 114 \times 2 + 97) \\ 2 & 114 & 97 & 1 & 17 \quad (114 = 97 \times 1 + 17) \\ 3 & 97 & 17 & 5 & 12 \quad (97 = 17 \times 5 + 12) \\ 4 & 17 & 12 & 1 & 5 \quad (17 = 12 \times 1 + 5) \\ 5 & 12 & 5 & 2 & 2 \quad (12 = 5 \times 2 + 2) \\ 6 & 5 & 2 & 2 & 1 \quad (5 = 2 \times 2 + 1) \\ 7 & 2 & 1 & 2 & 0 \quad (2 = 1 \times 2 + 0) \\ \hline \end{array}
  • When the remainder reached 00, the divisor was 11.
  • The last non-zero remainder is 11.
  • Final Answer:
    gcd⁡(325,114)=1  ⟹  325 and 114 are coprime.\gcd(325, 114) = 1 \implies 325 \text{ and } 114 \text{ are coprime.}

4. Common Mistakes & Paper Traps

[!WARNING] Trap 1: Writing the quotient as the GCD. The quotients qq 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, q=2q = 2 in every line, but the GCD is 2121.

[!WARNING] Trap 2: Saying the GCD is 0. Because the algorithm stops when the remainder reaches 00, students sometimes mistakenly write gcd⁡=0\gcd = 0.

  • The GCD of two positive numbers is always at least 1.
  • The GCD is the last non-zero remainder (or the divisor bb that caused remainder 00).

[!WARNING] Trap 3: Sliding the wrong numbers. Always remember the paper rule: bb becomes the new aa, and rr becomes the new bb. Never slide the quotient qq into the next row!


5. Pencil & Paper Practice

Calculate the GCD on your notebook paper using the Euclidean Algorithm:

  1. Practice 1: Find gcd⁡(198,78)\gcd(198, 78).
  2. Practice 2: Find gcd⁡(693,252)\gcd(693, 252).
  3. Practice 3: Find gcd⁡(1,430,429)\gcd(1{,}430, 429).

6. Worked Solutions for Practice Problems

Solution to Practice 1

  • Step 1: 198=78×2+42198 = 78 \times 2 + 42 (78×2=15678 \times 2 = 156; 198−156=42198 - 156 = 42)
  • Step 2: 78=42×1+3678 = 42 \times 1 + 36
  • Step 3: 42=36×1+642 = 36 \times 1 + 6
  • Step 4: 36=6×6+036 = 6 \times 6 + 0
  • Remainder is 00. The last non-zero remainder is 66.
  • gcd⁡(198,78)=6\gcd(198, 78) = 6.

Solution to Practice 2

  • Step 1: 693=252×2+189693 = 252 \times 2 + 189 (252×2=504252 \times 2 = 504; 693−504=189693 - 504 = 189)
  • Step 2: 252=189×1+63252 = 189 \times 1 + 63
  • Step 3: 189=63×3+0189 = 63 \times 3 + 0 (63×3=18963 \times 3 = 189)
  • Remainder is 00. The last non-zero remainder is 6363.
  • gcd⁡(693,252)=63\gcd(693, 252) = 63.

Solution to Practice 3

  • Step 1: 1,430=429×3+1431{,}430 = 429 \times 3 + 143 (429×3=1,287429 \times 3 = 1{,}287; 1,430−1,287=1431{,}430 - 1{,}287 = 143)
  • Step 2: 429=143×3+0429 = 143 \times 3 + 0 (143×3=429143 \times 3 = 429)
  • Remainder is 00. The last non-zero remainder is 143143.
  • gcd⁡(1,430,429)=143\gcd(1{,}430, 429) = 143.

7. Summary

  • Theorem: gcd⁡(a,b)=gcd⁡(b,r)\gcd(a, b) = \gcd(b, r) where r=a(modb)r = a \pmod b.
  • 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 gcd⁡(a,b)\gcd(a, b) with gcd⁡(b,r)\gcd(b, r)?

  1. Because a×b=b×ra \times b = b \times r
  2. Because any common divisor of aa and bb must also divide the remainder r=a−b×qr = a - b \times q
  3. Because the quotient qq is always a prime number
  4. Because rr is always greater than bb

A student performs the Euclidean Algorithm on two numbers and gets the final step: 54=18×3+054 = 18 \times 3 + 0. What is the GCD?

  1. 00
  2. 33
  3. 1818
  4. 5454

Use the Euclidean Algorithm to find gcd⁡(546,130)\gcd(546, 130):

  1. 1313
  2. 2626
  3. 22
  4. 6565