# Elementary Properties of Divisibility

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

For example, the integer 123456 is divisible by 643 since there exists an integer, namely 192, such that $123456=643\cdot192\,$.

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

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

## Prime numbers

A natural number p is called 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. Note that the number 1 is generally not considered a prime number even though it has no divisors other than itself. The reason for this will be discussed later.

## Theorem 1

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

Proof:

There exists $e \,$ and $f \,$ such that $a=de \,$ and $b=df \,$. Thus

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

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

### Corollary

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

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

## Theorem 2

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

Proof:

Let us write b as $b=ad \,$ and c as $c=be \,$ for some integers $d\,$ and $e\,$.

It follows that

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

## Theorem 3

If $a,b,c \,$ are integers and $c \neq 0$, then $a|b \,$ if and only if $ac|bc \,$

Proof:

$a|b \,$ implies that there exists an integer d such that

$b=ad \,$

So it follows that

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

For the reverse direction, we note that $ac|bc \,$ implies there exists an integer $d \,$ such that

$bc=\left(ac\right)d$.

We know that c is non-zero, hence

$b=ad \,$.

This proves the theorem.

## Theorem 4

Fundamental Theorem of Arithmetic(FTA)

Every 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.

Let N be the smallest positive integer that is not a product of prime numbers. Since N has to be composite, it can be written as N = a b with a, b > 1. It is

$1.

We conclude that the theorem is true for a and b because N was the smallest counterexample. Hence there are primes $p_1,p_2,\dots ,p_k$ such that

$a=p_1p_2\cdots p_k$

and primes $q_1,q_2,\dots,q_l$ such that

$b=q_1q_2\cdots q_l$.

Hence

$N = ab = p_1p_2\cdots p_kq_1q_2\cdots q_l$,

Alternative Proof:

This is an inductive proof.

The statement is true for $N = 2$

Suppose the statement is true for all $k \le N$

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

If $N+1$ is composite, then $N+1$ is divisible by some prime, $p < N+1$, so $k = N+1$ can be written as a product of $p$ and some number $< N + 1$.

Hence $N+1$ can be written as a product of primes.

It follows that the statement is true for all $k \le N+1$ and hence by induction for all $\N$.

## Theorem 5

There are infinitely many primes.

Proof:

Suppose that there are only $k \,$ primes.

Let these primes be: $p_1,p_2,...,p_k \,$.

Let $n=p_1p_2...p_k+1. \,$ Then either $n$ is prime, or it is a product of primes. If is is a product of primes, it must be divisible by a prime $p_i$ for some $i$. However, $\frac{n}{p_i} = \frac{p_1p_2...p_k+1}{p_i} = p_1p_2...p_{i-1}p_{i+1}...p_k + \frac{1}{p_i}$ which is clearly not an integer: $n$ is not divisible by $p_i$. Hence, $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 $n \,$ is prime or it is divisible by some prime greater than $p_k \,$.

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

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

## Theorem 6

Division with smallest nonnegative remainder

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

$a = bq + r$

and $0\leq r < b$.

Proof:

We define the set

$M = \{x\in \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 $r = a - bq$. It is $r = a - bq \geq a - b \frac{a}{b} = a-a = 0$ and $r, because otherwise

$b \leq r = a-bq$.

This implies

$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 $q'$ and $r'$ be two integers which satisfy $a=bq'+r'$ and $0\leq r'. It is

$| b (q-q') | = | r' - r | < b$

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

Index