Divisibility

Induction

Let us have a closer look at the set N = {0 0, 1 1, 2 2, . . .} 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 0 0 6 6= 1 1 or even 2 2 < 3 3 and 3 3+2 2 = 5. 5 period 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 φ(0 0) holds and for each n ∈ N, φ(n) implies φ(n + 1 1), then φ(n) holds for all n ∈ N.

One can easily put this into symbols (here φ is fixed):

(φ⁡(0)∧∀n∈ℕ⁢(φ⁡(n)→φ⁡(n+1)))→∀ open paren phi of 0 and for all n is a member of the natural numbers times open paren phi of n right arrow phi of open paren n plus 1 close paren close paren close paren right arrow for alln ∈ℕ⁢φ⁡(n) is a member of the natural numbers phi of n

The statement φ⁡(0) phi of 0 is called the base step of induction, while ∀ for alln ∈ℕ⁢(φ⁡(n)→φ⁡(n+1)) is a member of the natural numbers times open paren phi of n right arrow phi of open paren n plus 1 close paren close paren is called the inductive step, and the statement φ⁡(n) phi of n 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 X⊆ℕ X subset of or equal to the natural numbers, if ∅∈X empty set is a member of X and for each n∈ℕ n is a member of the natural numbers, n∈X n is a member of X implies n+1∈X n plus 1 is a member of X, then X=ℕ X equals the natural numbers.

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 ∈ ℕ the natural numbers, 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 ⊆ ℕ the natural numbers, if X is progressive, then X = ℕ the natural numbers.

Informally, a set X is progressive if it ‘climbs’ the set ℕ the natural numbers, ‘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 0 0 ∈ X.
Proof. Suppose that for every n, ∀m < n m ∈ X implies n ∈ X. Let us specify n as 0. 0 period Consider the assumption ∀m < 0 0 m ∈ X, that is, ∀m (m < 0 0 → m ∈ X). This statement is vacuously true as m < 0 0is false for each natural m. Hence, 0 0 ∈ 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 6 6= ∅, 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:
1. 1 period the Strong Induction Principle;
2. 2 period the Least Number Principle;
3. 3 period 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 ∈ ℤ the integers. 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 ∈ ℤ the integers 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:
1. 1 period a | a;
2. 2 period if a | b and b | c, then a | c;
3. 3 period if a | b and b | a, then a = ±b.
Proof. The fact that a = a · 1 1 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 = 0. 0 period If it is so, then b = 0 0 · k2 = 0 0 = a.
Otherwise, one can cancel a out to obtain 1 1 = k1k2. We take it as a fact that 1 1 can be factorized either as 1 1 · 1 1 or as (−1 1) · (−1 1). 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 b=a⁢k1 b equals a k sub 1 and c=a⁢k2 c equals a k sub 2, we getb±c=a⁢k1+a⁢k2=a⁢(k1+k2) b plus or minus c equals a k sub 1 plus a k sub 2 equals a times open paren k sub 1 plus k sub 2 close paren by applying the distributivity law (taken without a proof).

Theorem 2. For every natural numbers a a and b≠0 b is not equal to 0, there exists a unique pair (q,r)∈ℕ2 open paren q comma r close paren is a member of n-two such that a=b⁢q+r a equals b q plus r and 0≤r<b 0 is less than or equal to r is less than b.
Proof. Consider the set X={s∈ℕ|a<b⁢s} X equals the set of all s in the natural numbers such that a is less than b s. We take as a fact, that multiplying by a positive number b b is monotonic, i. e., b⁢x<b⁢y b x is less than b y when x<y x is less than y. Hence, b⁢(a+1)>b⁢a≥1⋅a=a b times open paren a plus 1 close paren is greater than b a is greater than or equal to 1 times a equals a and a+1∈X a plus 1 is a member of X. So, X X is non-empty. By the Least Number Principle, there exists some s′=min⁡(X) s prime equals min of X. If s′=0 s prime equals 0, then a<b⁢s′=0 a is less than b s prime equals 0, which is impossible for a natural a a. Otherwise, s′=q+1 s prime equals q plus 1 for some q∈ℕ q is a member of the natural numbers, where b⁢q≤a b q is less than or equal to a. Hence, 0≤a-b⁢q 0 is less than or equal to a minus b q. If a-b⁢q≧b a minus b q is greater than over equals b, there would be a-b⁢s′=a-b⁢(q+1)≧0 a minus b s prime equals a minus b times open paren q plus 1 close paren is greater than over equals 0, that is, a≥b⁢s′ a is greater than or equal to b s prime, which is not the case. Therefore, 0=a-b⁢q<b 0 equals a minus b q is less than b and one can safely put r=a-b⁢q r equals a minus b q. The existence of a required pair is thus proved.
Suppose there are two such pairs (q,r) open paren q comma r close paren and (q′,r′) open paren q prime comma r prime close paren. We have both a=b⁢q+r a equals b q plus r and a=b⁢q′+r′ a equals b q prime plus r prime, while 0≤r,r′<b 0 is less than or equal to r comma r prime is less than b. If q=q′ q equals q prime, then, clearly, r=r′ r equals r prime as well. Otherwise, without loss of generality, we assume that q<q′ q is less than q prime, that is, q+1≤q′ q plus 1 is less than or equal to q prime. Hence, r-r′=b⁢q′-b⁢q=b⁡(q′-q)≥b r minus r prime equals b q prime minus b q equals b of open paren q prime minus q close paren is greater than or equal to b. Then r≥b+r′≥b r is greater than or equal to b plus r prime is greater than or equal to b, 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 b≠0 b is not equal to 0, there exists a unique pair (q,r)∈ℤ⨉ℕ open paren q comma r close paren is a member of the integers the n ary times of the natural numbers such that a=b⁢q+r a equals b q plus r and 0≤r<|b| 0 is less than or equal to r is less than the absolute value of b.

Modular arithmetic

Let m be a positive number. We say that a is congruent to b modulo m if m | vertical bar(a − b). We write a ≡ is identical to b (mod m) and call the number m a modulus in such a case.

Remark: As each number is divisible by 1 1, x≡y x is identical to y (mod 1 1) for all numbers x and y. This makes congruence modulo 1 1 a trivial, uninteresting property. Therefore, we will usually suppose m>1 m is greater than 1 in x ≡ is identical to y (mod m).
While it is possible to consider congruence modulo 0 0, where x ≡ is identical to y (mod 0 0) means 0| 0 vertical bar(x − y), that is, x − y = 0 0, this predicate is no more interesting: every number is only congruent to itself modulo 0. 0 period Congruence for negative moduli is not needed either since m| vertical bar(x − y) is equivalent to −m| vertical bar(x − y).

Lemma 4. For any numbers a, b, m, it holds that a≡b a is identical to b(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 0 0, 1 1, . . . , m − 1 1 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:
1. 1 period a ≡ a (mod m);
2. 2 period if a ≡ b (mod m), then b ≡ a (mod m);
3. 3 period 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:
1. 1 period a+c≡b+d a plus c is identical to b plus d(mod m);
2. 2 period a⁢c≡b⁢d a c is identical to b d(mod m);
3. 3 period an≡bn a to the n-th power is identical to b to the n-th power(mod m) for every n∈ℕ n is a member of the natural numbers.

Prime numbers and factorization. A number p > 1 1 is called prime if it is divisible by ±1 1 and by ±p but nothing else. Otherwise, a number greater than 1 1 is called composite.
A representation of the form n=p1a1⁢p2a2…psas n equals p sub 1 raised to the a sub 1 power p sub 2 raised to the a sub 2 power dot dot dot p sub s raised to the a sub s power for a number n>1 n is greater than 1, where pi p sub i are pairwise distinct primes and ai∈ℕ a sub i is a member of the natural numbers, is called a (prime) factorization of n n. One may naturally suppose that every prime number p takes part in a factorization of n n but just finitely many of them have non-zero degrees a a. It is possible to factorize 1 1 as well, but each prime shall have degree 0 0 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 n>1 n is greater than 1, there exists a unique prime factorization.
Theorem 4. There are infinitely many prime numbers.
Lemma 6. (Divisibility Criterion). For any non-zero numbers a a and b b, a a divides b b iff αi≤βi alpha sub i is less than or equal to beta sub ifor each prime pi p sub i, where αi alpha sub i (or βi beta sub i) is the degree of pi in the factorization of a a (respectively, b b).

A few more classical theorems

We say that a number d∈ℕ d is a member of the natural numbers is a greatest common divisor of numbers a a and b b if (1 1) d|a d divides a and d|b d divides b, and (2 2) for each d′∈ℕ d prime is a member of the natural numbers, from d′|a d prime divides a and d′|b d prime divides b, it follows that d′|d d prime divides d. We write gcd⁡(a,b)=d the gcd of open paren a comma b close paren equals d in such a case. In other words, d d is such a common divisor of a and b that is a multiple of any (other) common divisor d′ d prime. A priori, it is not obvious why such a number d exists.
Lemma 7. For every a a and b b, there exists a unique number d d such that d=gcd⁡(a,b) d equals the gcd of open paren a comma b close paren.

We say that a number m∈ℕ m is a member of the natural numbers is a least common multiple of numbers a a and b b if (1 1) a|m a divides m and b|m b divides m and (2 2) for each m′∈ℕ m prime is a member of the natural numbers, from a|m′ a divides m prime and b|m′ b divides m prime, it follows that m|m′ m divides m prime. We write lcm⁡(a,b)=m the lcm of open paren a comma b close paren equals m in such a case. In other words, m m is such a common multiple of a a and b b that divides any (other) common multiple m′ m prime.

Lemma 8. For any numbers a a, b b, and q q, gcd⁡(a,b)=gcd⁡(a+b⁢q,b) the gcd of open paren a comma b close paren equals the gcd of open paren a plus b q comma b close paren.
Proof. Suppose that d=gcd⁡(a,b) d equals the gcd of open paren a comma b close paren and d′=gcd⁡(a+b⁢q,b) d prime equals the gcd of open paren a plus b q comma b close paren. Clearly, d|(a+b⁢q) d divides open paren a plus b q close paren and d|b d divides b, so d|d′ d divides d prime by definition. Conversely, d′|b d prime divides b, d′|b⁢q d prime divides b q, and d′|a d prime divides a, for a=(a+b⁢q)-b⁢q a equals open paren a plus b q close paren minus b q. Hence, d′|d d prime divides d. Therefore, d=d′ d equals d prime.