Divisibility

Let be two integers, with . From the Division Algorithm, we know there exist unique integers such that:

Well, the smallest possible value for is , we will give a special name for this case.

Definition

Let be integers, with . We say divides if there exists an integer such that:

We denote this by .

If , we say is a divisor of , and is a multiple of .

Question

Can you spell out the definition for ?

Example

Let and . We have:

Therefore, .

Example

Let and . We have:

Therefore, .

Properties of Divisibility

We list the following properties of divisibility, which can be easily proved using the definition of divisibility.

  1. For any integer , we have and .
  2. For any integer , we have .
  3. If , then .
  4. If , then .
  5. If and , then .
  6. Divisibility is stable under linear combination: If and , then for any integers .
  7. If and , then .
  8. A nonzero integer has only finitely many divisors.

Greatest Common Divisor

Since for non-zero integers and , there are only finitely many divisors, we can define the greatest common divisor of and . Let’s begin with the example:

Example

Let , we can list all its positive divisors:

Let , we can list all its positive divisors:

We find the common positive divisors of and are:

Among them, the greatest one is . Therefore, we say the greatest common divisor of and is , denoted as .

We can formally define the greatest common divisor as follows:

Definition

Let and be two integers, not both . The greatest common divisor of and is the largest positive integer that divides both and . We denote it as , sometimes also denoted as .

Let . We have the following properties by definition:

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

In fact, we can strengthen the second property to be , we will prove this in the next section.

When the greatest common divisor of and is the minimal possible value , we say and are relatively prime.

Greatest Common Divisor as Linear Combination

We will use the following property extensively when dealing with linear combinations:

Proposition

Let be a linear combination of and , let be a linear combination of and . Then linear combination of and is also a linear combination of and .

The proof will leave as an exercise.

In the above example, we found . We can write this as a linear combination of and :

We will show that this is always possible for any two integers and such that . The idea is again similar with the proof idea in the division algorithm.

Theorem

Let and be two integers, not both . Then there exist integers and such that:

Proof of the Theorem

Consider the set:

Let . We know is nonempty, since we can take:

Therefore, by the Well-Ordering Axiom, has a smallest element, denote it as . We will show that .

We need to show the following two things:

  1. and .
  2. If and , then .

Proof of the First Assertion

The first assertion is symmetric for , we only show . Apply the Division Algorithm to , we have:

Use above proposition, this implies we can write as a linear combination of and . So , but , and is the smallest element in , we must have . This implies , and we know , so . This implies .

Proof of the Second Assertion

For the second one, let and . We can write and . Then we have:

Then this implies . Since , we have .

Corollaries

From the proof of the theorem, we can see the promised corollary:

Corollary

Let and be two integers, not both . Then for any integer such that and , we have .

Another thing we can prove now is the understanding of the relative prime condition. The following corollary illustrated coprime (synonym for relatively prime) integers has a mutex property for its factors:

Corollary

If and , then .

Proof of the Corollary

Since , we can write for some integers and . Multiply both sides by , we have:

Since and , we have .