Module 5: Basic Number Theory - Purdue University
Module 5: Basic Number Theory
Theme 1: Division
Given two integers, say and , the quotient may or may not be an integer (e.g., ?
but
??
? ). Number theory concerns the former case, and discovers criteria upon which one can
decide about divisibility of two integers.
More formally, for ? we say that divides if there is another integer such that
and we write . In short:
if and only if ?
This simple definition leads to many properties of divisibility. For example, let us establish the following lemma.
Lemma 1 If and , then ? ? ?.
Proof. We give a direct proof. From the definition of divisibility and the hypotheses we know that
there are integers ? and ? such that
?
?
Hence
? ?? ? ?
Since ? ? ? is an integer, we prove that ? ? ?.
Exercise 5A: Prove the following two facts: 1. If , then for all integers . 2. If and , then .
We already noted that an integer may be or not divisible by another integer. However, when dividing one number by another there is always a quotient and a remainder. More precisely, if and
are positive integers then there is a unique ? and ? such that
??
where ? ? is a remainder. Observe that the remainder can take only values ? ?
?.
1
Theme 2: Primes
Primes numbers occupy very prominent role in number theory. A prime number ? is an integer
greater than ? that is divisible only by ? and itself. A number that is not prime is called composite.
Example 1: The primes less than ??? are:
? ? ?? ?? ? ? ?? ? ?? ? ? ? ? ? ? ? ?
How many primes are there? We first prove that there are infinite number of primes.
Theorem 1. There are infinite number of primes.
Proof. We provide a proof by contradiction. Actually, it is due to Euclid and it is more than 2000
years old. Let us assume that there is a finite number of primes, say, ? ?
? where ? is the
largest prime (there is the largest prime since we assumed there are only finitely many of them).
Construct another number
? ???? ???? ??
which is a product of all primes plus one. First, observe that none of the primes ? ?
?
can divide ? , since the remainder of dividing ? by any of the primes is equal to ?. Since every
number, including ? , is divisible by at least two numbers, ? and itself, there must be another prime,
possible ? itself, that is not among the primes ? ?
? . This contradicts the assumption that
??
? are the only primes.
But how many primes are there smaller than ?, where ? is a fixed number. This is a very difficult problem that was solved only in the last century. Basically, there are approximately about ? ?? ?? primes smaller than ?. For example, there are ? primes smaller than ???, and ??? ?? ????? ??.
Primes are important since every integer can be represented as a product of primes. This is known
as the Fundamental Theorem of Arithmetics and we will prove it below.
Example 2: Observe that
???
? ? ? ? ? ?? ?
??
? ? ??
?? ? ? ? ?
Theorem 2. [Fundamental Theorem of Arithmetics ] Every positive integer can be written uniquely
as the product of primes where the prime factors are written in order of increasing size, that is, if ? is
? ? ? a natural numbers and ? ?
?? are distinct primes, then
?
? ? ? ? ?? ??
?? ?
2
where are exponents of ? (i.e., the number of times ? occurs in the factorization of ?).
Proof. We give an indirect proof. Let us assume that there are two different prime factorizations of
?, say
?
? ? ? ? ?? ??
?? ?
?
? ? ? ? ?? ??
?? ?
? ? ? where ?
?? are primes. Since we factorize the same number ? we must have
? ? ? ? ? ? ? ? ?? ??
?? ?
?? ??
?? ?
We first prove that ? ?. If ? ?, then ? can not divide any of the primes ? ?? (we say
that ? is relatively prime to all ? ??). Indeed, since ? and ? ?? are primes, none of them
? ? ? ? equal, then they must be relatively prime. But, then ? cannot divide ?
?? ??
?? ?
which
is
? ? ? ? nonsense since ? ?? ??
?? ?
.
Thus,
we
must
conclude
that
?
?.
Now we prove that ? ? provided ? ? that we just established above. Again, assume
contrary that ? ?, say ? ? ? , ?. Then after dividing everything by ?? we obtain
??
?
?
?
?? ?
?
?
??
?
?
?
?? ?
But then the right-hand side of the above is divisible by ? while the left-hand side is not, which is
impossible since there is an equality sign between the left-hand side and the right-hand side of the above. This completes the proof.
How to find out whether an integer is a prime or not? Unfortunately, there is no fast way of doing
it (i.e., there is no efficient algorithm), but one can use some properties of primes and composite
numbers to speed up the process. Here is one useful result.
? Lemma 2.If ? is a composite integer, then ? has a prime divisor less than or equal to ?.
? ? Proof. Since ? is a composite integer, it must have a factor such that ?
where ? ? is an integer. Let us now assume contrary that
? and ?
?, that is, ? ?. But then
??
? ? ???? ?
which is the desired contradiction since we assumed that ? ?. We must conclude that ? has at
? least one divisor not exceeding ?. This divisor is prime or not. If it is not prime, it must have a ? prime divisor, which certainly must be smaller than ?.
? We can use this lemma, in its contrapositive form, to decide whether ? is a prime or not. Indeed.
the above lemma is equivalent to: if ? has no prime divisor less than or equal to ?, then ? is a
prime number.
3
? Example 3: Let us show that ?? is a prime number. If ?? would be composite, then it has had prime
divisor smaller than ?? ?? ? . Primes smaller than ?? are ? ? , and . None of it divides ?? , thus it ?? must be a prime number.
There were several attempts to find a systematic way of computing prime numbers. Euclid suggested that ? ? ??-st prime can be computed recursively as follows:
? ??
For example, the first few numbers are
?
? ???? ??
?
??? ?
?
?????
???? ?? ?
This is an example of a recurrence that we already encountered in the previous module. All numbers computed so far are primes. But, unfortunately,
? ? ? ? ? ? ? ? ? ? ?? ? ??
is not a prime. In the seventeenth century, a French mathematician Marin Marsenne suggested that ?? ? is
prime provided ? is prime. Unfortunately,
??? ? ??
?? ?
From now on we shall work under the assumption that there is no easy, simple and fast algorithm to compute prime numbers.
Theme 3: Greatest Common Divisor
The largest divisor that divides both ? and ? is called the greatest common divisor of ? and ?. It is denoted as ?? ?. Formally:
?? ? ? ?
? and ?
Example 4: What is the greatest common divisor of ? and ? . One way of finding it is to list all divisors of ? and ? and pick up the largest common to both lists. For example,
divisors of ? divisors of ?
??? ???
?? ? ?? ? ?
4
Thus ?? ? ? ??. Another, more systematic way is to do prime factorization of both numbers and pick up the largest common factors. In our case,
?
??? ?
?
??? ??
Thus
? ?? ? ? ?? ? ??
Generalizing the last example, let
? ?
???? ? ? ? ? ???? ? ? ? ?
be prime factorizations with possible zero exponents. Then
? ? ? ?? ?
? ? ? ? ? ? ? ? ? ?
?
?
?? ?
where ? ? ? ? is the minimum of ? and ?. Indeed, take the last example to see that
?? ? ? ?? ? ? ? ?? ? ? ?
Exercise 5B: Let us define the least common multiple of ? and ? as the smallest positive integer that is divisible by both ? and ?. It is denoted as ? ?? ? (e.g., ? ? ? ?). Prove that for any positive integers ? and ?
??
?? ? ? ? ?? ?
We need some more definitions. Two integers, say ? and ?, may be composite but the only common divisor of both is ?. In such a case we say that ? and ? are relatively prime. More generally:
Definition 1. The integers ? ? ?
are pairwise relatively prime if
??
?
Unlike finding primes, there is an efficient algorithm (a procedure) that finds the greatest common divisor. We start with an example. Example 5: Find ? ? ? ??. We first divide ? ? by ? to find
? ? ?? ??
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- pigeonhole principle solutions university of texas at austin
- solution uc santa barbara
- solutions to homework 5 statistics 302 professor larget
- significant figures in measurement and calculations
- mathematics instructional plan grade 5 what s the data all virginia
- chapter 5 functions and parameter passing yale university
- math definitions introduction to numbers university of south florida
- pigeonhole principle texas a m university at galveston
- the real numbers and the integers university of washington
- the pigeonhole principle cornell university