# Elementary Properties of Divisibility

Divisibility is a key concept in number theory. We say that an integer ${\displaystyle a}$ is divisible by a nonzero integer ${\displaystyle b}$ if there exists an integer ${\displaystyle c}$ such that ${\displaystyle a=bc}$.

For example, the integer 123456 is divisible by 643 since there exists a nonzero integer, namely 192, such that ${\displaystyle 123456=643\cdot 192\,}$.

We denote divisibility using a vertical bar: ${\displaystyle a|b}$ means "a divides b". For example, we can write ${\displaystyle 643|123456\,}$.

If ${\displaystyle b}$ is not divisible by ${\displaystyle a}$, we write ${\displaystyle a\nmid b}$. For example, ${\displaystyle 5\nmid 12}$.

The following theorems illustrate a number of important properties of divisibility.

## Theorem 1

Suppose ${\displaystyle a,b,d,r,\,}$ and ${\displaystyle s\,}$ are integers and ${\displaystyle d|a}$ and ${\displaystyle d|b\,}$. Then ${\displaystyle d|(ra+sb)\,}$.

Proof:

Let ${\displaystyle a,b,d,r,\,}$ and ${\displaystyle s\,}$ be integers and suppose ${\displaystyle d|a}$ and ${\displaystyle d|b\,}$. Then there exist integers ${\displaystyle e\,}$ and ${\displaystyle f\,}$ such that ${\displaystyle a=de\,}$ and ${\displaystyle b=df\,}$. Thus

${\displaystyle ra+sb=rde+sdf=d(re+sf).\,}$

We know that ${\displaystyle re+sf\,}$ is also an integer, hence ${\displaystyle d|(ra+sb)\,}$.

### Corollary

Suppose ${\displaystyle a,b,d\,}$ and ${\displaystyle r\,}$ are integers and ${\displaystyle d|a}$ and ${\displaystyle d|b\,}$. Then ${\displaystyle d|(a+b),d|(a-b),\,}$ and ${\displaystyle d|ra\,}$.

Proof: Letting ${\displaystyle r=1}$ and ${\displaystyle s=1}$ in Theorem 1 yields ${\displaystyle d|(a+b)\,}$. Similarly, letting ${\displaystyle r=1}$ and ${\displaystyle s=-1}$ yields ${\displaystyle d|(a-b)\,}$. Finally, setting s=0, yields ${\displaystyle d|ra\,}$.

## Theorem 2

If ${\displaystyle a,b,c\,}$ are integers, and ${\displaystyle a|b\,}$ and ${\displaystyle b|c\,}$, then ${\displaystyle a|c\,}$.

Proof:

Let ${\displaystyle a,b,}$ and ${\displaystyle c}$ are integers, and suppose ${\displaystyle a|b\,}$ and ${\displaystyle b|c\,}$. Then ${\displaystyle b=ad\,}$ and ${\displaystyle c=be\,}$ for some integers ${\displaystyle d\,}$ and ${\displaystyle e\,}$.

Then ${\displaystyle c=ade=a\left(de\right)\,}$, and hence ${\displaystyle a|c\,}$.

## Theorem 3

Let ${\displaystyle a,b,c\,}$ be integers. Then ${\displaystyle a|b\,}$ if and only if ${\displaystyle ac|bc\,}$

Proof:

Let ${\displaystyle a,b,c\,}$ be integers. Suppose ${\displaystyle a|b\,}$.

Then there exists an integer ${\displaystyle d}$ such that

${\displaystyle b=ad}$.

So it follows that

${\displaystyle bc=\left(ac\right)d}$ and hence ${\displaystyle ac|bc\,}$.

For the reverse direction, we suppose ${\displaystyle ac|bc\,}$.

Then there exists an integer ${\displaystyle d\,}$ such that

${\displaystyle bc=\left(ac\right)d}$, so ${\displaystyle c(b-ad)=0.}$

We know that c is non-zero, hence

${\displaystyle b-ad=0,\,}$ i.e., ${\displaystyle b=ad}$. Thus, ${\displaystyle a|b}$.

## Prime and composite numbers

A natural number p greater than one is a prime number if it has exactly two distinct natural number divisors, itself and 1. The first eleven such numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. There are an infinite number of primes, however, as will be proven below.

A natural number greater than one that is not prime is composite. Thus, 4, 6, 8, 9, 10, 12, 14, 15 and 16 are the first few composite numbers.

Note that the number 1 is the only natural number that is neither prime nor composite.

## Theorem 4

Fundamental Theorem of Arithmetic (FTA)

Every composite positive integer n is a product of prime numbers. Moreover, these products are unique up to the order of the factors.

Proof:

We prove this theorem by contradiction.

Suppose there exists a positive composite integer that is not a product of prime numbers; let N be the smallest such integer. Since N is composite, it can be written as N = a b for some integers a and b with a, b > 1.

Since N is not a product of primes, at least one of a and b is not a product of primes; without loss of generality, let's say a is not a product of primes.

Then, since a>1, a is composite, and hence a is a positive composite number that is not a product of prime numbers.

But, since a<N this contradicts our assumption that N is the smallest such number.

Hence, there does not exist a smallest such number, and therefore there do not exist composite positive integers which are not the product of prime numbers.

Proof of uniqueness is left to the reader.

Alternative Proof:

This is an inductive proof.

The statement "k is composite implies that k is a product of prime numbers" is true when ${\displaystyle k=2}$.

Let ${\displaystyle N}$ be an integer ${\displaystyle \geq 2}$.

Suppose the statement is true for all ${\displaystyle k\leq N}$.

${\displaystyle N+1}$ is either composite or prime. If ${\displaystyle N+1}$ is prime, then the statement is true for ${\displaystyle k=N+1}$

If ${\displaystyle N+1}$ is composite, then ${\displaystyle N+1}$ is divisible by some prime ${\displaystyle p, so ${\displaystyle k=N+1}$ can be written k=pa where p is prime and a is an integer with ${\displaystyle 1. Then a is either prime, or composite; if it is composite, then it is a product of prime numbers by our induction hypothesis.

Hence ${\displaystyle N+1}$ can be written as a product of primes.

It follows that the statement is true for all ${\displaystyle k\leq N+1}$ and hence by induction for all ${\displaystyle \mathbb {N} }$.

Proof of uniqueness is left to the reader.

## Theorem 5

There are infinitely many primes.

Proof:

Suppose that there are only ${\displaystyle k\,}$ primes.

Let these primes be: ${\displaystyle p_{1},p_{2},...,p_{k}\,}$.

Let ${\displaystyle n=p_{1}p_{2}...p_{k}+1.\,}$ Then either ${\displaystyle n}$ is prime, or it is a product of primes. If is is a product of primes, it must be divisible by a prime ${\displaystyle p_{i}}$ for some ${\displaystyle i}$. However, ${\displaystyle {\frac {n}{p_{i}}}={\frac {p_{1}p_{2}...p_{k}+1}{p_{i}}}=p_{1}p_{2}...p_{i-1}p_{i+1}...p_{k}+{\frac {1}{p_{i}}}}$ which is clearly not an integer: ${\displaystyle n}$ is not divisible by ${\displaystyle p_{i}}$. Hence, ${\displaystyle n\,}$ is not a product of primes.

This is a contradiction, as by Theorem 4, all numbers can be expressed as a product of primes.

Therefore, either ${\displaystyle n\,}$ is prime or it is divisible by some prime greater than ${\displaystyle p_{k}\,}$.

We conclude that the assumption that there are only ${\displaystyle k\,}$ primes is false.

Thus there are not a finite number of primes, i.e., there are infinitely many primes.

## Theorem 6

The Division Algorithm (Division with smallest non-negative remainder)

Let a and b be integers where ${\displaystyle b>0}$. Then there exist uniquely determined integers q and r such that

${\displaystyle a=bq+r}$

and ${\displaystyle 0\leq r.

Proof:

We define the set

${\displaystyle M=\{x\in \mathbb {Z} \mid x\leq {\frac {a}{b}}\}}$

which is nonempty and bounded from above. Hence it has a maximal element which we denote by q.

We set ${\displaystyle r=a-bq}$. It is ${\displaystyle r=a-bq\geq a-b{\frac {a}{b}}=a-a=0}$ and ${\displaystyle r, because otherwise

${\displaystyle b\leq r=a-bq}$.

This implies

${\displaystyle q+1\leq {\frac {a}{b}}}$

which contradicts to the maximality of q in M.

We now prove the uniqueness of q and r:

Let ${\displaystyle q'}$ and ${\displaystyle r'}$ be two integers which satisfy ${\displaystyle a=bq'+r'}$ and ${\displaystyle 0\leq r'. It is

${\displaystyle |b(q-q')|=|r'-r|

and thus ${\displaystyle |q-q'|<1}$ which implies ${\displaystyle q=q'}$. This also shows ${\displaystyle r=r'}$ and we are done.