Number Theory • Topic 6

GCD (Greatest Common Divisor)

The GCD connects divisibility with linear combinations.

Definition

Definition (GCD)
The greatest common divisor of integers and (not both zero), denoted or simply , is the largest positive integer such that and .

Euclidean Algorithm

To compute efficiently:
Repeat until remainder is 0.
Example
:
  • .

Coprime Integers

Integers are coprime (or relatively prime) if .

Properties

  1. .
  2. .
  3. If , then .

Practice Problems

Exercise (Problem 1)
Prove that for any integer .
Exercise (Problem 2)
Prove that for any positive integer , the fraction is irreducible.
Exercise (Problem 3)
If , prove that is either 1 or 2.