9 minutes read

Number theory is an area of mathematics that has grown from studies of natural numbers

1,2,3,1, 2, 3, \ldotsor, slightly more generally, studies of integers

0,±1,±2,±3,0, \pm 1, \pm 2, \pm 3, \ldotsto much more complicated structures, but you still can trace the origins of its problems to the set of integers (denoted by Z\mathbb{Z}). We meet integers for the first time in childhood, and they can seem well-known, boring, and useful only for counting things. None of this is right if we take a closer look. There are still a lot of unsolved problems concerning integers, they exhibit surprising patterns and relationships. And, unexpectedly, in the 20th-century number theory has become crucial for computer security.

Let's learn some basic number theory concepts.

Divisibility

We can add, subtract and multiply integers. But we are not always able to divide one integer by another if we want the result to stay within the realm of integers. This leads us to a fundamental definition:

Given two integers aa and bb, we say that aa divides bb, or that bb is divisible by aa, if there is some integer kk such that b=akb = ak (we also say that bb is a multiple of aa).

If aa divides bb, we denote it as aba \mid b. For example, 5655 \mid 65, because 65=51365 = 5 \cdot 13. Also, 71197 \mid 119 (check it!), but 77 doesn't divide 8686, because no multiple of 77 is equal to 8686.

Using only the definition, we can derive the property of transitivity:

If aba \mid b and bcb \mid c, then aca \mid c.

Indeed, b=akb = ak for some integer kk and c=bmc = bm for some integer mm, so, c=(ak)m=a(km)c = (ak)m = a(km) is a multiple of aa.

If aba \mid b, we also say that aa is a divisor of bb. For instance, 1212 has 6 positive divisors (1,2,3,4,6,121, 2, 3, 4, 6, 12) and the same number of negative divisors (1,2,3,4,6,12-1, -2, -3, -4, -6, -12).

Prime numbers and the unique factorization

Let nn be a positive integer and n1n \neq 1. Trivially, 11 and nn divide nn. If 11 and nn are the only positive integers dividing nn, we say that nn is a prime number, or simply a prime. If n1n \neq 1 but is not a prime, we say that nn is composite. The number 11 is not considered to be either prime or composite. The first few primes are 2,3,5,7,11,13,17,19,23,2, 3, 5, 7, 11, 13, 17, 19, 23, \ldots

Now let's look at a famous theorem with a solemn name:

The Fundamental Theorem of Arithmetic: Every positive integer can be written uniquely (except for the order of factors) as a product of primes.

For instance, 600=222355600 = 2 \cdot 2 \cdot 2 \cdot 3 \cdot 5 \cdot 5. We wrote primes in this factorization in the increasing order, it's a common practice. Also, it is convenient to bunch together all equal factors: 600=23352600 = 2^3 \cdot 3 \cdot 5^2.

So, the primes act as ''building blocks'' for all positive integers (and if we can also apply negation — for all non-zero integers). But surprisingly, we do not have an efficient algorithm for factoring an arbitrary integer into a product of primes. This fact is extremely important for modern cryptography.

The greatest common divisor

Suppose we have two integers, such as 1616 and 2424. We can look for common divisors, i.e., integers that divide both of them. For example, 88 is their common divisor, and you can easily notice it is their largest common divisor. Similarly, 55 is a common divisor of 2020 and 5050, but it is not the largest, since 1010 is also a common divisor.

Mathematicians usually use "the greatest common divisor" instead of "the largest common divisor", and this simple concept turns out to be extremely important in applications.

Definition: The greatest common divisor of two integers aa and bb (at least one different from zero) is the largest integer that divides both of them.

The greatest common divisor of aa and bb is denoted by gcd(a,b)\gcd(a,b). If gcd(a,b)=1\gcd(a,b) = 1, we say that aa and bb are relatively prime. Try to check, for example, that gcd(16,27)=1\gcd(16, 27) = 1 (i.e., these numbers are relatively prime) and gcd(36,27)=9\gcd(36, 27) = 9.

We'll soon study a simple, but efficient algorithm to compute the greatest common divisor of any two integers. The extended version of this algorithm is crucial for some modern cryptosystems.

Conclusion

In this piece of theory, we have started exploring a more advanced part of the number theory and got acquainted with the concept of divisibility more thoroughly. Let's now quickly go over the most notable points:

  • Divisibility is denoted by aba \mid b and reads as "aa divides bb", which also means that bb is divisible by aa without a remainder.
  • Divisibility is transitive, which means that if aa divides bb and bb divides cc, then aa divides cc.
  • According to the Fundamental Theorem of Arithmetic every positive number can be uniquely represented as a product of primes.
  • The greatest common divisor of two integers aa and bb or the largest integer that divides both aa and bb is denoted by gcd(a,b)=ngcd(a,b)=n.
7 learners liked this piece of theory. 0 didn't like it. What about you?
Report a typo