Elementary Concepts
This chapter covers the core concepts of number theory.
Below is a small sample of just a few of the types of integers we'll be considering.
We begin by definining symbols used in this volume. The symbol denotes the set of natural numbers, The natural numbers in these materials specifically include To denote the set of positive integers, we use the symbol To denote the set of negative integers, we use The set of nonpositive integers, while rarely used, is denoted No additional symbol is needed for the set of nonnegative integers, as those numbers are the naturals On occassion, we should like to use a few more: The set of odd integers is denoted the evens and the primes
Arithmetic
Arithmetic, fundamentally, is just fast counting. The simplest counting technique is enumeration — given a box of peaches, we see one peach and think, that's one. We see another and think, that's two. We see an apple and think, "not a peach, don't count." If we're given another box containing equinumerous (an equal amount of) peaches, we could enumerate again. But if we're told that the first and second boxes have the same amount of peaches, we can instead use a faster counting technique — addition for the peaches, subtraction for the faux. If we're given ten boxes of peaches, we could add each one, but why run when we can drive: multiplication for the peaches, for the division the others. And if we're given boxes of peaches, we can fly — exponentiation and rooting. Below are the basic definitions we'll use throughout the materials.
closure of integer addition
closure of integer multiplication
commutativity of integer addition
commutativity of integer multiplication
associativity of integer addition
Closure, commutativity, and associativity are enough to give us some interesting tricks. For example, if we know that then we know that And if we know that then we can transpose some integer to the equation:
Exponentiation leads to the notion "perfectly-shaped" numbers.
perfect square Let and be integers. Then is a perfect square if, and only if,
The term "perfect square" is descriptive. Some examples of perfect squares:
perfect cube Let and be integers. Then is a perfect cube if, and only if,
Like their lower-dimension cousins, perfect cubes share a similar pattern, but notice how fast the numbers become.
Both perfect cubes and perfect powers are examples of perfect powers. Thus, a perfect square is a perfect power of 2, and a perfect cube is a perfect power of 3.
perfect power Let and be integers. Then is a perfect power if, and only if,
Divisibility
We begin by building some intuition. How many 4s must we add together to get 12? 3. And 44? 11. In both these cases, we say that 12 and 44 are multiples of 4. 12 is a multiple of 3, and 11 is a multiple of 44. But 3 is not a multiple of 44, nor is 11 a multiple of 12. Already we see some interesting relationships. Let's explore this further.
Starting at 0, suppose we count by 2 all the way up to 50. This gives us the following pattern:
2 | 4 | 6 | 8 | 10 |
---|---|---|---|---|
12 | 14 | 16 | 18 | 20 |
22 | 24 | 26 | 28 | 30 |
32 | 34 | 36 | 38 | 40 |
42 | 44 | 46 | 48 | 50 |
Let's express this pattern in a different way:
Notice that each of the sums can be expressed as the product of 2 and another integer:
Simply playing with these patterns returns useful insight. The multiple of a positive integer is a member of a structure that can be drawn as a right triangle:
Above, the number tells us how many s we need to get a multiple of or, algebraically, the number of s we need to get If we express then commutivity tells us that is also an integer. Thus, given an integer one question we might ask is: How many s do we need to get Or, perhaps more interestingly, if someone gave us a number would we find it in the structure above? As it turns out, knowing the answer to this question is extremely valuable. If is the number of available dollars and is the number of people, knowing the value determines whether a distribution is fair (assuming we define fair as everyone gets an equal piece of the pie). This brings us to the concept of divisibility.
divisibility Let and be integers. If there exists an integer such that then we say that divides and write If does not divide we write Symbolically:
There are some subtleties to this definition. First, is a completely different expression from or It's also a completely different expression and When we write we're saying " divided by " This is not a proposition — we can't assign it a value of true or false because it's just an expression of some object (e.g., the number ). But when we write we're saying " divides " That's a proposition — we can assign it a value of either true or false.
Second, notice that this definition does not impose the requirement that This is because has the special property of being the multiple of every integer. For example, The oft-taught rule "dividing by 0 is undefined" purposely hides a nuance to avoid overcomplicating elementary matters. What that rule really means is, "0 does not have a multiplicative inverse." If it did, we would have
Clearly, we don't want to have a structure where Because division on the reals is defined as multiplying by the multiplicative inverse, 0's lack of a multiplicative inverse means that "dividing by 0 is undefined." The notion of divisibility is divorced from all of this drama because it lives only in the world integers — is trivially true. If we brought it into the world of rationals or reals, however, we'd have to impose the requirement that This requires us to prove or assume that whenever we want to work with divisibility.
The third point in the definition is that divisibility is an antisymmetric relation. That is, if and then For example, 3 divides 12, but 12 does not divide 3. 15 divides 5, but 5 does not divide 15. This leads to an alternative statement of divisiblity.
proposition 0.1 Let with Then
That is, the sentence is equivalent to Viewed this way, we can think of divisibility as being the border between rationals and integers. is not integer, but is. Knowing that a rational is not an integer is the first step to figuring out how we can "naturalize" the the rational. The rational needs a
If is true, then we can multiply by to get the integer This seems elementary, but it has a profound impact on many other areas of mathematics and computer science. For example, computers have a finite number of bits they can use to represent numbers. This poses challenges for computations involving extremely large numbers — astronomical distances, stock exchanges, physics simulations, etc. Many of these challenges can be eased by reducing some massive integer to a tiny integer We can only do so if we know that and
terminology Let with Then all of the following statements are equivalent:
- is a multiple of
- is divisible by
- is a divisor of
- divides
If and then we say that is a proper divisor of Given an integer we denote the set of all factors of with and a member of this set with
Briefly returning to the integer zero, we can always express zero in terms of another integer
Consider the following patterns of multiples:
These patterns correspond to the multiples of an integer in 2 through 10, along the range from 0 to 20. Notice that we never see a multiple of before itself. This leads to the following:
lemma 0.1 Let If then
What the lemma above tells us is that, if we're searching for the factors of then our range is only between and The smaller is, the less we have to search. The larger is, the more we have to search. Of course, we aren't always so lucky to get a small Are there ways to make our range smaller?
Compare the factors of 6 and the factors of 18:
Notice that the factors of of 18 are also the factors of 6. Is there a relationship here? Well, suppose and This means that we can write and where and are integers. If we multiply them:
Given the multiplication is closed on the integers, we know that is an integer. And since is an integer, we know that Thus, we have the following:
lemma 0.2 Let If and then
Another way to view this lemma: If and then we can write in terms of And if we can write in terms of then we can write in terms of For example:
This observation leads to another lemma. If we know that then it must be the case that for any integer Suppose Because multiplication is closed on the integers, is an integer. Therefore, And since it follows that
lemma 0.3 Let If then for any integer
Consider the factors of and the factors of
If we add 8 and 10 together, we get Let's compare the factors of 18 as well:
Notice that the factors shared here are and That is,
We can generlize this result. If and then from the definition of divisiblity, we can write and where and are integers. Which means that if we add and we get:
And since multiplication and addition are closed on the integers, the term is also an integer. Thus, we have the following lemma:
lemma 0.4 Let and be integers. If and then
This lemma leads to a particularly important corollary. Suppose and From lemma 0.3, we know that we can rewrite these statements as and where and are integers. And lemma 0.4 just showed us that we can then rewrite this as Thus, we have the following corollary:
corollary Let If and then for all integers and
Prime Numbers
In the previous sections, we saw that integers can be broken down into smaller integers, called the integers factors, or divisors. This results from the fact that is a divisor of every natural number, and every natural number is a divisor of itself. Thus, every natural number has at least two positive divisors. This means that we have a split among the integers greater than 1. Those that have exactly two divisors, and those that have more.
prime number Let be an integer greater than Then is prime if, and only if, its only divisors are and We denote the set of all primes as and if is prime, we write
composite number. Let with and Then is a composite number if, and only if, with and
We can think of primes as being the "end of the road" integers. If we encounter a prime then we have only two ways of expressing it: or The first prime is defined to be Why? Because the factors of are all the integers. The integer isn't prime because if it were, it would make the definition of prime useless. We could simply write any prime as in which case 's divisors wouldn't just be and itself — it has infinitely many divisors of The integer however, is a very special number. It's the only positive integer that's neither prime nor composite. It's not prime by definition. However, it's not composite either because it's Because of this special status, the number is sometimes called the unit number.
This hints at why primes are so special — they're unique. The only way to express a prime is by either writing or And since we can really only express as, well, For example, can be written as Hence the name composite — we can decompose into The integer however, can't be decomposed. Our only options are and
The Sieve of Eratosthenes
Consider the following pattern, where non-primes are greyed out.
2 | 3 | 5 | 7 | ||||||
---|---|---|---|---|---|---|---|---|---|
11 | 13 | 17 | 19 | ||||||
23 | 29 | ||||||||
31 | 37 | ||||||||
41 | 43 | 47 | |||||||
53 | 59 | ||||||||
61 | 67 | ||||||||
71 | 73 | 79 | |||||||
83 | 89 | ||||||||
97 |
As we get further and further down, there are less and less primes. This particular pattern is called the Sieve of Eratosthenes, defined by the following algorithm.
Sieve of Eratosthenes
- input:
- output: A list where are the factors of
- init
- init
- while and do
- init
- while do
- if then
- if then
- return
Broadly, the algorithm works as follows: We loop from to eliminating all multiples of Then we go to the next number, and eliminate all of its multiples. was eliminated when we eliminated 's multiples, so we go to Eliminate all of 's multiples. This continues all the way up to our desired number. That's the broad description. What exactly is that term? This question brings us to the notion of the semiprimes.
Semiprimes
semiprime. Let be a positive integer. Then is a semiprime if, and only if, there exists a prime number and a prime number such that If we say that is a square-semiprime. If we say that is a squarefree-semiprime.
Below is a sample pattern of square-semiprimes.
If examine this integer reference we see that each square semiprime is the smallest composite number whose prime divisors are no less than For example, only has one prime divisor, So, is the smallest composite number whose prime divisors are no less than Likewise, 's only prime divisor is Thus, is the smallest composite number whose prime divisors are no less than
This stems from a fact we've seen earlier: Given an integer the factors of will lie between and This means that the largest factor of is itself. We can also infer that any integer of the form is a composite number by definition, since is the product of two integers other than and
Suppose we're given the following facts:
- :
- : is composite.
- : is a factor of
- :
- : is a factor of
- : is prime.
We can therefore infer the following:
- :
- :
- :
- :
- :
- : has a prime divisor less than namely,
Our conclusion doesn't seem all that interesting until we consider its contrapositive: If has no prime divisors less than then or Since proposition tells us that can't be true, so it must be the case that This statement, however, can be narrowed further: Because of proposition we know that This leads to the following lemma.
lemma. Let be a positive integer and be a composite number. If has no prime factors less than then has no factors less than
Now let's connect this lemma with our discussion of square-semiprimes. By definition, a square semiprime is a composite number — it's the square of two primes, Given a composite number it follows that has a divisor that is less than If it turns out that is prime, it must be less than Why? Because if then And if then which contradicts the fact that The lemma we just proved tells us that if has no prime factors less than then has no factors less than Which means that, if we want to find all of the prime factors of an integer we only need to check for prime divisors less than or equal to
corollary. Let with and denoting the least prime factor of Then
Integer Reference
Below is a table of factors for reference.
factors | prime factors | properties | |
---|---|---|---|
unit number, neither prime nor composite | |||
perfect square, square semi-prime | |||
perfect square, square semi-prime | |||
perfect square | |||
perfect square, square-semiprime | |||
perfect square | |||
perfect square, square-semiprime | |||