Divisibility
Induction
Let us have a closer look at the set N = {, , , . . .} of natural numbers. In fact, we have not yet defined this set accurately, and we will refrain from doing it during this course.5 We have taken the set N with some ‘basic properties’, like = or even < and + = Now we are to analyze the main property of N—that of induction.
In its most well-known form, the Induction Principle says that
For an arbitrary predicate φ, if φ() holds and for each n ∈ N, φ(n) implies φ(n + ), then φ(n) holds for all n ∈ N.
One can easily put this into symbols (here φ is fixed):
n
The statement is called the base step of induction, while n is called the inductive step, and the statement for each n is called the inductive hypothesis (which is usually shortened to ‘IH’).
It is possible to rephrase the principle without mentioning any ‘predicates’ but sets:
For an arbitrary set , if and for each , implies , then .
Indeed, for each predicate φ, we can consider the subset X = {n ∈ N | φ(n)} of N and, conversely, we can put the predicate n ∈ X into correspondence with a set X ⊆ N. Thus, the new statement of the Principle is equivalent to the original one.
Let us give a more concise rewording of the Principle, eliminating any ‘predicates’ by the way. We call a set X ⊆ N progressive, if for each n ∈ , from ∀m < n m ∈ X, it follows that n ∈ X. We write Prog(X) if X is progressive. Then the principle reads this way:
For an arbitrary set X ⊆ , if X is progressive, then X = .
Informally, a set X is progressive if it ‘climbs’ the set , ‘conquering’ n as soon as it has ‘conquered’ all lesser numbers. Most strikingly, this form of induction apparently lacks the base step. But this is not the case.
Lemma 1. If X is progressive, then ∈ X.
Proof. Suppose that for every n, ∀m < n m ∈ X implies n ∈ X. Let us specify n as Consider the assumption ∀m < m ∈ X, that is, ∀m (m < → m ∈ X). This statement is vacuously true as m < is false for each natural m. Hence, ∈ X must be true as well.
The last form of induction for us to consider is the Least Number Principle, which states:
For an arbitrary set X ⊆ N, if X = ∅, then there exists a least element min X of X.
If put in symbols (for a certain X fixed), the Principle reads:
∃m m ∈ X → ∃n (n ∈ X ∧ ∀m (m < n → m /∈ X))
In fact, all the three forms of induction introduced hereunto are logically equivalent to each other.
So, each may be looked upon as the principle of induction.
Theorem 1. The following statements are equivalent:
the Strong Induction Principle;
the Least Number Principle;
the Induction Principle.
Divisibility
It is time to apply our knowledge of induction to natural and integer arithmetic. As earlier, we will assume some facts without a proof, like the commutativity law for addition: n + m = m + n for every m, n ∈ . Such facts can be easily derived by induction from the so called recursive definitions for arithmetical operations. But this topic is a bit bigger than the scope of our Course can contain.
Divisibility. From now on, the term ‘number’ will denote an integer number by default. We say that a number a divides a number b if there exists some k ∈ such that b = ak. Conversely, b is said to be divisible by a in this case. Also, we call a a divisor of b and call b a multiple of a. We write a | b when a divides b.
Lemma 2. For every a, b, c, the following hold:
a | a;
if a | b and b | c, then a | c;
if a | b and b | a, then a = ±b.
Proof. The fact that a = a · gives us the first statement. For the second one, assume a | b and b | c, that is, b = ak1 or c = bk2 for some numbers k1, k2. Hence we get c = bk2 = (ak1)k2 = a(k1k2), which implies a | c. For the final one, assume both a | b and b | a. Then a = bk1 and b = ak2 for some k1, k2. This yields a = a(k1k2). Now, let us see if a = If it is so, then b = · k2 = = a.
Otherwise, one can cancel a out to obtain = k1k2. We take it as a fact that can be factorized either as · or as (−) · (−). Thus, either a = b or a = −b.
Lemma 3. If a | b and a | c, then a |(b + c) and a |(b − c).
Proof. Assuming and , we get by applying the distributivity law (taken without a proof).
Theorem 2. For every natural numbers and , there exists a unique pair such that and .
Proof. Consider the set . We take as a fact, that multiplying by a positive number is monotonic, i. e., when . Hence, and . So, is non-empty. By the Least Number Principle, there exists some . If , then , which is impossible for a natural . Otherwise, for some , where . Hence, . If , there would be , that is, , which is not the case. Therefore, and one can safely put . The existence of a required pair is thus proved.
Suppose there are two such pairs and . We have both and , while . If , then, clearly, as well. Otherwise, without loss of generality, we assume that , that is, . Hence, . Then , which is not so.
Such a number q is called the partial quotient and r is called the remainder after division of a by b. This result can be easily generalized to arbitrary integers: For every numbers a and , there exists a unique pair such that and .
Modular arithmetic
Let m be a positive number. We say that a is congruent to b modulo m if m (a − b). We write a b (mod m) and call the number m a modulus in such a case.
Remark: As each number is divisible by , (mod ) for all numbers x and y. This makes congruence modulo a trivial, uninteresting property. Therefore, we will usually suppose in x y (mod m).
While it is possible to consider congruence modulo , where x y (mod ) means (x − y), that is, x − y = , this predicate is no more interesting: every number is only congruent to itself modulo Congruence for negative moduli is not needed either since m(x − y) is equivalent to −m(x − y).
Lemma 4. For any numbers a, b, m, it holds that (mod m) iff a and b leave the same remainder when divided by m.
This lemma has some corollaries:
1. No two of the numbers , , . . . , m − are congruent modulo m.
2. Suppose r is the remainder after dividing a by m. Then a ≡ r (mod m).
3. For any numbers a, b, m, the following hold:
a ≡ a (mod m);
if a ≡ b (mod m), then b ≡ a (mod m);
if a ≡ b (mod m) and b ≡ c (mod m), then a ≡ c (mod m).
The most interesting and most important point about congruence is that it ‘respects’ the arithmetical operations.
Lemma 5. Suppose that a ≡ b (mod m) and c ≡ d (mod m). Then the following hold:
(mod m);
(mod m);
(mod m) for every .
Prime numbers and factorization. A number p > is called prime if it is divisible by ± and by ±p but nothing else. Otherwise, a number greater than is called composite.
A representation of the form for a number , where are pairwise distinct primes and , is called a (prime) factorization of . One may naturally suppose that every prime number p takes part in a factorization of but just finitely many of them have non-zero degrees . It is possible to factorize as well, but each prime shall have degree then. Two factorization are distinct iff some prime number has different degrees in these.
There are a few theorems, which are crucial for this topic.
Theorem 3. (Fundamental Theorem of Arithmetic). For each number , there exists a unique prime factorization.
Theorem 4. There are infinitely many prime numbers.
Lemma 6. (Divisibility Criterion). For any non-zero numbers and , divides iff for each prime , where (or ) is the degree of pi in the factorization of (respectively, ).
A few more classical theorems
We say that a number is a greatest common divisor of numbers and if () and , and () for each , from and , it follows that . We write in such a case. In other words, is such a common divisor of a and b that is a multiple of any (other) common divisor . A priori, it is not obvious why such a number d exists.
Lemma 7. For every and , there exists a unique number such that .
We say that a number is a least common multiple of numbers and if () and and () for each , from and , it follows that . We write in such a case. In other words, is such a common multiple of and that divides any (other) common multiple .
Lemma 8. For any numbers , , and , .
Proof. Suppose that and . Clearly, and , so by definition. Conversely, , , and , for . Hence, . Therefore, .