A Computational Introduction to Number Theory and Algebra

Categories:

Recommended

Basic properties of the integers

1.1 Divisibility and primality

A central concept in number theory is divisibility.

Consider the integers Z = {. . . ,−2,−1, 0, 1, 2, . . .}. For a∈ Z, we say that divides if az for some ∈ Z. If divides b, we write b, and we may say that is a divisor of b, or that is a multiple of a, or that is divisible by a. If does not divide b, then we write – b.

We first state some simple facts about divisibility:

Theorem 1.1. For all ab∈ Z, we have

(i) a, 1 | a, and | 0;

(ii) 0 | if and only if = 0;

(iii) if and only if −if and only if | −b;

(iv) and implies | (c);

(v) and implies c.

Proof. These properties can be easily derived from the definition of divisibility, using elementary algebraic properties of the integers. For example, because we can write · 1 = a; 1 | because we can write 1 · a| 0 because we can write ·0 = 0. We leave it as an easy exercise for the reader to verify the remaining properties. 2

We make a simple observation: if and 6= 0, then 1 ≤ |a| ≤ |b|. Indeed, if az 6= 0 for some integer z, then 6= 0 and 6= 0; it follows that |a| ≥ 1, |z| ≥ 1, and so |a| ≤ |a||z| = |b|.

Theorem 1.2. For all a∈ Z, we have and if and only if = ±b. In particular, for every ∈ Z, we have | 1 if and only if = ±1.

Proof. Clearly, if = ±b, then and a. So let us assume that and a, and prove that = ±b. If either of or are zero, then the other must be zero as well. So assume that neither is zero. By the above observation, implies |a| ≤ |b|, and implies |b| ≤ |a|; thus, |a| = |b|, and so = ±b. That proves the first statement. The second statement follows from the first by setting := 1, and noting that 1 | a. 2

The product of any two non-zero integers is again non-zero. This implies the usual cancellation law: if ab, and are integers such that 6= 0 and ab ac, then we must have c; indeed, ab ac implies a(− c) = 0, and so 6= 0 implies − = 0, and hence c.

Primes and composites. Let be a positive integer. Trivially, 1 and divide n. If n > 1 and no other positive integers besides 1 and divide n, then we say is prime. If n > 1 but is not prime, then we say that is composite. The number 1 is not considered to be either prime or composite. Evidently, is composite if and only if ab for some integers awith 1 < a < n and 1 < b < n. The first few primes are

2, 3, 5, 7, 11, 13, 17, . . . .

While it is possible to extend the definition of prime and composite to negative integers, we shall not do so in this text: whenever we speak of a prime or composite number, we mean a positive integer.

Category:

Attribution

Victor Shoup (2008), A Computational Introduction to Number Theory and Algebra, URL: https://shoup.net/ntb/

This work is licensed under Attribution-NonCommercial-NoDerivs 3.0 Unported License:  (https://creativecommons.org/licenses/by-nc-nd/3.0/).

VP Flipbook Maker

VP Online Flipbook Maker is a powerful tool that enables you to create dynamic and engaging digital flipbooks. With a range of customization options and an easy-to-use interface, you can transform your content in to attractive digital flipbook. Try it now!