Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures
|
|
|
- Hester Anthony
- 10 years ago
- Views:
Transcription
1 Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005
2 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it in Budapest. So before we get started lets just talk about a few really cool reasons to take number theory. For example but the end of the course you will have the entire proof of Fermat s Last Theorem memorized, or at least if you want to pass you will! This book is based on the Number Theory lectures in the Spring of It will be the basis for my senior thesis that will be completed by May This means, you are reading a work in progress. I know people often complain about math books, that they are poorly written, or missing something important, or hard to understand, or boring, or that the jokes are awful or that math books shouldn t have jokes. If you have any or all of these problems with this book and a suggestion for improvement me at [email protected] or pass the comment along to Csaba. I m sure neither of us would want another semester of BSMers to suffer through a bad textbook for Number Theory.
3 Chapter 1 The Boring Part 1.1 Divisibility The concept of divisibility is widely used in number theory. All of you already have an intuitive sense about divisibility but formalizing the idea is crucial to writing proofs. Definition Divisibility Given two integers a and b, we say a divides b if and only if there exists an integer c such that b = ac. In symbols we write, a b c : ac = b. We will give special consideration when a or b equal 0. Zero only divides 0. This follows from the definition because 0 c b unless b = 0. Every non-zero integer divides zero since a 0 = 0 for any value of a. There are a number of basic yet frequently used theorems that follow from the definition of divisibility. Theorem Divisibility Properties 1. a b implies a bc for any integer c 2. a b and b c imply a c 3. a b and a c imply a (bx + cy) for any integers x and y 4. a b implies a b 5. a b and b a implies a = ±b 3
4 4 CHAPTER 1. THE BORING PART 6. a b if and only if ma mb as long as m 0 Each of these statements can be proven using the definition of divisibility. You can try to figure out the proofs yourself and check them below. 1. Assume that a b. By the definition of divisibility this means there exists an integer k such that b = ak. Multiply both sides by c to get bc = akc. Since both k and c are integers kc is an integer, call it k Thus a bc because we found an integer k such that bc = ak. 2. Assume that a b and b c. By definition there exists integers k 1 and k 2 such that b = ak 1 and c = bk 2. Substitute the value ak 1 for b in the second equation to get c = ak 1 k 2. Let k 3 = k 1 k 2 and note that k 3 is an integer. Thus c = ak 3 and by definition a c. 3. Assume that a b and a c. By property 1. we know that a bx and a cy for any integers x and y. By definition bx = ak 1 and cy = ak 2. We can add these two equations to get bx + cy = ak 1 + ak 2. Factoring we get bx + cy = a(k 1 + k 2 ). It s easy to see that k 1 + k 2 is an integer so a bx + cy by definition. 4. Assume that a b. Well by definition b = ac where c is an integer. The absolute value of all integers is greater than or equal to 1 so if we are multiplying a by something at least 1 then b must be greater than or equal to a. I don t have a rigorous definition of absolute value for this proof. 5. Assume a b which implies b = ax for some integer x. Also assume b a, which implies a = by. Substitute by for a to arrive at the equation b = byx. It follows that xy = 1 or x = ±1 and y = ±1. Hence, a = ±b. 6. Assume a b. This implies that b = ax for some integer x. Note that b = ax if and only if mb = max for some integer x, as long as m 0. The definition of divisibility tells us ma = max is equivalent to ma mb and b = ax is equivalent to a b. Although these proofs are fairly simple and not terribly exciting, they show the importance of being able to use the definition of divisibility.
5 1.2. THE DIVISION ALGORITHM The Division Algorithm The Division Algorithm is the formalization of a concept that already makes intuitive sense to those familiar with long division. If we divide any integer into another one, we always find a unique quotient and remainder. In grade school life was simple; there was always just one answer to our math assignments. Theorem Division Algorithm For any integers a and b with b 0 there exists values q and r such that a = bq + r and r b Proof : Assume that a 0 and b 0. If a = 0 then q and r must be zero. Examine the sequence of decreasing integers given by a b, a 2b, a kb Subtract multiples of b from a until the value of a kb is between 0 and b. If 0 < a kb and b < a kb then we can consider 0 < a (k + 1)b. This new value is greater than 0 and hopefully smaller than b. If not, we can continue the process until 0 < a kb < b. There is only one value of a kb between 0 and b and it is equal to our remainder r. Therefore, r = min{a kb k Z} where 0 r < b. We can see that our value of k is unique and corresponds to our quotient q. Using this method we can always find q and r. You may have noticed that the Division Algorithm is true for all integers but that we have only proved it when a and b are positive. A very similar proof works when we have negative values. If a = bq + r then a = b( q) + ( r). Changing the signs does not matter. 1.3 The Euclidean Algorithm In this section we will define an algorithm that is the basis for many ideas in number theory. It is closely related to a concept that everyone who paid even a little bit of attention in middle school should know, namely, the greatest common divisor. Before looking at the algorithm that finds the greatest common divisor, we will revise our definition so that we can consider it in a more sophisticated manner.
6 6 CHAPTER 1. THE BORING PART Definition Distinguished Common Divisor a.k.a GCD We say that d is the distinguished common divisor of two numbers a and b if it satisfies the following two conditions. First d a and d b. And second, if c a and c b then c d. These two conditions say that the distinguished common divisor must divide both a and b and if there is any other number, c that divides both a and b it must also divide the distinguished common divisor. Note that in the integers this translates directly to the idea of greatest. If all of the other divisors of two numbers divide d, it must be the greatest one. We purposefully avoid using the idea of greatest so that we can extend the definition to polynomials and complex numbers where greatest does not make sense. Now we will define the distinguished common divisor in terms of the Euclidean Algorithm. Because of the Division Algorithm, if we divide b into a we find a unique quotient and remainder. If we divide the remainder, r 1, of this division into b, we again find a unique quotient and remainder. a = bq 1 + r 1 b = r 1 q 2 + r 2 r 1 = r 2 q 3 + r 3.. r k 3 = r k 2 q k 1 + r k 1 r k 2 = r k 1 q k + r k r k 1 = r k q k We eventually find a remainder of zero because our remainders are a descending sequence of positive integers. Note that r i+1 < r i. Mathematicians with a superior Hungarian education call r k the distinguished common divisor. The distinguished common divisor corresponds to the last remainder r k in the Euclidean Algorithm. In the integers the positive distinguished common divisor corresponds exactly to the familiar greatest common divisor. At first glance you may wonder why we are making the definition of the greatest common divisor so complicated and giving it a new name, when the definition we already know is so simple. Up to this point we have only been considering integers but as long as we are only using notions of divisibility we can extend our ideas to other types of numbers or mathematical objects. Those familiar with algebra would call these objects rings. For example this new definition of the distinguished common divisor makes sense when a and
7 1.3. THE EUCLIDEAN ALGORITHM 7 b are polynomials or complex numbers. However, we can not logically talk about a greatest polynomial or greatest complex number. Theorem The last remainder, r k in the Euclidean algorithm starting with the numbers a and b is the distinguished common divisor of a and b. Proof To prove that r k is a divisor we first show that r k a and r k b. To show that r k is a distinguished divisor we must show c a and c b implies c r k. Our proof begins with the fact that r k 1 = r k q k By the definition of divisibility we see that r k r k 1. Division rule 1. tells us that r k r k 1 implies r k q k r k 1. If we know that r k r k and r k q k r k 1 then division rule 3. tells us that r k divides the sum. Hence r k r k 1 q k + r k = r k 2 We ve shown that r k r k 2. By the same logic, if we know that r k r k 1 and r k r k 2 then we can show that r k r k 3. By continuing this process up the Euclidean Algorithm we see that r k a and r k b. Now that we have proved that r k is a common divisor, we must prove that it is distinguished. To do this we prove that any number that divides a and b also divides r k. Assume c a and c b c b c bq 1 If we know that c a and c bq 1 then it must also divide the difference, therefore, c a bq 1. This difference however is the same as our first remainder since, a bq 1 = r 1. Repeating the process we see that c r 1 and c b c b r 1 q 2 = r 2 By continuing this process until we reach the end of the Euclidean Algorithm we see that c r k. We can translate these ideas of divisibility back to our familiar notions of the greatest common divisor as long as we note that we are limiting ourselves to numbers where the idea of greatest makes sense. Since c divides r k it must be less than or equal to r k. Thus, r k is the greatest common divisor. Note that every divisor of both a and b divides the greatest common divisor. From now on we will just refer to the distinguished common divisor as the greatest.
8 8 CHAPTER 1. THE BORING PART 1.4 Greatest Common Divisor Now that we have defined the greatest common divisor in terms of the Euclidean Algorithm we will state and prove a few of its important properties. In number theory the greatest common divisor of a and b is denoted by (a, b). Theorem GCD is a Linear Combination If g is the greatest common divisor of a and b, then there exist integers x and y such that g = (a, b) = ax + by. Furthermore anything written in the form ax + by where x and y range over all integers is divisible by the greatest common divisor. Proof The proof of this fact is a direct extension of the Euclidean Algorithm. Remember that the Euclidean Algorithm tells us that a = bq 1 + r 1 b = r 1 q 2 + r 2 r 1 = r 2 q 3 + r 3. r k 1 = r k q k We are now trying to write r k as a linear combination of a and b. By applying simple algebra to the equations from the Euclidean Algorithm we see that r 1 = a bq 1 r 2 = b r 1 q 2 We can replace r 1 in the expression for r 2 so that we still have a linear combination of a and b. This gives us r 2 = b (a bq 1 )q 2 or equivalently r 2 = b(q 1 + 1) + a( q 2 ) By continuing this process of substitution, we arrive at an expression for r k that is a linear combination of a and b. Thus there exists x, y Z such that r k = (a, b) = ax + by. Now that we have shown that we can write (a, b) = ax + by we will show that (a, b) divides ax + by for all values of x and y. By the definition of the
9 1.4. GREATEST COMMON DIVISOR 9 G.C.D we know that (a, b) a and (a, b) b. Property number 3 of divisibility tells us that (a, b) ax + by We can also say that ax + by is always equal to a multiple of the greatest common divisor. This follows because we can write {ax + by x, y Z} = {(a, b)z z Z} z(a, b) = z(ax 0 + by 0 ) = a(zx 0 ) + b(zy 0 ) If we translate these ideas back to the common man s definition of greatest common divisor, we say that the greatest common divisor is the smallest positive value of ax + by as x and y range over all of the integers. The advantage to defining it the other way is that we use only the notion of divides which can easily be extended to number systems where the idea of smallest doesn t make sense Properties of the GCD The greatest common divisor has a number of other properties that are often useful in proofs. Theorem Properties of the GCD 1. (ma, mb) = m(a, b) 2. (a, b) = (a, a + b) 3. (a, b) is unique up to sign To prove that two expressions are equal in number theory it suffices to show that the left side divides the right and the right side divides the left. Proof of Property 1 First we show that (ma, mb) m(a, b) and then m(a, b) (ma, mb). We know that (ma, mb) (ma)x + (mb)y for all x, y Z Thus (ma, mb) m(ax + by)
10 10 CHAPTER 1. THE BORING PART Because we can write a greatest common divisor as a linear combination there exists x 1, y 1 Z : (a, b) = ax 1 + by 1 In particular (ma, mb) m(ax 1 + by 1 ). Thus (ma, mb) m(a, b). We will now do the proof in the other direction. Note that m(a, b) ma and m(a, b) mb If a number divides ma and mb it must also divide the g.c.d. Therefore m(a, b) (ma, mb) By putting both halves of the proof together we conclude that (ma, mb) = m(a, b). Proof of Property 2 First we show that (a, b) (a, a + b). Because of the definition of the greatest common divisor we know that (a, b) a and (a, b) b. This implies that (a, b) a +b. The definition of the greatest common divisor tells us that (a, b) (a, a + b). Now we will prove that (a, a + b) (a, b). By the definition of the greatest common divisor we see that (a, a + b) a and (a, a + b) a + b If something divides two number it divides the difference. This simplifies to (a, a + b) a + b a (a, a + b) b Since (a, a + b) divides a and b by the definition of the greatest common divisor we know that (a, a + b) (a, b) Proof of Property 3 Now we will prove that the greatest common divisor of two numbers is unique. Assume d 1 and d 2 are both g.c.d. s. All divisors of a number divide the g.c.d so d 1 d 2 and d 2 d 1 By the definition of divisibility we know d 1 = d 2 y and d 2 = d 1 x
11 1.5. RELATIVELY PRIME 11 Substituting we get This equation is only true if d 2 = d 2 xy Thus xy = 1 x = ±1 d 1 = ±d 2 If two numbers both share the properties of the greatest common divisor they must be the same number up to sign. 1.5 Relatively Prime If you asked a man on the street to define relatively prime, he would say two numbers are relatively prime if they have no divisors in common. All prime numbers must be relatively prime to each other and composite numbers are relatively prime if their prime factorization s have nothing in common. Although everyone is already familiar with the ideas of primes and factorization we will define relatively prime using only the ideas we that have already been presented. In the language of the greatest common divisor we say that a and b are relatively prime if and only if (a, b) = 1. We will state two new theorems using the idea of relatively prime. Theorem Relatively Prime If (a, m) = 1 and (b, m) = 1 then (ab, m) = 1. Proof To prove this we use the fact that the greatest common divisor can be written as a linear combination. 1 = ax 1 + my 1 1 = bx 2 + my 2 Multiplying the two equations together we get We factor out an m to get 1 = abx 1 x 2 + ax 1 my 2 + bx 2 my 1 + my 1 my 2 1 = ab(x 1 x 2 ) + m(ax 1 y 2 + bx 2 y 1 + my 1 y 2 )
12 12 CHAPTER 1. THE BORING PART We have shown that a linear combination of ab and m is equal to 1. (m, ab) ab and (m, ab) m (m, ab) ab(x 1 x 2 ) + m(ax 1 y 2 + bx 2 y 1 + my 1 y 2 ) Thus (m, ab) 1 Since (m,ab) is a positive integer if it divides 1 it must be equal to 1. If we are just dealing with the integers, we can note that the g.c.d is the smallest possible linear combination of ab and m. If we show that a linear combination is equal to 1, it must be the smallest since 1 is the smallest positive integer. You d be surprised how helpful that statement can be! Theorem Theorem If a bc and (a, b) = 1 then a c. In more colloquial language this says that if a and b have no factors in common then if a divides bc it must divide c. Proof Because a and b are relatively prime we know that 1 = ax + by. Multiply both sides of the equation by c to get c = cax + cby. It s clear that a cax and we know that a cby by assumption so we see that a c. Least Common Multiple The least common multiple is an idea closely related to the greatest common divisor. The least common multiple of integers a and b is the smallest number that they both divide. The least common multiple, c, of a and b is denoted c = [a, b]. If c = [a, b], then for any integer d, a d and b d c d Problems
13 Chapter 2 Prime Numbers Prime numbers are so exciting because they are the building blocks of every number and are the focus of many exciting conjectures and theorems in number theory. Also there are a number of people who delight in finding big primes or cool primes such as... If you asked a man on the street to define a prime number, he might give you a number of definitions that more or less were correct. In number theory, however, we will use the following definition of prime. Definition Prime Number p is prime if and only if p ab p a or p b This definition should make intuitive sense to you. If a prime number divides 15 it must either divide 5 or 3. If the a prime divides a number it is equal to one of its prime factors. 2.1 Irreducible vs. Prime In this section we will discuss the similarities and differences between irreducible and prime numbers. Over the integers the two ideas are equivalent. Two idea are equivalent if they imply each other. In this case, knowing a number is prime implies it is irreducible and if we know it is irreducible it implies it is prime. In other sets, such as the even integers, the definitions are not equivalent and we can find prime numbers that are not irreducible. Definition Irreducible We say that f is irreducible if a f implies a = ±1 or ±f 13
14 14 CHAPTER 2. PRIME NUMBERS We could also say that f is irreducible if f = ab implies a or b = ±1. Even though this seems similar to our earlier definition of prime, the following examples will illustrate the difference. Example Consider the even integers, denoted 2Z. Over the even numbers, 2 is irreducible because a 2 a = ±2 or a = ±1. Over the evens, 6 is also irreducible because even though 6 = 2 3 we have not reduced our number because 3 2Z. In fact 2 does not divide 6 because there does not exist x 2Z such that 2x = 6. We can extend this idea to prove that 2 times any odd number is irreducible over 2Z. If x is reducible, then x = ab where a, b 2Z. Since a and b are even we can write them in the form a = 2a and b = 2b. Thus x = 4a b and is therefore divisible by 4. Since x = 2 odd and odd numbers have no factors of 2 we know x cannot be divisible by 2 2. Thus a and b cannot both be even numbers. Over the even integers prime numbers also behave differently. For example the number 10 is prime because it can not be written as the product of two even numbers. Over the evens 2, 6, 10, 14 are prime while the numbers 4, 8, 12 are composite. Note that 2 2 because 1 2Z. Also over the even integers factorization is not unique. For example 60 = 2 30 = Even though the distinction between irreducibility and prime is a bit counterintuitive in the even integers, it will seem more familiar when we consider all integers. Theorem Irreducible vs. irreducible if and only if it is prime. Prime Over the integers a number is Proof Assume that p is prime with p = ab. By the definition of divisibility we see that a p and by the definition of prime we see that p a or p b. If p a then a = ±p and b = ±1. If p b then using the same logic p = ±b and a = ±1. This is the definition of irreducible. Now for the other way. Assume that f is irreducible. Suppose f ab. Note that (f, a) = f if f a If f a then a = ±1 since f is irreducible. Thus (f, a) = 1. By the Euclidean Algorithm 1 = fx + ay
15 2.2. NORMS 15 Multiplying by b we get It is obvious that and by assumption These two statements imply that b = fbx + bay f fb f ba f b We have shown that if f ab then f a or f b, so f must be prime. Now we will use the definition of prime to prove another theorem. Theorem Prime Divisor p a 1 a 2 a n i such that p a i Proof p a 1 (a 2 a n ) implies p a 1 or p a 2 a n. If p a 1 then i = 1 and we are done. If not, then p a 2 (a 3 a n ). Thus p a 2 or p a 3 a n. By continuing this process we will find i such that p a i. 2.2 Norms We have already considered the concept of primes and irreducibility over Z and 2Z. Now we will introduce a new class of numbers that behaves differently when factored. It is represented by a + b x where a, b, x Z. In these numbers we define the concept of a norm as N(a + b x) = a 2 + xb 2. Defining the norm is useful to our consideration of prime numbers because of the following two properties. Theorem Properties of the Norm 1. If a b then N(a) N(b) 2. N(a + b x)n(c + d y) = N((a + b x)(c + d y)) These properties are easy to check if you cannot recall them from the complex numbers. We will use these two ideas to factor 6 over the class of numbers represented by a + b 5. We factor 6 in two ways 6 = 2 3 = (1 + 5)(1 5)
16 16 CHAPTER 2. PRIME NUMBERS Now we will check to see if 6 is prime in the ring a + b 5. We know that (1 + 5) 2 3 Using the definition of the norm we calculate and also calculate It is easy to see that Since N(1 + 5) = = 6 N(2) = 4 and N(3) = and 6 9 N(1 + 5) N(2) or N(3) property 1. of Theorem tells us that and We have proven that 6 is not prime. It is, however, irreducible over a+b 5. To prove irreducibility we must show that if 6 = xy then x or y = ±1 Let Take the norm of both sides to get Thus = S 1 S 2 N(1 + 5) = N(S 1 )N(S 2 ) 6 = N(S 1 )N(S 2 ) Note that the norm of any number is always a positive integer. Thus the possibilities for N(S 1 ) are 1, 2, 3 and 6. By checking each of these possibilities we see that N(S 1 ) = ±1, 6. Assume that N(S 1 ) = a 2 + 5b 2 = 2. We see that b must equal 0 forcing a 2 = 2. There are no integers satisfying this equation so N(S 1 ) 2. By the same logic a 2 + 5b 2 = 3 has no solutions. Again b must equal 0 and we must find an integer such that a 2 = 3. Thus N(S 1 ) 3. If we let a = ±1 and b = ±1, N(S 1 ) = = 6. N(S 1 ) = 6 N(S 2 ) = 1 Thus if 6 = N(S 1 )N(S 2 ), N(S 1 ) or N(S 2 ) must equal ±1. Thus is irreducible over this class of numbers.
17 2.3. THE FUNDAMENTAL THEOREM OF ARITHMETIC The Fundamental Theorem of Arithmetic The Fundamental Theorem of Arithmetic is a very useful theorem in Number Theory that is used over and over again in proofs. This idea is one of the oldest in mathematics and was expressed by Euclid 2300 years ago in The Elements. Just because it s cool math trivia I ll mention that The Elements has appeared in more editions than any other work besides the Bible.(Katz 58) Fundamental Theorem of Arithmetic 1. Every integer except 0 and ±1 can be uniquely written as a product of primes up to order and sign. Up to order and sign means that even though we can factor 6 as 2 3 = 3 2 = ( 2)( 3) = ( 3)( 2) we still count it as a unique factorization. We will prove this theorem by assuming that a number is factored in two ways and then use Theorem to show that the factors must be equivalent to each other. In the following proof pay special attention to the distinction between prime and irreducible. Proof Assume we can factor a number in two ways such that Because p 1 is a prime p 1 p 2 p k = q 1 q 2 q l p 1 q 1 q l i such that p 1 q i Because q i is irreducible, we know that Since p 1 is prime it cannot be ±1 so p 1 = ±1 or ± q i p 1 = ±q i We can then cancel these from our equation p 1 p 2 p k = ±q 1 q 2 q i q l By continuing to cancel out primes in the same manner we show that if there is a factorization it must be unique. We have yet to prove that there exists a factorization for any number, n. If n is irreducible then it is already written as a product of one prime and we are done. Assume that n = a 1 a n If a i is irreducible then leave it. If a i is not irreducible then write a i = b 1 b n. The absolute values of a and b are decreasing. Since we have a decreasing sequence of positive integers it must stop at a prime factorization.
18 18 CHAPTER 2. PRIME NUMBERS Another Proof Csaba is going to send me a reference for this proof that has been very well written by three Hungarians. Assume that there exists two factorizations. If p 1 = q 1 divide and continue. By the Division Algorithm, I m confused about this proof. p 1 p n = q 1 q l n = p 1 q 1 A + B B < p 1 q 1 p 1 B and q 1 B p 1 q 1 < B p 1 B B = p 1 B 1 a P 1 B 1 Order in increasing order 2.4 There are infinitely many primes It has been known for thousands of years that there are infinitely many primes. Although we can not easily find gigantic primes because we have no formula that generates primes, we can show that there are infinitely many in a number of ways. Here is a classic proof first discovered by Euclid in 3 B.C. Theorem There are infinitely many primes Proof Assume that p 1 p 2 p k are the only primes. Construct a new larger number N = p 1 p 2 p n +1. We can easily prove that p N by contradiction. Assume p N. Then p 1 N p 1 p k. This implies p 1 1 which is a contradiction. Since we know that none of our original primes divide N we can write N as the product of new primes not equal to p i for any i. If N = q 1 q l then q 1 is a new prime. To be complete we must check that N ±1 or 0. Since we can list quite a few primes such as 3, 5, 7 we know N must be bigger than 1 and our proof does not have to deal with the problems that might arise if N = 0 or ±1. If N = 0 or ±1 then we cannot assume that it has a prime factorization.
19 2.5. A NUMBER OF COOL RANDOM PRIME FACTS A Number of Cool Random Prime Facts Now that we ve convinced you that there are infinitely many primes it is natural to ask more questions about what prime numbers are like and how often they occur. For example one might notice that = 2 and = 5 and wonder if there are infinitely many primes of the form p = x If you are curious to know the answer to this question, you are out of luck, unless of course you can think of a proof that has evaded the rest of the math community. If you are that smart, you should probably be taking Topics in Number Theory! We might also note that 2! + 1 = 3 and 3! + 1 = 7 and wonder if we could find infinitely many primes of the form p = n! + 1. Unfortunately, mathematicians do not have an answer to this question either, though they can tell you that there are infinitely many composite numbers of the form n! + 1. Asking whether or not there are infinitely many prime numbers of the form a n 1, leads to a number of interesting facts in number theory, even though this problem is also unsolved. Start by noticing that we can factor the difference of squares according to the following useful formula: a n b n = (a b)(a n 1 + a n 2 b + + b n ) Using this formula we see that a n 1 = (a 1)(a n 1 + a n ). Therefore a 1 a n 1. Prime numbers are only divisible by themselves and 1, so if a n 1 has a chance of being prime a 1 = 1 or a 1 = p. If a 1 = p then a 1 = a n 1 and a = a n. In this case a n = 1 and a n 1 = 0. Thus we see that a 1 = 1. It follows that a n 1 = p a = 2. We have found a necessary condition to make a n 1 prime but not a sufficient one = = 15 Obviously, 7 is a prime and 15 is not. Although it is easy to check for small numbers we have to come up with new methods to determine if, for example, is prime. Note that (2 401 ) Based on this example we conjecture that if a n 1 is prime then a = 2 and n is prime. We can show this by noting that 2 ab 1 = (2 a ) b 1 b. This implies
20 20 CHAPTER 2. PRIME NUMBERS that 2 a 1 2 ab 1 b. We still have only a necessary condition and not a sufficient one. For example We don t know if there are infinitely many primes of the form 2 p 1. Primes of this form are called Mersenne primes after the mathematician who first observed them. Insert interesting fact, Mersenne s time period. We have discovered 43 Mersenne primes the biggest one being 2 30??????? 1. At you can join the search for gigantic primes and if your computer finds one that is over 200 digits long you can earn money. Since we have considered primes of the form 2 n 1 it is only natural to ask about primes of the form 2 n + 1. We start our hunt and see that = = = = = 33 Our hunt for primes was moderately successful, yielding 3 and 17. Unfortunately every other number we found was divisible by three. This leads us to conjecture that 3 2 odd + 1. Since we have already checked the base case, we will proceed to prove this fact by induction. Assume Rewrite our equation as Multiply both sides by 4 to get 2 2k = 3l 2 2k+1 = 3l k+1 = 12l 4 Combine the left side using elementary rules of exponents and factor the right side somewhat creatively to get Let 4l 1 = l. Rearranging our equation again 2 2k+2+1 = 3(4l 1) 1 2 2(k+1)+1 = 3l 1 2 2(k+1) = 3l
21 2.5. A NUMBER OF COOL RANDOM PRIME FACTS 21 By induction we have shown that if the condition is true for the odd number 2k + 1 it is true for the next odd number 2(k + 1) + 1. This shows us that if we have any hope of 2 n + 1 being prime n cannot be odd. There are plenty of even values of n, however, that do not yield prime numbers. For example The following identity will be helpful in defining another necessary condition on n. a 2n+1 + b 2n+1 = (a + b)(a 2n a 2n 1 b + + b 2n ) Using this identity we can rewrite as (2 2 ) = ( )( ) so it must be composite. Whenever n has an odd divisor we will always be able to factor it using this identity. Thus if 2 n + 1 is prime n must have no odd divisors. If we let n = 2 k then we are assured that n will have no odd divisor. Primes of the form 2 2k + 1 are called Fermat primes after the amateur mathematician Fermat who conjectured that every number of this form was prime. Unfortunately for Fermat, Euler convincingly disproved his conjecture by discovering that In fact, we have only found 5 Fermat primes and we still don t know if there are infinitely many primes of this form. We denote the kth Fermat number as F k = 2 2k + 1. Although we are not sure how many Fermat primes there are, we can prove interesting and useful properties of the Fermat numbers. Theorem Fermat NumbersAll Fermat numbers are relatively prime to each other or in other words, (F k, F n ) = 1 Proof To prove that the greatest common divisor of two Fermat numbers is 1 we first factor F n 2 then use this factorization in a proof by contradiction. By the definition of Fermat numbers F n 2 = 2 2n We can rewrite this as (2 2n 1 ) It is now possible to factor the expression to yield (2 2n 1 1)(2 2n 1 + 1) Notice that 2 2n 1 1 = F n 1 2 and 2 2n = F n 1. Thus F n 2 = F n 1 (F n 1 2)By continuing to factor in the same way we see that (F n 1 2)(F n 1 ) = (F n 2 2)(F n 2 )F n 1
22 22 CHAPTER 2. PRIME NUMBERS If we continue to factor in this way we arrive at the equation (F 0 2)F 0 F 1 F 2 F n 3 F n 2 F n 1 = F n 2 But we know how to calculate F 0 F 0 2 = (( ) 2) = 1 Thus we can ignore F 0 2 Now we want to prove that all Fermat numbers are relatively prime by contradiction. Assume p F k and p F n. This means that (F n, F k ) = p. If p midf k it must also divide p F 0 F k F n 2 F n 1 because we have simply added on more numbers. From above we know that this number is equal to F n 2. Thus p F n 2 Since p F n and p F n 2 we know p 2. Since p is prime p = 2. But Fermat primes are odd so by contradiction (F n, F k ) = 1 Now we will use this fact to prove our favorite result. Theorem There are Infinitely Many Primes There are more primes in the world than grains of sand. Proof Consider the Fermat numbers F 0, F 1, F 2, F k. Although we do not know if there are infinitely many Fermat primes, it is obvious that there are infinitely many numbers of the form 2 2k + 1 because we can choose infinitely many values for k. Each Fermat number has a prime divisor. Let p 0 F 0, p 1 F 1 and so on. We claim that these are distinct primes and prove it by contradiction. Assume p i F i and p i F j. Then p (F i, F j ). But we have already proved that the greatest common divisor of two Fermat numbers is 1. Hence, there are infinitely many primes. Gigantic Gaps Between Primes Early on in the integers, primes are plentiful and we hardly have to travel far at all to go from on to the next. As we travel further into the integers, however, the frequency of primes decreases and the gaps between them grow larger. In fact, given any integer n we can find a, a + 1,, a + n such that none of them are prime. We know that
23 2.5. A NUMBER OF COOL RANDOM PRIME FACTS 23 (n + 1)! + 2 is composite because 2 (n + 1)! and 2 2. By the same logic we see that (n + 3)! + 3 is composite. This works for any value of i that is less than n. Thus (n + 1)! + i is composite because it is is divisible by i. Our last number that we know for sure is composite is (n + 1)! + n + 1 because n + 1 (n + 1)! + n + 1. We have found n composite numbers in a row. Thus we can find arbitrarily big gaps between prime numbers Canonical Form Because of the Fundamental Theorem of Arithmetic we can write each number as a product of primes. We write n in canonical form as n = p α i i We call this extended canonical form if our exponents α can be equal to zero. In this case we write n as a product of all primes in order and give the ones that are not in the prime factorization an exponent of zero. Theorem Lemma d n if and only if d = p β i i where β i α i Proof If d n then n = d d. Rewriting this in canonical form we see that p α i i = q γ i i r β i i Using basic multiplication rules we see that γ i + β i = α i so β i α i. Using this lemma, we can express the greatest common divisor and least common multiple in canonical form. Theorem Lemma If we can write two numbers in canonical form, we can find the greatest common divisor. If n = p α i i and k = p β i i then (n, k) = p min(α i,β i ) i Proof To show something is the greatest common divisor we must show that it divides both of the numbers. Let d = p min(α i,β i ) i
24 24 CHAPTER 2. PRIME NUMBERS To satisfy the definition we must show d k and d n We know that d divides k and n because of Lemma To prove that it is the greatest common divisor we must also satisfy the second part of the definition. All numbers which divide n and k also divide d. This is true because by Lemma we know that if a number divides n and k then all primes in the canonical expression of our number have exponents less than those in the canonical expression of n and k. Thus the number of primes in the divisor is less than or equal to the minimum of the exponents in n and k. We could also think that the greatest common divisor is d because it is the biggest number that divides both. If we had a number bigger than d then it would have an extra prime in its factorization and it would no longer divide both n and k because it s exponent would be bigger than the minimum value.
25 Chapter 3 Congruences Now it is time to introduce the idea of congruence or equivalently modular arithmetic. This new idea is defined using the idea of divisibility that we have already examined in detail. Analyzing numbers using modular arithmetic will prove very fruitful in number theory. Tell them something else of value here. Definition Congruent We say a b(m) if m a b. In words, a is congruent to b modulo m if and only if they have the same remainder on division by m. It is good to note that is an equivalence relation. a b(m) b a(m) (3.1) a a(m) (3.2) a b(m) and b c(m) a c(m) (3.3) It is easy to understand why these equivalence relations hold when we consider that a is congruent to b when a and b have the same remainder on division by m. For example if a and b have the same remainder when divided by m and b and c have the same remainder on division by m, then a and c must also have the same remainder. Now we will prove that is an equivalence relation formally by using the definition of congruence. Proof (3.1) Prove a a(m). We know that m a a so by our definition of congruent a a(m). (3.2)Prove a b(m) b a(m). Assume a b(m). Thus m a b. By the definition of divides mk = a b. This implies m( k) = b a which means that m b a. By the definition of congruent b a(m). 25
26 26 CHAPTER 3. CONGRUENCES (3.3) Prove a b(m) and b c(m) a c(m). Assume a b(m) and b c(m). Thus, m a b and m b c. Using our division properties we see that m (a b) + (b c) or equivalently m a c. Thus a c(m). 3.1 Properties of Congruences Now we will assume that a b(m) and c d(m) and state and prove a number of useful properties of congruencies. (what word is the best to use here?) a ± c b ± d(m) (3.4) ac bc(m) (3.5) ac bd(m) (3.6) a n b n (m) (3.7) f(a) f(b)(m) where f is a polynomial (3.8) (3.4) To prove Theorem 3.4 note that by assumption we know that m a b and m c d. Thus m (a b) + (c d). By rearranging the terms we see that m (a + c) (b + d). Thus a + c b + d(m). (3.5) To prove Theorem 3.5 note that by assumption m a b so m (a b)c. Thus m ac bd and we have shown that ac bd(m). (3.6) To prove Theorem 3.6 start by assuming that m a b and m c d. Using the same idea as our proof of Theorem 3.5 we can show that m ac bc and m bc bd. Thus m ac bc + bc bd. Cancelling out bc we arrive at m ac bd which implies ac bd(m). (3.7) To prove Theorem 3.7 we apply Theorem 3.6 repeatedly. To begin we say that a b(m). Thus we can also say that aa bb(m) or a 2 b 2 (m). By repeating this process n times we arrive at a n b n (m). (3.8) To prove Theorem 3.8 we just apply the fact that a b a n b n (m) and ac bc(m). Now that you ve made your way through that, I promise that using these rules will be much more exciting than proving them. Now we are going to prove yet another exciting property of congruences. Theorem Cancelling ( Across ) Congruencies If a 0 then ax ay(m) if and only if x y. m (a,m)
27 3.1. PROPERTIES OF CONGRUENCES 27 This theorem is important because it shows us that the normal rules of cancellation do not apply in modular arithmetic. We can only divide by a like usual if (a, m) = 1. In symbols, if (a, m) = 1 then the following statement is true ax ay x y ( ) m Proof Start by assuming that x y Thus by the definition of (a,m) congruent m (a, m) x y If a number divides x y it also divides any multiple of x y so we see that m (a, m) a (x y) (a, m) If we use the original definition of divisibility this means that k m (a, m) = a (x y) (a, m) Now we can use our standard cancellation rules to find Thus km = a(x y) m a(x y) By distributing and applying the definition of congruent again we see that m ax ay ax ay(m) ( We have shown that our Theorem holds in one direction, namely x y implies ax ay(m). Now, assume that ax ay(m). By the definition of congruent we see Factoring we get m ax ay m a(x y) Divide both sides by the g.c.d of a and m m (a, m) a (x y) (a, m) m (a,m) )
28 28 CHAPTER 3. CONGRUENCES With a bit of thought we see that ( ) m (a, m), a = 1 (a, m) By dividing by the g.c.d. we are taking out all the factors a and m have in common. When we take the g.c.d of the new number there are no longer any common divisors. Since the g.c.d of is 1 we know that ( This is equivalent to x y m (a,m) m and (a,m) m (a, m) x y ). a (a,m) Theorem Congruencies and the LCM If we consider two integers x and y modulo m i we know, x y(m i ) if and only if x y([m 1, m k ]) Proof From Page 49 in my textbook If x y(m i ) for i = 1, 2, 3,, r, then m i (y x) for i = 1, 2,, r. That is y x is a common multiple of m 1, m 2,, m r, and therefore [m 1, m 2, m 3,, m r ] (y x). This implies x y(mod[m 1, m 2,, m r ]. Now we will prove the statement the other way. stuff from textbook ends here. Assume that x y([m 1, m 2, m k ]). That means that [m 1, m 2, m k ] x y. We know that m i [m 1, m 2, m k ] so m i x y. Using the definition again we see that x y(m i ). 3.2 Primes of the form 4k 1 Theorem There are Infinitely Many Primes There are infinitely more primes than seconds since the big bang. Now that we have defined the idea of congruence we can use it to prove, yet again, that there are infinitely many primes. But before we start our proof let us consider what the natural numbers look like mod 4. All numbers can be represented as either 4k, 4k + 1, 4k + 2 or 4k + 3 mod 4 because when we divide any number by k it must have a remainder of 0, 1, 2 or 3. Primes must be of the form 4k +1 and 4k +3 since 4 4k and 2 4k +2. For example we have 4(1) + 1 = 5 and 4(0) + 3 = 3. We will prove that there are infinitely
29 3.3. RESIDUE SYSTEMS 29 many primes of the form 4k 1 which is equivalent to primes of the form 4k + 3. This, of course, would imply that there are infinitely many primes. Proof Assume that there are finitely many primes of the form 4k 1. Denote them p 1, p 2, p l. Let N = 4p 1 p l 1 Since N is an integer we can write it as the product of primes. Note that N ±1, 0 because we know that 3 is a prime of the form 4k 1. Let N = q 1 q 2 q k We can show that p i q i by contradiction. Assume p i = q i. This means that p i N p i 4p 1 p l 1 We know that p i 4p 1 p i p l so p i 1. Since p i 1 we have shown by contradiction that p i N. This means that all p i must be distinct from all q i. Assume that all q i are off the wrong form, or q i = 4k + 1. q 1 1(4) q k 1(4) q 1 q 2 q n 1(4) But if we examine N mod 4 we see that N 1(4) Thus there must be at least on q i of the form 4k 1. Thus given any finite number of primes of the form 4k 1 we can always find a new one that is distinct. 3.3 Residue Systems The idea of a residue classes are closely related to congruence. Consider the integers modulo 6. Every number is congruent to 0, 1, 2, 3, 4 or 5 mod 6. For example k + 1(6). All of these numbers are in the same residue class. If we take one element from each residue class it is called a complete residue system. For example 12, 5, 8, 3, 2, 11 is a complete residue system mod 6.
30 30 CHAPTER 3. CONGRUENCES Definition Reduced Residue System A reduced residue system modular m is formed by taking one element from each residue class that is relatively prime to m. The reduced residue class mod 6 is 1, 5 or equivalently 7, 11. We denote the size of a reduced residue system as φ(m). In this definition, we have simply assumed that if 1 and 5 are relatively prime to 6 then every number they are congruent to, such as 7 and 11 are also relatively prime to 6. We must prove this fact to rigourously define a reduced residue system. We must show that (a, m) = 1 and b a(m) (b, m) = 1 Proof Assume b a(m) and (a, m) = 1. By definition we know m b a By the definition of divisibility we see mk = b a Rearranging we get a = b + mk. Now we will use Theorem? which tells us that (a, b) = (a, a + b). This implies that (a, b) = (a, ka + b). (m, b) = (m, km + b) = (m, a) We have already assumed that (m, a) = 1 so since we have shown it is equal to (m, b) we know it is also Wilson s Theorem Wilson s Theorem will prove to be extremely helpful in computing the value of large numbers when we are considering them modulo a prime number. Say something cool about the Theorem. Theorem Wilson s Theorem When p is prime, (p 1)! 1(modp). Proof Note that the size of a reduced residue system mod p has size p 1, or in symbols φ(p) = p 1. Let a 1, a 2, a p 1 be a reduced residue system mod p. We want to show that a 1 a 2 a p 1 1(p). We will begin by pairing up elements, a i and a j such that a i a j 1(p). We cannot just assume that we can find pairs, so we must prove that there is a solution to a i x 1(p)
31 a 2 a WILSON S THEOREM 31 We know that all numbers less than p are relatively prime to p. a 1 a 2 a 3. a ị. a (p 1) First we show that each ai, where i is a number less that p, is a reduced residue class. This means that all ai are relatively prime to p. We know that(where is this reference?) (a, p) = (i, p) = 1 (ai, p) = 1 Thus if a and i are relatively prime to p then so is ai. Now if we can show that these reduced residue classes are distinct we know that we have formed a reduced residue system. We want to show that ai aj unless i = j. Assume that ai aj(p). This means that ai aj 0(p) Factoring we see that a(i j) 0(p). Since (a, p) = 1 we know from Theorem? that i j 0(p) Thus j = i(p). Because each reduced residue class is distinct there exists an i such that ai = 1 We can now pair up our elements such that a i a i = 1 a 1 a 1 a k a k
32 32 CHAPTER 3. CONGRUENCES The only thing that we have to worry about while pairing is the chance that a number might be it s own pair. For example ( 1)( 1) = 1. We do not want to count it twice when multiplying a 1 a 2 a p 1. Numbers who are their own pair are of the form x 2 1(p) By the definition of congruent we see that Factoring we get The definition of prime implies that p x 2 1 p (x + 1)(x 1) p (x + 1) or p (x 1) Converting this back to the language of congruences we see that x is its own pair if and only if x 1(p) or x 1(p) Thus when we are multiplying all the pairs together we must deal with 1 and 1 separately. Excluding 1 and 1 we see that (ai a i) 1(p) Thus once we add in the elements that did not have a pair we see that (1)( 1)(a 1 a 1 a i a i) 1(p) These elements were exactly those numbers less than p so we have proven that indeed (p 1)! 1(p). 3.5 The Euler-Fermat Theorem Now that we have proved Wilson s Theorem, we will state and prove another theorem that will be enormously helpful in making calculations with large numbers. This theorem was first discovered by Fermat and then generalized and proved by Euler. Give dates. Theorem Euler-Fermat Theorem When p is prime, c p 1 1(p). If (c, p) = 1, then c φ(m) 1(m). Fermat discovered the specific case c p c(p).
33 3.5. THE EULER-FERMAT THEOREM 33 We begin by noting a property of reduced residue systems. Assume b 1, b 2,, b φ(m) is a reduced residue system mod m. Let c be an integer such that (c, m) = 1. We will show that cb 1, cb 2,, cb φ(m) is a reduced residue system. Consider cb 1, cb 2 cb m. By assumption we know (c, m) = 1 and because it is a reduced residue class we know (b i, m) = 1. Theorem? tells us that this implies (cb i, m) = 1. Therefore, all elements of cb 1, cb 2 cb m are relatively prime to m. We still must show that all elements are distinct. If two elements of our new system overlap, or in other words, cb i = cb j then we must be missing at least one element and do not have a reduced residue system. Since we have assumed that (c, m) = 1 we can use Theorem to show that b i b j cb i cb j (m) Thus cb 1, cb 2, cb m forms a reduced residue system because, if you disregard the order of the elements b 1, b 2,, b φ(m) = cb 1, cb 2,, cb φ(m) If we multiply each list by itself they will still be equivalent modulo m. Thus b 1 b 2 b φ(m) cb 1 cb 2 cb φ(m) (m) b 1 b 2 b φ(m) b 1 b 2 b φ(m) c φ(m) (m) By dividing through by all b i we see that 1 c φ(m) We can divide across the equivalence sign because (b 1 b 2 b φ(m), m) = 1. When p is prime we have a special case of the Euler Theorem. Since φ(p) = p 1 we can easily see that c p 1 1(p). If we multiply both sides of the congruence by c we arrive at Fermat s formulation c p c(p). Although this fact is unnecessary for the proof of Euler-Fermat, using the exact same reasoning we could show that if a 1, a 2,, a m is a complete residue system modulo m then ca 1, ca 2, ca m is also a complete residue system modulo m as long as (c, m) = 1.
34 34 CHAPTER 3. CONGRUENCES 3.6 Solving Congruences Congruences can help us answer many general questions. For example it can tell us, for which primes p the equation x 2 1(p) has a solution. Deal with case where p = 2. Theorem The equation x 2 p 1(4). 1(p) has a solution if and only if Proof Assume that x 2 1(p). Raise both sides of our congruence to the p 1 power to get 2 (x 2 ) p 1 2 ( 1) p 1 2 (p) Simplifying we see x p 1 ( 1) p 1 2 Because of the Euler-Fermat Theorem we know that x p 1 1(p). Our congruence becomes 1 ( 1) p 1 2 We must raise 1 to an even power to make it equivalent to 1. Thus Solving we see that p 1 2 = 2k p = 4k + 1 We have finished on half of the proof. Namely, if x 2 1(p) has a solution then p 1(4) To illustrate this note 2 2 1(5) 5 2 1(13) Since these equations have solutions, we know 5 and 13 are both primes of the form 4k + 1. To prove the other direction of Theorem we show that if p = 4k + 1 we can always find an explicit solution to the equation x 2 1(p). We start with Wilson s Theorem which gives (p 1)! 1(p) p 1 2 p (p 3)(p 2)(p 1) 1(p)
35 3.6. SOLVING CONGRUENCES 35 Notice that (p 1) 1(p) and (p 2) 2(p). We can match up the numbers in our product so that 1 is matched with (p 1), 2 is matched with (p 2) and so on. We can then rewrite our product as ( ) ( ) p 1 p + 1 1(p 1)2(p 2) 1(p) 2 2 When we consider the numbers mod p it is equivalent to: 1 2 ( 2 2 )( 3 2 ) ( p 1 2 )2 1(p) We have p 1 negatives so we can factor them out and rewrite the sequence 2 as ( ) 2 ( 1) p 1 p (p) 2 This is equal to (( ) ) 2 ( 1) p 1 p 1 2! 2 Since p = 4k + 1, we see that p 1 can be written as 2k and we can therefore 2 ignore the term ( 1) 2k. Thus we see that ( ) p 1 2! 1(p) Therefore if p = 4k + 1 we have explicitly demonstrated a solution to the equation x 2 1(p). Just let x = p 1!. 2 Now we will prove a related lemma. If x 2 1(p) has a solution then it must have two. Assume that x and α are both solutions. Therefore and α 2 1 x 2 α 2 By the definition of congruent we see that Since p is prime Therefore p x 2 α 2 = (x α)(x + α) p (x α) or p (x + α) x α or x α If there is a solution to x 2 1(p) then there must be exactly two.
36 36 CHAPTER 3. CONGRUENCES 3.7 Divisibility Rules Modular arithmetic is a powerful tool when trying to determine if a number is prime or composite. Many people know that a number is only divisible by three if the sum of the digits is divisible by three. Modular arithmetic explains why this is so and gives us divisibility rules for a number of small integers. If we represent the digits of a number n as a 1, a 2 a n then the following formula gives us an explicit way to determine if the number is divisible by 3. 3 n n a i (3) i I To see why this is so write out the number as multiples of powers of 10. Is there a name for this form? n = a k 10 k + a k 1 10 k 1 + a a Note that 10 1(3) and 10 2 = = 1. Thus if we are working mod 3 we can replace every 10 in our expression by 1 and be left with a number that is equivalent mod 3. a k + a k 1 a 1 + a 0 a k 10 k + a k 1 10 k 1 + a a If our original number is divisible by 3, then so will any number that is equivalent to it mod 3. This works exactly the same way for 9 because 10 1(9) and 10 1(3). By noticing that 2 10 and 5 10 we can arrive at an easy and familiar divisibility rule for 2 and 5. We see that 2 a i 10 i for all i so we must only look at the last digit. If 2 a 0 then 2 n. Of course this is commonly stated as if the last digit is even then the entire number is divisible by two. An equivalent idea works for checking divisibility by 5. Similarly so to check if a number is divisible by four we only have to see if 4 divides the last two digits. Now we will use congruences to find a divisibility rule for 11. Although this is a bit more complicated than the divisibility rule for 9 it is based on essentially the same idea. Notice that 10 1(11) and 10 2 ( 1) 2 = 1. When we write our number in the form n = a k 10 k + a k 1 10 k 1 + a a we can replace 10 even by 1 and 10 odd by 1. Thus n a k + a 2 a 1 + a 0. Our number is divisible by 11 if and only if the alternating sum of the digits is divisible by 11.
37 3.8. MORE STUFF more stuff Example If p n 2 then p n. Solution By the definition of prime p n n implies p n or p n. On the other hand if a is not prime, a n 2 does not imply a n. To show this let a = p β A n = p β 1 A where p is a prime in the factorization of a and A is all the leftovers. Since β 1, β, we know that a n. But n 2 = p 2(β 1) A 2, and therefore a n 2. I could add another example here about residue classes if you add b to every member of a complete residue system you end up with a complete residue system. Theorem There are infinitely many primes There are infinity plus one primes of the form 4k + 1. Proof Assume p 1, p 2,, p n are the only primes of the form 4k + 1. Let N = (2p 1 p n ) We know that there is at least one prime of this form because 4(1) + 1 = 5. It is important to check that N is not one or zero because we want to be able to assume that it can be written as a product of primes. Assume N = q 1 q 2 q k. We know that each q N. If q p 1 p n then q (2p 1 p n ) 2. Since N = (2p 1 p n ) we see that q 1. Since this is impossible q p 1 p n and it must therefore be a distinct prime. Now we must show that q is a prime of the form 4k + 1. Since N = (2p 1 p n ) it can be written as N = x where x = 2p 1 p n. Because q x 2 ( 1) we see that x = 2p 1 p n is a solution to the equation x 2 1(q) Theorem tells us that this equation has a solution if and only if q 1(4) or in other words if q can be written in the form 4k For which primes can we... We can use modular arithmetic to analyze prime number properties. For example, we might observe that 5 can be written as the sum of two squares
38 38 CHAPTER 3. CONGRUENCES but 3 cannot. It is easy to see that 5 = but there are no numbers such that 3 = a 2 + b 2. We only have to check a few numbers to verify this since squares are always positive. In general we might want to know which primes can be written as the sum of two squares. First we note that any integer squared is equivalent to 0 or 1 mod 4. All integers are equivalent to 1, 2, 3 or 0 mod 4 so it is easy to find what all square numbers are equivalent to mod = = = = 0 Based on this fact we can show that we can only write a prime number p as the sum of two squares if it is of the form 4k + 1 or equal to 2. All prime numbers, excluding 2, are either of the form 4k 1 or 4k + 1 4k + 1 1(4) 4k 1 1 (4) It is easy to show that a 2 + b 2 1(4) because and all square numbers are equivalent to 0 or 1. Now that we ve established that if a 2 + b 2 is prime it can be written as 4k + 1 we might ask if all primes of the of the form p = 4k + 1 can be written p = a 2 + b 2. There is a proof of this fact in The Book that only uses methods that we have already learned. This proof is long and tedious compared to the one that will be presented later in these notes after we have learned more number theory. For the moment, assume that all primes of the form 4k + 1 can be written as the sum of two squares so that we can use that fact in the description of which integers can be written as the sum of two squares. First we will prove a few more theorems that will be necessary for our proof.
39 3.9. FOR WHICH PRIMES CAN WE Theorem If p = 4k 1 and p a 2 + b 2 then p a and p b. Proof Assume that p a 2 + b 2, p = 4k 1 and that p a. Since p does not divide a we know that p and a are relatively prime. Just as we did in the proof of Wilson s Theorem, we can find an a such that aa 1(p). By Division Rule 1. we know that p a 2 + b 2 implies Since aa 1(p) we know that p (a ) 2 (a 2 + b 2 ) p (a a) 2 + (a b) 2 p 1 + (a b) 2 If p x then we can rewrite it to say x 2 1(p). By Theorem this implies p is of the form 4k + 1. This contradicts our assumption that p = 4k 1. Theorem If p a 2 + b 2 and p = 4k 1 then p 2 a 2 + b 2 Proof Assume that p a 2 + b 2 and p = 4k 1. From Theorem we know that p a and p b. Thus we can write Substituting we see that a = (pa 1 ) b = (pb 1 ) a 2 + b 2 = p 2 a p 2 b 2 1 = p 2 (a b 2 1) Of course p 2 p 2 (a b 2 1) We can follow this line of logic to show that for primes of the form 4k 1, if p β a 2 + b 2 and p β+1 a 2 + b 2 then β is even. In our last step we concluded if p a 2 + b 2 then p 2 p 2 (a b 2 1). If p a b 2 1 then we are done because β = 2, which is even. If p a b 2 1 then we know that p 2 a b 2 1 by the same reasoning we used above. If the process stops here then β = 4. If it continues β will continue to increase in powers of 2 and will thus always be even.
40 40 CHAPTER 3. CONGRUENCES Norms again We will now use the concept of norms again to complete one more step in our quest to decide which integers can be written as the sum of two squares. Remember that N(a + bi) = a 2 + b 2 and the property of norms, Z 1 Z 2 = Z 1 Z 2. Theorem Theorem If m and n can both be written as the sum of two squares then so can the number mn. Let Multiplying m and n we get m = N(Z 1 ) = a 2 + b 2 n = N(Z 2 ) = c 2 + d 2 mn = N(Z 1 Z 2 ) The norm of any number is the sum of two squares, so mn must be the sum of two squares as well. If you are unfamiliar with the concept of norms you could note that mn = (ac bd) 2 + (ad + bc) 2. Now that we have proved a number of assorted facts we will finally get to the punch line and describe exactly which numbers can be written as the sum of two squares. Theorem Theorem Let n = 2 γ p α i i q β i i where p i 1(4) and q i 1(4). We can write n as the sum of two squares if and only if every β i is even. Since we established in Theorem that if we can write m and n as the sum of two squares we can also write mn that way, we only have to analyze 2 γ p α i i q β i i one section at a time. If we can write 2 γ, p α i i and q β i i as the sum of two squares then we can do the same for their product. With only a little bit of mental math, we see that 2 = Again by Theorem 3.9.3, we see that we can write 2 γ = a 2 + b 2. As long as you are willing to trust me when I say we can always write primes of the form 4k + 1 as the sum of two squares then you d have to admit Theorem tells us that we can write p α i = c 2 + d 2. Then note that if β is even then q β can be written as the sum of two squares. Just let β = 2k and note that q β = (q k ) We have show that if β i is even we can represent our number as the sum of two squares. Now assume that we know we can write n = a 2 + b 2. We must prove that β i is even. Theorem tells us that if q β a 2 + b 2 then β is even. By putting these three sections together using Theorem we see that n can only be written as the sum of two squares if β i is even for all values of i.
41 3.9. FOR WHICH PRIMES CAN WE From the book 1. 2 = Every prime of the form p = 4m + 1 is representable. 2. product of any representable numbers is representable. 3. if n is representable then also nz 2 is representable by nz 2 = (xz) 2 + (yz) 2. These three facts yield the if part of the theorem. Then if p = 4m + 3 is a prime that divides a representable number n = x 2 + y 2, the p divides both x and y and thus p 2 n. IN fact if we had x 0(p) then we could find x such that x x 1(p). Multiply the equation x 2 + y 2 0 by x 2, and thus obtain 1 = y 2 x 2 = 1 + ( xy) 2 0(p), which is impossible for p = 4m + 3. Then finally if n is representable, and p = 4m + 3 divides n, then p 2 divides n and n is representable. This follows from the previous paragraph p 2 and completes the proof. End of stuff from the book page 21. Theorem There are infinitely many primes The function Π(x) is unbounded. Proof Before starting the proof we will define a function that counts the number of primes below a given number. Definition Prime Counting Function Let Π(x)=number of primes, p, such that p < x For example Π(10) = 4. We want to prove that Π(x) can be any arbitrarily big number. We will do this by showing that Π(x) is bigger than the harmonic series which we know diverges. Proof from the book. The harmonic series is equal to = m where the sum extends over all natural numbers m. Since every m can be written in a unique way as a product of the form p x pkp we see that the last sum is equal to p P,p x ( k 0 ) 1 p k
42 42 CHAPTER 3. CONGRUENCES where p are prime. This is a little hard to grasp because of the double sum and product. Written out the inner sum looks like 0 1 p = 1 k p + 1 p p 3 k When we apply the product to the sums we get ( ) ( ) ( p + 1 ) p + 2 When you multiply these sums together you will get all possible numbers because the denominators will combine to create all products of primes. The inner sum is a geometric series with ratio 1 p, hence Multiply by p p to get 1 m p P,p x p P,p x p p p Now just switching notation to use our prime counting function π(x) k=1 p k p k 1 Because there are lots of composite numbers the kth prime must be bigger than k + 1 so p k k + 1, and thus therefore p k p k 1 = p k p k 1 π(x) 1 m = p k k = k + 1 k k=1 k + 1 k = π(x) + 1 Everybody knows that the harmonic series diverges so we conclude that π(x) is unbounded as well and there are infinitely many primes. People often proved that the harmonic series diverges in Calculus II using integrals and missed a much more exciting proof.
43 3.10. SOLVING LINEAR CONGRUENCE 43 Theorem The Harmonic Series Diverges The harmonic series diverges. Consider the harmonic series Notice that 1 is greater than 1. We know that 2 times 1 is equal to 1. Thus > 1. Using the same logic again we note that 1, 1 and 1 are greater than Thus the sum of these four numbers is greater than 1 because 4( 1) = We can continue this process each time considering a group of numbers twice as big as the one before it. We see that by rounding down we show that the harmonic series is at least as big as We can add up 1 to any number no matter how big so the harmonic series must diverge Solving Linear Congruence In this section we will be trying to determine how many solutions a linear congruence has and what form they will take. Theorem Linear Congruences ax b(m) has a solution if and only if (m, a) b. Proof Consider manipulating the following linear congruence using our definitions of divisibility and congruent. First assume that ax b(m) By our definition of congruent this is equivalent to m ax b By the definition of divides this implies there exists and integer y such that my = ax b We usually consider something modulo a positive number, but if m a b then m a b. Thus we can interchange m and m to rearrange our equation. The equation my + ax = b is exactly how we express the greatest common divisor. The values of my + ax are multiples of (m, a). Thus we see that
44 44 CHAPTER 3. CONGRUENCES there must exist an integer k such that (m, a)k = b. This is the definition of divides, so we can rephrase if there is a solution to the congruence ax b(m) then (m, a) b. We just proved that if there is a solution (m, a) b. Now we will show that if (m, a) b there exists a solution. Assume that (m, a) b. Also note that (m, a) m and (m, a) a. By the definition of divides b = b 1 (m, a) From the Euclidean Algorithm we know that Multiplying by b 1 we get Substituting we get Rearranging we get (m, a) = my 0 + ax 0 b 1 (m, a) = m(b 1 y 0 ) + a(x 0 b 1 ) b = m(b 1 y 0 ) + a(x 0 b 1 ) b a(x 0 b 1 ) = m(b 1 y 0 ) This is our familiar definition of divides. And by the definition of congruent m b a(x 0 b 1 ) a(x 0 b 1 ) b(m) Thus we have found a solution to the equation, namely b 1 x 0. Now that we ve decided when a solution exists, we ask how many solutions there are. First we show that there are infinitely many solutions to the equation my + ax = b. Then we show that there are finitely many solutions to the congruence ax b(m). The solutions are finite because we are considering them modulo m so they correspond to the residue classes Diophantine Equations The equation my + ax = b has infinitely many solutions. If we know that x and y solve my + ax = b, then it is easy to see that m(y + a) + a(x m) = b
45 3.10. SOLVING LINEAR CONGRUENCE 45 is also a valid equation. Just multiply it out and notice that ma drops out leaving our original equation. Although it is easy to see that y + ka and x km create infinitely many solutions we want to know if these are all possible solutions. We want to know what all of the solutions look like. Assume that my 1 + ax 1 = b and my 0 + ax 0 = b Subtracting the equations from each other we get m(y 0 y 1 ) + a(x 0 x 1 ) = b b Thus m(y 0 y 1 ) = a(x 1 x 0 ) and by the definition of divisibility m a(x 1 x 0 ) a y 0 y 1 In a homework session that might not be in the book but probably should be we proved that m a(x 1 x 0 ) m (m, a) x 1 x 0 m If we add multiples of then the division is still valid. This is still a little (m,a) poorly written and unclear. Therefore a m(y 0 k (m, a) ) + a(x 0 + k m (m, a) ) = b We can check that this works by noting that we have assumed that my 0 + ax 0 = b is a valid equation. If we subtract the two equations we get This reduces to my 0 my 0 k ma (m, a) + ax 0 ax 0 + k ma (m, a) = b b k am (a, m) + k am (a, m) = 0 which is always true. Is this a good way to explain it? If x 0, y 0 is a solution then the following are also solutions x = x 0 + k m (m, a)
46 46 CHAPTER 3. CONGRUENCES a y = y 0 k (m, a) This is more showing that these solutions work, not that they are the only solutions. We were trying to count all possible solutions and show that they are of this form Solutions to Linear Congruences We might wonder how many different solutions we have to the equation ax b(m). The solutions are finite because they are residue classes. We know that ax b(m) has a solution if and only if (a, m) b. If x 0 is a solution then so is x 0 + km. The list of all possible solutions looks like (m,a) x 0, x 0 + m (m, a), x 0 + 2m (m, a),, x ((m, a) 1)m 0 + (m, a) We see that we have exactly (m, a) many solutions. There is an example, with real numbers, that maybe I should include Chinese Remainder Theorem This Theorem was named after the Chinese because they discovered this result in the first century A.D. The Chinese Remainder Theorem tells us when we can find solutions to a system of linear congruences. For example when can we solve x a 1 (m 1 ) x a 2 (m 2 ).. x a n (m n ) Theorem Chinese Remainder Theorem There exists a unique solution to the congruences x a i (m i ) if m 1, m 2, m n are relatively prime in pairs. Before proving the Chinese Remainder Theorem we will first prove another theorem about linear congruences that will be helpful. Theorem The equation ax b(m) has a solution when (a, m) = 1.
47 3.11. CHINESE REMAINDER THEOREM 47 Proof Assume (a, m) = 1. If we let x = ba φ(m) 1 and plug it in we can see that it is a solution. ax = aba φ(m) 1 a φ(m) b b We should recognize the Euler-Fermat Theorem here and see that a φ(m) 1(m). Thus we have found a solution to ax b(m). Now we will use this information to prove the Chinese Remainder Theorem. x a 1 (m 1 ) x a 2 (m 2 ).. x a n (m n ) If m 1, m 2,, m k are relatively prime in pairs then there is a unique solution. It also says this is the same as La Grange interpolation, but I don t know what that is. Would this be helpful for some students to know? If we have the following two sets of equations can we solve them? x 1(m 1 ) x 0(m 2 ).. x 0(m k ) x 0(m 1 ) x 1(m 2 ).. x 0(m k ) Now consider A 1 A k where A i is the solution to x 0(m 1 ) x 0(m 2 ).. x 1(m i ).. x 0(m k ) The solution to the congruence is a 1 A i (m j ) = x n. If we plug in x = n i=1 a ia i then it is a solution.
48 48 CHAPTER 3. CONGRUENCES a 1 A 1 + a 2 A a j A j + + a 2 A 2 a j A j a j There exists a unique solution modulo the product because m j are relatively prime. If x 0 and x 1 are solutions we see that Subtracting we get that Also that m j x 0 x 1. We are trying to find A j =? x 0 a j (m j ) and x 1 a j (m j ) x 0 x 1 0(m j ) A j 1(m j ) A j 0(m j ) D = m 1 m 2 m j 1 m j+1 m n 0(m j )i ± j Because everything is relatively prime in pairs we know that (D, m j ) = 1. This implies that D 0(m j ) because m j D. This means that Dx 1(m j ) has a solution. If we assume that m j relatively prime to every other m i or i(m i, m j ) = 1 then we know that (m 2 m k, m i ) = 1 Should this me m j? We are breaking up the congruences mod a prime power. x a(m) and m = p α i i and also x a(p α 1 1 ) x a(p α k k ) From now on we will only consider Primes.
49 r 1 = r 2 q 3 + r FUN WITH POLYNOMIALS Fun with Polynomials We can reprove a number of theorems in this book using polynomials instead of numbers. This is possible because polynomials form a ring. Rings are mathematical objects that are closed under addition and multiplication. We can still use the division algorithm with polynomials, factor them and talk about their roots. Polynomials are of the form a n x n + a n 1 x n 1 + a 1 x + a 0 We can define the product and sum of polynomials in the usual way we all learned long ago. We all know that ax i bx j = abx i+j Most of you are also probably familiar with the idea of a field. It is the same as a ring except that it is closed under division as well. The rational and real numbers are both examples of fields. The integers are an example of a ring that is not a field. We denote a polynomial with coefficients from a field F[x]. Now we will consider the division algorithm as it apples to polynomials. Theorem Division Algorithm for Polynomials Let a(x), b(x), q(x), and r(x) be polynomials. For any polynomials a(x) and b(x) there exist unique polynomials q(x) and r(x) such that a(x) = b(x)q(x) + r(x) and the degree of r(x) is less than the degree of b(x). We define the degree of a polynomial in the typical way. It is the size of the largest exponent with a non-zero coefficient. Because we were careful when we defined the distinguished common divisor we can use the same proof to find the distinguished common divisor of two polynomials. Let us find the d.c.d of polynomials a and b. Because of the division algorithm we can write a = bq 1 + r 1 where the degree of r is less than b. Continuing the process we can write b = r 1 q 2 + r 2 r k = q k+1 r k+1
50 50 CHAPTER 3. CONGRUENCES In this case r k+1 is the distinguished common divisor. Using the same proof as last time we can show that r k+1 a and r k+1 b. Also if a polynomial f divides a or b it also divides r k+1. Should I actually write out this proof again? Definition DCD for Polynomials For any two polynomials f(x) and g(x) not equal to zero we can find a unique polynomial d(x) such that d(x) f(x) and d(x) g(x) and all common divisors divide d(x). Just as we were able to define d.c.d for polynomials we can also make sense out of our definitions of prime and irreducible. Just as with the integers the definitions of prime and irreducible are equivalent over polynomials. First we will repeat our definitions. Definition Prime Polynomial If f(x) is a prime polynomial and f(x) = a(x)b(x) then f(x) a(x) or f(x) b(x). Definition Irreducible PolynomialWe say f(x) is irreducible if a(x) f(x) = a(x) = ±1 or a(x) = ±f(x). This should seem very familiar from the integers, but I will repeat the proof again because it is an important idea to understand. Theorem Prime vs. Irreducible Over polynomials(do I need to say something about the coefficients, like they are over the rationals?) a polynomial is irreducible if and only if it is prime. First assume that our polynomial f(x) is prime. Assume f(x) = a(x)b(x). This implies that f(x) a(x) or f(x) b(x). From the definition of divisibility we see that a(x) f(x). If f(x) a(x) then f(x) = ±a(x) and b(x) = ±1. We can do the proof the other way noting that b(x) f(x). If f(x) b(x) then b(x) = ±f(x) and a(x) = ±1. This is our definition of irreducible. Now we prove the irreducible implies prime. Assume that f(x) is irreducible and that f(x) a(x)b(x). If f(x) a(x) then (f(x), a(x)) = f(x). If f(x) a(x) then a(x) = ±1 since f(x) is irreducible. By the Euclidean Algorithm we can find polynomials q(x) and r(x) such that 1 = f(x)q(x) + a(x)r(x) Multiply both sides by b(x) to get b(x) = b(x)f(x)q(x) + b(x)a(x)r(x)
51 3.12. FUN WITH POLYNOMIALS 51 We know that and by assumption f(x) b(x)f(x)q(x) f(x) a(x)b(x)r(x) By our equation above this means that f(x) b(x). Thus we have proven that either f(x) a(x) or f(x) b(x). This is our definition of prime. Then underneath we have a slightly confusing section. Substituting f = ab and a = fc f = bfc So bc = 1. If bc = 1 is constant then b is constant? The D.C.D is unique up to a constant. Does this make sense if I tried some examples? Theorem Fundamental Theorem of Factorization We can factor any polynomial f(x) uniquely into a product of irreducible polynomials. In symbols, f(x) = f 1 (x)f 2 (x) f k (x) such that f i (x) is irreducible for all i. Factorization is unique up to order and constant. We can prove this in a very similar way as the Fundamental Theorem of Arithmetic. Should I put a proof here? Now we have a section on roots that doesn t make a lot of sense to me. We say that a is a root of a polynomial if f(a) = 0 or in terms more familiar to number theorists x a f(x) Now we prove that these two ideas are equivalent. Proof Let f(x) = a n x n + a n 1 x n 1 + a 1 x + a 0 If α is a root then Backwards 0 = f(α) = a n α n + a n 1 α n a 1 α + a 0 f(x) = a n (x n α n ) + a n (x n 1 α n 1 ) f(x) = (x α)p(x) f(x)f(x α)p(α) = 0 Where do these two random lines come from? x 2 1(r)
52 52 CHAPTER 3. CONGRUENCES x 2 1(r) A polynomial of degree n has at most n roots. Assume the degree of f(x) = n with α 1, α 2,, α k as k distinct roots. We prove that k < n. f(x) = (x α 1 )f 1 (x) f(α 2 ) = (α 2 α 1 )(f 1 (α 2 )f(α 1 )) = 0 f(x) = (x α 1 )(x α 2 ) (x α k )f k (x)
53 Chapter 4 Order Csaba says that rend a lelke mindennek or for those of you who are slacking off in Hungarian class order is the soul of everything. Some of you may be familiar with the idea from Abstract Algebra and can imagine how it could be a fundamental concept in number theory. 4.1 Properties of Order Theorem Definition of Order For a positive integer m and any integer a such that a and m are relatively prime we say the order of a modulo m is the smallest positive integer k such that a k 1(m). We denote this o m (a) = k. We could alternatively say that a i 1(m) if i < k. There are only a few properties of order and they can all be written briefly. Don t underestimate their importance however because you will use them again and again in problems. Theorem Property of Order a l 1(m) o m (a) l Proof : Assume that a l 1(m). Let k be o m (a). Because of the Division Algorithm we can write l = kq + r such that r < k. Our equation becomes a kq+r 1(m) Using the rules of exponents we transform our equation as follows a kq+r a kq a r (a k ) q a r 1a r a r 53
54 54 CHAPTER 4. ORDER Since a kq+r 1 a r we see that a r 1. Since r is less than the order k we know that a r 1 implies that r = 0. If r = 0 then l = kq and therefore k l. Now we assume that our order k l. By the definition of divides this implies l = kq. This implies a l a kq Manipulating the exponents we get Since the order of a is k we see that a l (a k ) q a l We can use the Euler Fermat theorem to show a special case. o m (a) φ(m) This follows from the fact that a φ(m) 1(m). When we are trying to find the order of an element modulo m we only need to check divisors of φ(m). Theorem Property of Order Never forget that if o m (a) = k, o m (a i ) = k (i, k) Proof : Let o m (a) = k. Consider o m (a i ). If (a i ) l = 1 we know that k il. We are looking for the smallest possible l that satisfies (a i ) l 1. Additionally Obviously a il 1 k il k il k (i, k) k (i, k) l k (i, k) and that the smallest number that a number divides is itself. smallest possible l is l = k (i, k) Thus our And by assumption (a i ) l 1 so l must be the order because it is the smallest number that satisfies the congruence.
55 4.2. USING ORDER 55 Theorem Primitive Roots We say that a is a primitive root modulo m if o m (a) = φ(m). Equivalently, a is a primitive root if it has φ(m) distinct powers. We could also say it is a primitive root if all reduced residue classes can be expressed as a power of a. If you are familiar with Abstract Algebra, you would know a primitive root as a generator of a cyclic group. Now that we know what a primitive root is, we might ask if they always exist no matter what the value of m is. We can use the idea of order to examine this fact. 4.2 Using Order Theorem Existence of Primitive Root There exists a primitive root modulo m if and only if m = p α or 2p α where p is an odd prime, or if m = 2 or 4. We will prove the case when m = p. The end result of all this math is going to be proving that there always exists a primitive root modulo p. First we are going to notice a few things that will help us. We will use the following fact a little bit later on Lemma For any number n = d n φ(d) Since the notation is a little bit confusing I will give an example where n = 6. φ(d) = φ(1) + φ(2) + φ(3) + φ(6) = = 6 d 6 Proof : We consider n fractions 1 n, 2 n, n n Reducing each fraction we get a where d n and (a, d) = 1 Thus each d d shows up φ(d) many times. Each denominator shows up φ(d) many times. We know that if we count the total number of reduced fractions we get n. Now we will prove another Lemma that will help us find a primitive root modulo a prime number. Lemma If o m (a) = d and o m (b) = d then b = a i.
56 56 CHAPTER 4. ORDER To prove that there is a primitive root modulo p we need to find an element of order p 1. First let us examine the elements of order d. Suppose that o m (a) = d, and we want to know if there are any other elements besides a that also have order d. We know that d p 1. If o m (a) = d and o m (b) = d then b = a i. Assume o m (a) = d. This means that a is a root of the equation x d 1. If a is a root then a k is also a root for k = 1, 2,, d 1, d. Consider the following for explanation (a k ) d 1 = (a d ) k 1 = 1 k 1 = 0. Because of our section on polynomials or the Fundamental Theorem of Algebra we know that the equation x d 1 has at most d many roots. Since we have d roots of the form, a, a 2,, a d 1, a d they must be all of the roots. Thus if our element b has order d it must be in the list of powers of a. Lemma If we have one element of order d then we must have φ(d) elements of order d. Since we can write all elements of order d as a i we can make the following observation o m (a i ) = d (d, i) = 1 This follows from Theorem This implies that there exists exactly φ(d) many elements of order d. The function φ(d) counts the number of elements less than d relatively prime to d or whose greatest common divisor is 1. We are going to define a new function Ψ(d) that counts the number of of elements of order d. Above we noted that if there is one element of order d then we can find φ(d) many total elements of order d. This implies that our element counting function is either equal to 0 or φ(d). In symbols Ψ(d) = {a o(a) = d} = 0 or φ(d) Let s figure out a few things about the function Ψ(d). We know that all elements have an order that divides p 1. We also know that we have p 1 elements all together. Thus if we sum the values of Ψ(d) for all values of d p 1 we should get all the elements. We use this fact to show that p 1 = Ψ(d) φ(d) = p 1 d p 1 d p 1 The second half of the equation follows from This implies that φ = Ψ and φ(p 1) = Ψ(p 1). Since Ψ(p 1) counts the number of elements of order p 1 we know that there must be φ(p 1) primitive roots. This proves a stronger statement than our original claim that there exists at least one primitive root modulo p.
57 4.3. PROPERTIES OF PRIMITIVE ROOTS 57 Theorem Existence of Primitive Roots There exists exactly φ(p 1) elements of order p Properties of Primitive Roots There are many equivalent ways to say that g is a primitive root modulo p. It is often useful to be able to use multiple definitions of a primitive root in proofs. 1. o p (g) = p 1 2. g has p 1 many distinct powers 3. g, g 2,, g p 1 is a reduced residue system 4. For all a, there exists an i such that g i = a. Theorem The congruence x n a(p) has a solution if and only if a p 1 (n,p 1) 1(p). Assume that x n a(p). Raising both sides to the same power we get Let (x n ) p 1 (p 1,n) a p 1 (p 1,n) n = (n,p 1) n and note that n is an integer. Rewrite (x n ) p 1 (p 1,n) = x n (p 1) By Euler Fermat we know that x p 1 1 and by noting that 1 n = 1 we see that a p 1 (p 1,n) x n (p 1) 1 Now we will prove the statement in the other direction. Assume that a p 1 (p 1,n) 1(p) By the definition of order we know that o p (a) p 1 (p 1, n)
58 58 CHAPTER 4. ORDER We know there exists a primitive root, g, modulo a prime so we can write a = g k. By Theorem o p (a) = op(g). Since o (o p(g),k) p(g) = p 1, we arrive at This is true if and only if p 1 (p 1, k) p 1 (p 1, n) (p 1, n) (p 1, k) Why does k p 1? If I could figure that out the next statement would be obvious. We know that the order of an element always divides p 1. Is k the order of anything? g k = a (p 1, n) k Now if we can prove the following lemma we are done. Lemma There exists a solution to x n a(p) if and only if (n, p 1) k where a = g k. Proof Assume that x n a(p) and that g is a primitive root. We have already proven that we can always find a primitive root modulo a prime number. Since g is primitive, we can write a = g k and x = g i. Substituting these values we get (g i ) n = g k (p) or by using exponent rules g in g k (p) Two powers of an element are the same if and only if they are divisible by the order. If g in g k we can manipulate it using algebra to relate it to order. Divide to get gin 1. This implies then g in k 1. Therefore g k o p (g) in k Because the order of a primitive root is p 1 we see that in k(p 1) Theorem concerning linear congruences tells us that there exists a solution if and only if (n, p 1) k.
59 4.4. ORDER AND PRIME NUMBERS Order and Prime Numbers Now that we have learned the concept of order we can revisit some of our favorite theorems about prime numbers and prove a few new ones. More Fermat Numbers We will now examine the Fermat numbers using order. Recall that Fermat numbers are of the form F n = 2 2n + 1. Choose a prime divisor p such that p F n. By our divisibility rules this implies By definition this is equal to p F n (F n 2) p (2 2n + 1)(2 2n 1) = 2 2n+1 1 This is where we can use order. Since 2 2n+1 2 must divide 2 n+1. In symbols 1(p) we see that the order of o p (2) 2 n+1 The only numbers that divide powers of 2 are smaller powers of 2 so we know that o p (2) = 2 i where i n + 1 Again using the notion of order we see that p 2 2i 1 This number is equivalent to F i 2. Remember that when we proved that the Fermat numbers are relatively prime, we creatively factored F n 2. By assumption we know that p 2 2i 1 = F i 1 F i 2 F 2 F 1 F 0 p F n+1 2 = F n F n 1 F 2 F 1 F 0 To find the order we must look for the smallest possible value of i. We know that p F n and that because Fermat numbers are relatively prime p F k unless n = k. We are looking for the smallest value of i such that p F i 2. Thus we set F i 1 = F n. Therefore n + 1 = i. This tells us that o p (2) = 2 n+1
60 60 CHAPTER 4. ORDER Since the order of an element modulo p always divides φ(p) we see that 2 n+1 p 1 By the definition of divides we see that k2 n+1 = p 1 Using some good old algebra we get that k2 n = p. Since we have already assumed that p F n we we know that all Fermat numbers have a prime divisor of the form k2 l We can use this fact in our favorite proof. Theorem There are infinitely many primes of the form k2 l + 1 where l is a fixed number. Proof: Consider the Fermat numbers F l, F l+1,, F n From our earlier definition of a Fermat number we know that F l = 2 2l +1. F l has a prime divisor of the form k2 l We can rewrite this as 2k 2 l +1. We have found one prime divisor of the form k2 l +1. By the same logic, k2 l+2 +1 is a prime divisor of F l+1. We know that all Fermat numbers are relatively prime so each of these primes is unique. Hence we have found infinitely many primes of the form k2 l + 1 since there are infinitely many Fermat numbers. Theorem There are, still, infinitely many primes. Assume that we have a finite list of prime numbers, p 1, p 2,, p k and that p is the largest prime. Consider the number 2 p 1. Since 2 p 1(q) we know that o q (2) p. From the Euler-Fermat Theorem we know that 2 q 1 = 1. From the definition of a prime we know that o q (2) = 1 or p. If we let o q (2) = 1, this implies 2 1 1(q) and therefore q 2 1. But there is no prime that divides 1 so o q (2) = p. This implies that p q 1 because we know o m (a) φ(m) from Theorem This shows that q is larger than p. Since we assumed p was the largest prime, q must be a new prime not on the original list. Lemma For all integers a and k, k φ(a k 1).
61 4.4. ORDER AND PRIME NUMBERS 61 Let a k 1 = m. Well it s obvious that m a k 1. And then just using the definition of congruent we see that a k 1(m). And using the properties of order o m (a) k. Now we claim that o m (a) = k. Assume the order of a is i. If i < k then a i 1 < a k 1 just because we are using normal numbers. The order can t be smaller than k because if it is This implies a k 1(m) and a i 1(m) a i 1 0(m) and a k 1 0(m) This cannot happen unless i = k. A smaller number a i 1 which is between 0 and m cannot be equivalent to 0 modulo m. From the Euler Fermat Theorem we know that a φ(m) 1(m). Since we have proven k is the order we know that k φ(m). Substituting we complete the proof that k φ(a k 1). Lemma If p φ(m) and p m then there exists a divisor of m called q of the form kp + 1. Proof: Let m = Πp α i i. Then using the formula to calculate φ(p) which I don t think is in the book yet unfortunately we get φ(m) = p m(p α p α 1 ) Since p m we know that p q i. We know that a prime divides a product if and only if it divides one of the terms. So p q i 1 p q i 1 = pk + 1 = q i This doesn t make sense to me any more. Now we will use this lemma that wasn t very cool all by itself to prove our favorite theorem. Theorem There are infinitely many primes of the form kp+1, where p is a fixed prime. Proof: Assume that p 1, p 2, p t are the only primes of the form kp + 1. Let N = (pp 1 p 2 p t ) p 1
62 62 CHAPTER 4. ORDER This N has a prime divisor, q, of the form q = kp + 1. and p φ(n) p N It is easy to show that p N. If we assume p N we reach a contradiction. We know that p (pp 1 p t ) p so this implies p 1. No prime numbers divide 1. Now we will show that p φ(n) Let N = a p 1 where a = pp 1 p t. Lemma tells us that k φ(a p 1) Substituting we get that p φ(n) Therefore there exists a q N such that q = kp + 1. This is a new prime not on our list. Don t forget to check that N ±1, 0 because then we can not write it as a product of primes. 4.5 Computations Using Order I m not sure the following part is necessary for the book, it is at least not good in it s current state. Example Solve the problems 1. o p (2) = 8 2. o p (3) = 5 3. o p (2) = 6 Based on the examples we might ask when we can find a p such that o p (k) = n. Assume that n > 2. Why? What goes wrong when the order is 2? k 2 1(p) (3) 3 2 1(2) For all primes p 2 1(2) since they are odd. Lemma There exists a p that satisfies o p (k) = n except when k = 2 and n = 6. o p (k) = 2 This implies p k 2 1 or p (k + 1)(k 1).
63 4.5. COMPUTATIONS USING ORDER 63 Example Prove that n 2 n 1 Table: Powers of 15 Mod 23 Even though most calculations have fun tricks to make them quick and easy, finding the order of an element does not. We will make a table of the powers of 15 modulo 23 and refer back to it in future problems to minimize the amount of boring math. ( ( ) ) Now that we have our table we will use it in a few examples. From our table we can see that o 23 (15) = 22. Example: Living life Mod 23 We are going to solve binomial congruences modulo 23 using our table. We will solve x (23) First we can simplify the equation by noticing that 300 1(23) and 82 16(22). Thus x 16 1(23) We know that 15 is a primitive root because of our table. Rewrite 1 as 15 0 and since 15 is a primitive root we can write x as a power of 15. Thus 15 k (23) Since the bases in our equation are both 15 we only need to examine the exponents modulo φ(23). Or what value of k satisfies This true if and only if k16 0(22) k8 0(11) Now we are going to use the fact that 15 is a primitive root. We know that if g is a primitive root g p 1 2 1(p)
64 64 CHAPTER 4. ORDER So (15 11 ) since 23 is a primitive root. So in the end if k = 0 then this tells us that our only solution is (23) Just for fun let s do another example since it is important to understand how to solve these problems. Which values of x satisfy the congruence x 28 12(23) Looking at our table we know that 12 = and since 15 is a primitive root x = 15 i. Thus we are trying to solve (15 i ) or just simplifying 15 28i (22). Since both bases are 15 we can simply examine the exponents modulo φ(23). There is a solution to the equation if and only if 28i 18(22) Theorem tells us that there exists a solution to this congruences if and only if (m, a) b. Notice that (22, 28) 18 so we know we have a solution. We can simplify our congruence to But since 3 14(11) we have 14i 9(11) 3i 9(11) Since 3 and 11 are relatively prime we can divide both sides by 3 according to? Thus i 3(11). If we go back to considering our equation modulo 22 we note that i 14(22) is also a solution. Finally we must look at our chart again to figure out what 15 3 and are equivalent to modulo 23. We see that x 16 or x 6. What if we are trying to solve 15 k16 3(23)? This is equivalent to k16 3(22) There is no solution because (16, 22) 3.
65 4.5. COMPUTATIONS USING ORDER Problems Concerning Order Let p > 2 be prime, (a, p) = 1, and suppose that a k is a primitive root mod p for some k > 0. Prove that a itself is a primitive root. Prove that q 2 p 1 implies kq = 2 p 1.
66 66 CHAPTER 4. ORDER
67 Chapter 5 Quadratic Residues Euler was the first one to use the idea of Quadratic Residues in his manuscript called Treatise on the doctrine of numbers that he probably wrote around Definition nth Power Residue If the equation x n a(p) has a solution, then a is called the nth power residue modulo p. Definition bf Quadratic Residue If the equation x 2 a(p) has a solution, a is called a quadratic residue modulo p. If there does not exist a solution to x 2 a(p), then a is a quadratic non-residue modulo p. 5.1 Legendre Symbol We will use the idea of the quadratic residue to define the Legendre Symbol. Definition Legendre Symbol 0 p a ( ) a = p 1 a is a quadratic residue 1 a is a quadratic non-residue Recall that the congruence x n a(p) has a solution if and only if a p 1 (n,p 1) 1(p). In the case of quadratic residues n = 2. We know that all primes are odd(at least in Csaba s world) so 2 p 1. This means that we have a solution to x 2 a(p) if and only if a p 1 2 1(p). If we square both sides we get that (a p 1 2 ) (p) 67
68 68 CHAPTER 5. QUADRATIC RESIDUES This tells us that a p 1 2 ±1. Using this information we formulate another definition for the Legendre symbol. ( a p ) a p 1 2 (p) Now we are going to state some important properties of the Legendre Symbol. ( ) ( ) ( 1. = ( ( ( a p a 2 p 1 p b p ) = 1 ) = 1 ) ab p ) 1 = ( 1) p 1 2 = p { 1 p 1(4) 1 p 1(4) Using our second definition these statements are easy to prove. Note that To prove the second statement note a p 1 p 1 2 b 2 = ab p 1 2 (a 2 ) p 1 2 = a p 1 1 The last step follows from the Euler-Fermat Theorem. Using the previous two statements we can also see that ( ) ( ) a 2 b = b p Use the definition of the Legendre Symbol and what you know about arithmetic modulo 4 to figure out why the last two are true. Next, in my notes, we have some Friday problems, perhaps throw some examples in at some point. We figure out the sum and product of reduced residue systems modulo p and figure out if the product of two primitive roots can be primitive(no). Then we have a couple of more really important properties that we use in computations.
69 5.2. LAW OF QUADRATIC RECIPROCITY Law of Quadratic Reciprocity The law of quadratic reciprocity is affectionately called the flipping rule by Csaba because it tells us what happens to the Legendre symbol when we flip it over. ( ) p = q ( q p ) ( q p ) all other cases p q 3(4) This rule is very easy to use to solve problems once you see a few examples. It is proving and understanding the rule that is the hard part. For example we know that 3 and 7 are congruent to 3 modulo 4 so If we consider 5 instead of 7 we get ( ) ( ) 3 7 = 7 3 ( ) 3 = 5 ( ) 5 3 because 5 is congruent to 1 modulo 4. This unfortunately does not work when our prime number happens to be 2. Life would be so much easier if two was odd! But since it insists on being unique it gets it s own flipping rule. ( Theorem Flipping Rule for Two 2 p ) { = ( 1) p2 1 1 p ±1(8) 8 = 1 p ±3(8) We showed previously in homework that p2 1 is an integer if and only if 8 p is odd. Perhaps I should put that in a book as an example to refer back to. Now we have a folding in half proof with a picture and a bunch of folding. I ll have to think about how to write this up in a book. What are we trying to prove? Theorem a p 1 2 ( 1) n = ( a p ) We have a really vague definition of n. It is the number of elements in the second half of our line of things in av. This is pretty bad.
70 70 CHAPTER 5. QUADRATIC RESIDUES {1, 2, 3 p 1 2 } = V Let a and b be elements of V. p a b because a b(p), or in other words they are in different residue classes. All values of a and b are less than p and distinct so they must be in different residue classes because every value from 1 to p is a distinct residue class. p a + b because it is too small. Both a and b are less than p 1 2 so their sum is less than p. Now consider multiples of a modulo p. We have a, 2a, 3a, and eventually ka is bigger than p so we start wrapping back around the interval. av = {a, 2a, 3a,, p 1 2 a} If we have n elements on the right side then ( ) a = ( 1) n p Calculate how many elements we have between p 1 2 and p Proof av has the following property. a 1, a 2 av = p a 1 a 2 and p a 1 + a 2 The mirror image is not on the picture? What does that mean? Lemma p ai ± aj = a(i ± j) when (p, a) = 1. p ai ± aj if and only if p (i ± j). Now this part is getting really confusing. Call the first half have k many s. The second half has n many r. We already used the letter n to represent something in this problem and I m not sure it s the same value. If we add all of the elements of av in the first and second half we should get the total number of elements. We have p 1 2 elements all together so k + n = p 1 2
71 5.2. LAW OF QUADRATIC RECIPROCITY 71 Now we are still considering av. a 2a 3a p 1 2 a = a p 1 2 ( p 1 2 )! = s 1 s 2 s k r 1 r 2 r n Now comes the folding part that is going to make a lot more sense when someone is standing at the board explaining it than me. {s 1, s 2,, s k p r 1, p r 2,, p r n } = {1, 2,, p 1 2 } Sizes are the same of sets. All big ones are small enough so they must be distinct. Now we will examine each term in our list. We know that s i s j because each s is distinct. Why? WE know that p r i p r j because the r s are distinct. We know that p r i s j because none of the r i and s j add up to p. So the total number of s i and p r j is p 1. All of the r 2 j we between p 1 and p so if we take the difference p r 2 j we get a number in the first half. Since we have p 1 distinct numbers all less than p 1 when we consider them 2 2 modulo p we get that 1 2 p 1 2 s 1 s 2 s k (p r 1 )(p r 2 ) (p r n )(modp) Reducing everything modulo p we get ( ) p 1! ( 1) n s 1 s 2 s k r 1 r 2 r n 2 We already know that so we see that a p 1 2 ( p 1 ( Lemma We know that 2 )! = s 1 s 2 s k r 1 r 2 r n a p 1 2 ( 1) n (p) = a p ( ) a p ) = ( 1) t where t = 2 p 1 i=1 [ ] ia p
72 72 CHAPTER 5. QUADRATIC RESIDUES When a = 2 the sum is zero because ( ) p 1 a < p 2 To see this just substitute a = 2 and note that p 1 < p. Since we are rounding down ia to the nearest integer we will always round it down to 0 p and the sum will be 0. We know that ( ) a ( 1) 0 p so a must be odd. Why can t it be equal to 1? Wouldn t that mean there exists a solution to x 2 a(p)? Why wouldn t that work? Now we are going to examine the problem using the division algorithm. We know for any two numbers a and b we can find a unique q and r such that a = bq + r. Using the same rounding down function it s easy to see that q = [ a b ] Using this we see that a = [ a + 2a + 3a + + p 1 2 a = where i = p 1 2 i a p ] p + r. [ ] a p + r 1 + p. We can write this more compactly as [ ] = 1 p 1 ai 2 p + residues p I do not have r and s defined but this equals si + r i [ ] 2a p + r p [ ] ai p + r i p [ ] q a = p + R 1 p [ ] 2q 2a = p p + R 2. 2a = p [ ] iq + R i p
73 5.2. LAW OF QUADRATIC RECIPROCITY 73 All R i are distinct because a is relatively prime(to what? to p?) We know that p 1 2 I don t know what s going on here! = s 1 + s 2 + s s k + p r 1 + p r p r n a + 2a + 3a + + p 1 2 a p 1 2 Now this is in a box, so maybe that means it is really important ( ) p 2 1 (a 1) = p 8 Plug in a = 2 Consider modulo 2. In the case where a = 2 we get ( ) 2 p 2 p 1 i=1 p 2 1 n 8 ( ) a = a p 1 2 ( 1) n p = ( 1) p2 1 8 [ ] ia + 2 r i + np p Now consider the case where a is odd. When a is odd we know that a 1 is even. We get 0 [ ] ia n p This implies that n 2 p 1 i=1 [ ] ia p This is the end of this proof. I need to sit there and stare or find some sort of explanation in another number theory book so I can figure out what is going on.
74 74 CHAPTER 5. QUADRATIC RESIDUES ( Theorem If p and q are distinct odd primes, then p q ) ( q p ) = ( 1) ( p 1 q 1 )( 2 2 ) First let us consider the case where one of the primes is of the form p = 4k + 1. When primes are of this form p 1 2 = 4k = 2k If p 1 is even then we know that ( 1) ( p 1 2 )( q 1 2 ) 2 = 1 because our exponent is even. All of our Legendre numbers are either 1 or 1. Powers of 1 are also either 1 or 1. Because of this we can restate our theorem ( ) ( ) p = ( 1) ( p 1 2 )( q 1 2 ) p q q Why do we restate this? How does it help us to make this observation? From Lemma we know that ( ) p P = ( 1) [ ip q ] q So now I think that we are considering ( 1) P [ ip q ] and ( 1) P [ iq p ] We want to show with a combinatorial argument that ( ) ( ) p 1 q 1 = [ ] ip [ ] iq 2 1 q p Consider a coordinate plane with dots on every integral value. Vertically we go up q 1 dots and horizontally we go over p 1 dots. We are going to consider 2 2 the line x = p y and first count how many points are on the line. There are q no points on the line because p and q are both prime? Is this why? Because both of them are prime the first dot on the line would have the coordinates (p, q) and our table is not that large. We are going to first count the number of points underneath this line and then the number of points above it. In any given row we can count the number of points under the line by using a the same nearest integer [ ] function that we used before in the proof. In the ith column there are points under the line. If we add up the points under iq p
75 5.3. SOME SPECIFIC COMPUTATIONS WITH THE LEGENDRE SYMBOL75 the line in all of the columns we will get the total number of points under the line on our graph. This value is equal to 2 p 1 i=1 [ ] iq p Now we are going to count the number of points to the left of the line. This is exactly the same as counting the points above the line but thinking of it this way makes it easier [ ] to count. The number of points in the ith row to pi the left of the line is. So the total number of points above the line is q [ ] p 1 2 pi i=1 Because none of the points are on the line we have counted all q of them. Another way to determine the total number of points on our grid is ( to multiply the length and width of the grid. This number is equal to p 1 ) ( q 1 ) 2 2. Therefore we have counted the total number of points on the grid in two ways. Of course this number is always the same so we have shown that ( ) ( ) p 1 q 1 = [ ] ip [ ] iq 2 1 q p Now we are going to put all of this together and maybe rework the proof so that it is all more understandable. In Lemma we showed that ( ) ( ) p q P P = ( 1) [ ip q ] ( 1) [ iq p ] q p With our combinatorial argument we can substitute ( ) ( ) ( ) ( ) p q p 1 q 1 = q p 2 2 Now it is only a simple application rules of exponents to prove our theorem. 5.3 Some specific computations with the Legendre Symbol We are now going to do ( ) some computations with some real numbers. We are going to calculate. We know that 3 3(mod4) so we only have to 3 p
76 76 CHAPTER 5. QUADRATIC RESIDUES consider p. ( ) { ( 3 p ) p 1(4) = 3 p ( p 3) p 1(4) This makes a decent amount of sense based on the definition. But next to it we have some other information that seems really random to me.come back to this once I ve worked some of the proofs out in this section. Theorem There are infinitely many primes of the form 8k + 3. We are going to use the Legendre symbol for our favorite proof. We will consider ( ) { 2 1 p ±1(8) = p 1 p ±3(8) Like usual, assume that there are finitely many primes of the form 8k + 3. Let s call these primes p 1, p 2,, p n. (we use an argument like 4k + 1?) x 2 2(mod8) ( ) ( ) 2 2 = p 8k + 3 By the rules of the Legendre symbol this equals ( 1 8k + 3 ) ( 2 8k + 3 ) Now we can determine the value of these Legendre Symbols. Although this might be contradicting what I have written above ( ) ( ) 2 1 = 1 and = 1 8k + 3 8k + 3 Now we have that x 2 2(p) implies p... I don t know what is supposed to go there. ( ) ( ) ( ) = 8k + 5 8k + 5 8k + 5 ( ) ( ) 1 2 = 1 and = 1 8k + 5 8k + 5
77 5.3. SOME SPECIFIC COMPUTATIONS WITH THE LEGENDRE SYMBOL77 We consider a third case for our prime numbers. ( ) ( ) ( ) = 8k + 1 8k + 1 8k + 1 so Now this is the part of the proof that looks familiar. q (p 1 p 2 p 3 p n ) implies q 1 or 3(8) q x x 2 2(p) We have proved that there are infinitely man primes that are either congruent to 1 or 3 modulo 8. Now we have an interesting fact that I d have to think about. Squares of odd numbers are congruent to 1 modulo 8. Odd numbers look like 2k + 1. If you square it you get (2k + 1) 2 = 4k 2 + 4k + 1 I guess we can just consider all of the cases. It is true when k = 1, 2, 3, 4, 5, 6, 7, 8. You can verify this by plugging each one of them in and considering the equation modulo 8. Now are we assuming like usual that all primes are odd to get the following fact? (p 1 p 2 p 3 p n ) (8) This would make sense if all the primes were odd because squares of odd numbers are equivalent to 1 and if we multiply them all together they still should be equivalent to 1. If all of our q i 1(8) then when we multiply them together they are still congruent to 1 modulo 8. Now we are going to go back to using order. o p (1 + a) a 3 1(p) What does a stand for? a 1(p) Where are we getting that the o ( a) = 3) a 1
78 78 CHAPTER 5. QUADRATIC RESIDUES p a 3 1 We can factor a 3 1 = (a 1)(a 2 + a + 1) Because we already know that a 1(p) we know that p a 1. Because p is prime p a 2 + a + 1. (1 + a) 2 = 1 + 2a + a 2 a(p) (1 + a) 3 = (1 + a) 2 (1 + a) We already know that (1 + a) 2 a so we get (1 + a) 3 a(a + 1) = a + a 2 Why do we know that a + a 2 = 1? If we assume that fact then we see that (1 + a) 6 = ( 1) 2 = 1 Thus the order of (1 + a) is 6 because the second and third powers are not equal to 1. How does the order being 6 tell us that we have a prime that is congruent to 3 modulo 8? How is this even related?
79 Chapter 6 Arithmetic Functions In this chapter we will define four? arithmetic functions. Definition Arithmetic Functions A function f : N C is called an arithmetic function. The domain is the positive integers and the range is a subset of the complex integer. We will now use some of the ideas we have already learned to define some arithmetic functions. Definition Examples of Arithmetic Functions Let n be a positive integer. d(n) is the number of positive divisors of n σ(n) is the sum of positive divisors of n µ(n) is 0 if n is not square free and otherwise it is ( 1) k where k is the number of prime divisors of n φ(n) is the number of positive integers less than n and relatively prime to n (we ve already seen this one) 6.1 Pigeon-hole These are the proofs from the book about pigeon hole principal. Theorem Pigeon-hole Principal If n pigeons are placed in r pigeon holes and we have more pigeons than holes then at least one hole contains more than one pigeon. 79
80 80 CHAPTER 6. ARITHMETIC FUNCTIONS Claim Consider the numbers 1, 2, 3,, 2n and take any n + 1 of them. There are two among these n + 1 numbers which are relatively prime. Solution There are two numbers in our n + 1 that must be only one space apart. Any two number that are only one apart are relatively prime. Claim Suppose that A is a set of numbers such that A {1, 2,, 2n} with A = n + 1. Then there are always two number in A such that one divides the other. Solution This was one of Erdos favorite initiation questions to mathematics. It is not immediately obvious how to apply the pigeon hole principal, we need to creatively define what a hole is. Write every number a A in the form a = 2 k m, where m is an odd number between 1 and 2n 1. Since there are n + 1 numbers in A, but only n different parts, there must be two numbers in A with the same odd part. Hence one is the multiple of the other. Claim Suppose we are given n integers a 1, a 2,, a n which need not be distinct. Then there is always a set of consecutive numbers a k+1, a k+2,, a l whose sum l i=k+1 a i is a multiple of n. Let N = {0, a 1, a 1 + a 2,, a 1 + a a n } and R = {0, 1,, n 1}. Consider the map f : N R, where f(m) is the remainder on division by n. Since N = n + 1 > n = R, it follows that there are two sums a a k, a a l (k < l) with the same remainder, where the first sum may be the empty sum denoted by 0. It follows that l l k a i = a i i=k+1 has remainder 0-end of proof. i=1 Theorem Double Counting Suppose that we are given two finite sets R and c and a subset S R C. Whenever (p, q) S, then we say p and q are incident. If r p denotes the number of elements that are incident to p R, andc q denotes the number of elements that are incident to q C, then p R r p = S = p C Again, there is nothing to prove. The first sum classifies the pairs in S according to the first entry, while the second sum classifies the same pairs according to the second entry. There is a useful way to picture the set S. i=1 c q. a i
81 6.1. PIGEON-HOLE 81 Consider the matrix A = (a pq ), the incident matrix of S, where the rows and columns of A are indexed by the elements of R and C respectively, with a p q = 1 if (p, q) S a pq = 0 if (p, q) S With this set up, r p is the sum of the pth row of A and c q is the sum of the qth column. Hence the first sum in our Theorem adds the elements of A( that is, counts the 1 s in S) by rows, and the second sum by columns. The following example should made this correspondence clear. Let R = C = {1, 2,, 8}, and the set S = {(i, j) : idividesj}. We then obtain the matrix in the margin, which only displays the 1 s. Look at the table on the left. The number of 1 s in column j is precisely the number of divisors of j; let us denote this number by t(j). Let us ask how large this number t(j) is on the average when j ranges from 1 to n. Thus we ask for the quantity t(n) = 1 n n t(j). j=1 How large is t(n)j for arbitrary n? At first glance, this seems hopeless. For prime numbers we have t(p) = 2, while for 2 k we obtain a large number t(2 k ) = k + 1. So, t(n) is a wildly jumping function, and we surmise that the same is true for t(n). Wrong guess, the opposite is true. Counting in two ways provides and unexpected and simple answer. Consider the matrix A as above for the integers 1 up to n. Counting by columns we get n j=1 t(j). How many 1 s are in row i? Easy enough, the 1 s correspond to the multiples of i : 1i, 2i,, and the last multiple not exceeding n is n i. Hence we i obtain. t(n) = 1 n n t(j) = 1 n j=1 n n i 1 n i=1 n i=1 n i = where the error in each summand, when passing from n to n is less than i i 1. Hence the overall error for the average is less than 1 as well. Now the last sum is the n-th harmonic number, which is roughly equal to logn, with an error of less than 1. In summary, we have proved the remarkable result that, while t(n) is totally erratic, the average t(n) behaves beautifully: t(n) logn holds with an error of less than 2. n i=1 1 i,
82 82 CHAPTER 6. ARITHMETIC FUNCTIONS Some more Pigeon Hole Problems 6.2 Bertrand s Postulate Theorem Bertrand s postulate For every n 1 there is some prime number p with n < p 2n. Proof: We will estimate the size of the binomial coefficient ( ) 2n n carefully enough to see that if it didn t have any prime factors in the range n < p 2n then it would be too small. Our argument is in five steps. 1. First show it is true for n < We can find a sequence of prime numbers 2, 3, 5, 7, 13, 23, 43, 83, 163, 317, 631, 1259, 2503, 4001 where each is smaller than twice the previous one. Hence every interval {y : n < y 2n} with n < 4000 contains one of these 14 primes. 2. Next we prove that p 4 x 1 p x for all real x 2, where our notation, here and in the following, is meant to imply that the product is taken over all prime numbers p x. The proof that we present for this fact is not from Erdos original paper, but it is also due to Erdos, and is a true Book Proof. First we note that if q is the largest prime with q x, then p and p x p = p q 4 q 1 4 x 1 Thus it suffices to check for the case where p = q is a prime number. For q = 2 we get 2 4 so we proceed to consider odd primes q = 2m + 1. For these we split the product and compute p 2m+1 p = p m+1 p m+1<p 2m+1 p 4 m ( 2m + 1 m ) 4 m 2 2m = 4 2m
83 6.2. BERTRAND S POSTULATE 83 All the pieces of this one line computation are easy to see. In fact, p 4 m p m+1 holds by induction. The inequality ( ) 2m + 1 p m m+1 p 2m+1 follows from the observation that ( ) 2m+1 m = (2m+1)! is an integer, where m!(m+1)! the primes we consider are all factors of the numerator (2m + 1)!, but not of the denominator m!(m + 1)!. Finally ( ) 2m m m holds since ( ) 2m + 1 m and are two equal summands that appear in 2m+1 k=0 ( ) 2m + 1 m + 1 ( ) 2m + 1 = 2 2m+1 k
CHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)
Chapter 23 Squares Modulo p Revised Version of Chapter 23 We learned long ago how to solve linear congruences ax c (mod m) (see Chapter 8). It s now time to take the plunge and move on to quadratic equations.
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory
11 Ideals. 11.1 Revisiting Z
11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(
8 Primes and Modular Arithmetic
8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.
Applications of Fermat s Little Theorem and Congruences
Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4
Factoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
Notes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.
Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize
Homework until Test #2
MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such
Quotient Rings and Field Extensions
Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.
SUM OF TWO SQUARES JAHNAVI BHASKAR
SUM OF TWO SQUARES JAHNAVI BHASKAR Abstract. I will investigate which numbers can be written as the sum of two squares and in how many ways, providing enough basic number theory so even the unacquainted
WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?
WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT? introduction Many students seem to have trouble with the notion of a mathematical proof. People that come to a course like Math 216, who certainly
Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm
MTHSC 412 Section 2.4 Prime Factors and Greatest Common Divisor Greatest Common Divisor Definition Suppose that a, b Z. Then we say that d Z is a greatest common divisor (gcd) of a and b if the following
An Introductory Course in Elementary Number Theory. Wissam Raji
An Introductory Course in Elementary Number Theory Wissam Raji 2 Preface These notes serve as course notes for an undergraduate course in number theory. Most if not all universities worldwide offer introductory
= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that
Instructions. Answer each of the questions on your own paper, and be sure to show your work so that partial credit can be adequately assessed. Credit will not be given for answers (even correct ones) without
Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
Chapter 11 Number Theory
Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications
SECTION 10-2 Mathematical Induction
73 0 Sequences and Series 6. Approximate e 0. using the first five terms of the series. Compare this approximation with your calculator evaluation of e 0.. 6. Approximate e 0.5 using the first five terms
9. POLYNOMIALS. Example 1: The expression a(x) = x 3 4x 2 + 7x 11 is a polynomial in x. The coefficients of a(x) are the numbers 1, 4, 7, 11.
9. POLYNOMIALS 9.1. Definition of a Polynomial A polynomial is an expression of the form: a(x) = a n x n + a n-1 x n-1 +... + a 1 x + a 0. The symbol x is called an indeterminate and simply plays the role
Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test
Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important
1.3 Polynomials and Factoring
1.3 Polynomials and Factoring Polynomials Constant: a number, such as 5 or 27 Variable: a letter or symbol that represents a value. Term: a constant, variable, or the product or a constant and variable.
Handout NUMBER THEORY
Handout of NUMBER THEORY by Kus Prihantoso Krisnawan MATHEMATICS DEPARTMENT FACULTY OF MATHEMATICS AND NATURAL SCIENCES YOGYAKARTA STATE UNIVERSITY 2012 Contents Contents i 1 Some Preliminary Considerations
8 Divisibility and prime numbers
8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS John A. Beachy Northern Illinois University 2014 ii J.A.Beachy This is a supplement to Abstract Algebra, Third Edition by John A. Beachy and William D. Blair
Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)
Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem) In order to understand the details of the Fingerprinting Theorem on fingerprints of different texts from Chapter 19 of the
Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may
Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition
The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.
The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,
Elementary Number Theory
Elementary Number Theory A revision by Jim Hefferon, St Michael s College, 2003-Dec of notes by W. Edwin Clark, University of South Florida, 2002-Dec L A TEX source compiled on January 5, 2004 by Jim Hefferon,
PROBLEM SET 6: POLYNOMIALS
PROBLEM SET 6: POLYNOMIALS 1. introduction In this problem set we will consider polynomials with coefficients in K, where K is the real numbers R, the complex numbers C, the rational numbers Q or any other
Unique Factorization
Unique Factorization Waffle Mathcamp 2010 Throughout these notes, all rings will be assumed to be commutative. 1 Factorization in domains: definitions and examples In this class, we will study the phenomenon
Integer Factorization using the Quadratic Sieve
Integer Factorization using the Quadratic Sieve Chad Seibert* Division of Science and Mathematics University of Minnesota, Morris Morris, MN 56567 [email protected] March 16, 2011 Abstract We give
CS 103X: Discrete Structures Homework Assignment 3 Solutions
CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering
MATH10040 Chapter 2: Prime and relatively prime numbers
MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive
Lecture 13 - Basic Number Theory.
Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted
Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and
Breaking The Code Ryan Lowe Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and a minor in Applied Physics. As a sophomore, he took an independent study
Discrete Mathematics, Chapter 4: Number Theory and Cryptography
Discrete Mathematics, Chapter 4: Number Theory and Cryptography Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 4 1 / 35 Outline 1 Divisibility
k, then n = p2α 1 1 pα k
Powers of Integers An integer n is a perfect square if n = m for some integer m. Taking into account the prime factorization, if m = p α 1 1 pα k k, then n = pα 1 1 p α k k. That is, n is a perfect square
On Generalized Fermat Numbers 3 2n +1
Applied Mathematics & Information Sciences 4(3) (010), 307 313 An International Journal c 010 Dixie W Publishing Corporation, U. S. A. On Generalized Fermat Numbers 3 n +1 Amin Witno Department of Basic
Continued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
3.2 The Factor Theorem and The Remainder Theorem
3. The Factor Theorem and The Remainder Theorem 57 3. The Factor Theorem and The Remainder Theorem Suppose we wish to find the zeros of f(x) = x 3 + 4x 5x 4. Setting f(x) = 0 results in the polynomial
The Division Algorithm for Polynomials Handout Monday March 5, 2012
The Division Algorithm for Polynomials Handout Monday March 5, 0 Let F be a field (such as R, Q, C, or F p for some prime p. This will allow us to divide by any nonzero scalar. (For some of the following,
it is easy to see that α = a
21. Polynomial rings Let us now turn out attention to determining the prime elements of a polynomial ring, where the coefficient ring is a field. We already know that such a polynomial ring is a UF. Therefore
The last three chapters introduced three major proof techniques: direct,
CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements
Factoring Polynomials
Factoring Polynomials Sue Geller June 19, 2006 Factoring polynomials over the rational numbers, real numbers, and complex numbers has long been a standard topic of high school algebra. With the advent
Section 4.2: The Division Algorithm and Greatest Common Divisors
Section 4.2: The Division Algorithm and Greatest Common Divisors The Division Algorithm The Division Algorithm is merely long division restated as an equation. For example, the division 29 r. 20 32 948
Chapter 2 Remodulization of Congruences Proceedings NCUR VI. è1992è, Vol. II, pp. 1036í1041. Jeærey F. Gold Department of Mathematics, Department of Physics University of Utah Don H. Tucker Department
Primality - Factorization
Primality - Factorization Christophe Ritzenthaler November 9, 2009 1 Prime and factorization Definition 1.1. An integer p > 1 is called a prime number (nombre premier) if it has only 1 and p as divisors.
Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 [email protected].
Some Polynomial Theorems by John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 [email protected] This paper contains a collection of 31 theorems, lemmas,
Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.
Algebra 2 - Chapter Prerequisites Vocabulary Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any. P1 p. 1 1. counting(natural) numbers - {1,2,3,4,...}
MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003
MATH 22 Lecture R: 10/30/2003 THE FUNDAMENTAL THEOREM of ARITHMETIC You must remember this, A kiss is still a kiss, A sigh is just a sigh; The fundamental things apply, As time goes by. Herman Hupfeld
Lecture Notes on Polynomials
Lecture Notes on Polynomials Arne Jensen Department of Mathematical Sciences Aalborg University c 008 Introduction These lecture notes give a very short introduction to polynomials with real and complex
GREATEST COMMON DIVISOR
DEFINITION: GREATEST COMMON DIVISOR The greatest common divisor (gcd) of a and b, denoted by (a, b), is the largest common divisor of integers a and b. THEOREM: If a and b are nonzero integers, then their
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples Brian Hilley Boston College MT695 Honors Seminar March 3, 2006 1 Introduction 1.1 Mazur s Theorem Let C be a
FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z
FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z DANIEL BIRMAJER, JUAN B GIL, AND MICHAEL WEINER Abstract We consider polynomials with integer coefficients and discuss their factorization
DIVISIBILITY AND GREATEST COMMON DIVISORS
DIVISIBILITY AND GREATEST COMMON DIVISORS KEITH CONRAD 1 Introduction We will begin with a review of divisibility among integers, mostly to set some notation and to indicate its properties Then we will
CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen
CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: [email protected] URL: http://home.imf.au.dk/niels/ Contents
If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?
Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question
Introduction to Finite Fields (cont.)
Chapter 6 Introduction to Finite Fields (cont.) 6.1 Recall Theorem. Z m is a field m is a prime number. Theorem (Subfield Isomorphic to Z p ). Every finite field has the order of a power of a prime number
SECTION 0.6: POLYNOMIAL, RATIONAL, AND ALGEBRAIC EXPRESSIONS
(Section 0.6: Polynomial, Rational, and Algebraic Expressions) 0.6.1 SECTION 0.6: POLYNOMIAL, RATIONAL, AND ALGEBRAIC EXPRESSIONS LEARNING OBJECTIVES Be able to identify polynomial, rational, and algebraic
SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by
SUBGROUPS OF CYCLIC GROUPS KEITH CONRAD 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by g = {g k : k Z}. If G = g, then G itself is cyclic, with g as a generator. Examples
Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us
CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY
January 10, 2010 CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY The set of polynomials over a field F is a ring, whose structure shares with the ring of integers many characteristics.
MOP 2007 Black Group Integer Polynomials Yufei Zhao. Integer Polynomials. June 29, 2007 Yufei Zhao [email protected]
Integer Polynomials June 9, 007 Yufei Zhao [email protected] We will use Z[x] to denote the ring of polynomials with integer coefficients. We begin by summarizing some of the common approaches used in dealing
FACTORING IN QUADRATIC FIELDS. 1. Introduction. This is called a quadratic field and it has degree 2 over Q. Similarly, set
FACTORING IN QUADRATIC FIELDS KEITH CONRAD For a squarefree integer d other than 1, let 1. Introduction K = Q[ d] = {x + y d : x, y Q}. This is called a quadratic field and it has degree 2 over Q. Similarly,
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation
( ) FACTORING. x In this polynomial the only variable in common to all is x.
FACTORING Factoring is similar to breaking up a number into its multiples. For example, 10=5*. The multiples are 5 and. In a polynomial it is the same way, however, the procedure is somewhat more complicated
Factoring Algorithms
Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors
TEXAS A&M UNIVERSITY. Prime Factorization. A History and Discussion. Jason R. Prince. April 4, 2011
TEXAS A&M UNIVERSITY Prime Factorization A History and Discussion Jason R. Prince April 4, 2011 Introduction In this paper we will discuss prime factorization, in particular we will look at some of the
z 0 and y even had the form
Gaussian Integers The concepts of divisibility, primality and factoring are actually more general than the discussion so far. For the moment, we have been working in the integers, which we denote by Z
5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8
5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8 Note: Integers are the w hole numbers and their negatives (additive inverses). While our text discusses only whole numbers, all these ideas
A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions
A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions Marcel B. Finan Arkansas Tech University c All Rights Reserved First Draft February 8, 2006 1 Contents 25
Overview of Number Theory Basics. Divisibility
Overview of Number Theory Basics Murat Kantarcioglu Based on Prof. Ninghui Li s Slides Divisibility Definition Given integers a and b, b 0, b divides a (denoted b a) if integer c, s.t. a = cb. b is called
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Module No. # 01 Lecture No. # 05 Classic Cryptosystems (Refer Slide Time: 00:42)
Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.
Matrix Algebra A. Doerr Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Some Basic Matrix Laws Assume the orders of the matrices are such that
Factoring Polynomials
Factoring Polynomials Hoste, Miller, Murieka September 12, 2011 1 Factoring In the previous section, we discussed how to determine the product of two or more terms. Consider, for instance, the equations
a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)
ROOTS OF POLYNOMIAL EQUATIONS In this unit we discuss polynomial equations. A polynomial in x of degree n, where n 0 is an integer, is an expression of the form P n (x) =a n x n + a n 1 x n 1 + + a 1 x
SOLVING POLYNOMIAL EQUATIONS
C SOLVING POLYNOMIAL EQUATIONS We will assume in this appendix that you know how to divide polynomials using long division and synthetic division. If you need to review those techniques, refer to an algebra
Lectures on Number Theory. Lars-Åke Lindahl
Lectures on Number Theory Lars-Åke Lindahl 2002 Contents 1 Divisibility 1 2 Prime Numbers 7 3 The Linear Diophantine Equation ax+by=c 12 4 Congruences 15 5 Linear Congruences 19 6 The Chinese Remainder
Primes. Name Period Number Theory
Primes Name Period A Prime Number is a whole number whose only factors are 1 and itself. To find all of the prime numbers between 1 and 100, complete the following exercise: 1. Cross out 1 by Shading in
Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov
Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES
MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
Math 319 Problem Set #3 Solution 21 February 2002
Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod
PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include 2 + 5.
PUTNAM TRAINING POLYNOMIALS (Last updated: November 17, 2015) Remark. This is a list of exercises on polynomials. Miguel A. Lerma Exercises 1. Find a polynomial with integral coefficients whose zeros include
5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1
MATH 13150: Freshman Seminar Unit 8 1. Prime numbers 1.1. Primes. A number bigger than 1 is called prime if its only divisors are 1 and itself. For example, 3 is prime because the only numbers dividing
Just the Factors, Ma am
1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive
This is Factoring and Solving by Factoring, chapter 6 from the book Beginning Algebra (index.html) (v. 1.0).
This is Factoring and Solving by Factoring, chapter 6 from the book Beginning Algebra (index.html) (v. 1.0). This book is licensed under a Creative Commons by-nc-sa 3.0 (http://creativecommons.org/licenses/by-nc-sa/
Settling a Question about Pythagorean Triples
Settling a Question about Pythagorean Triples TOM VERHOEFF Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands E-Mail address:
Basic Algorithms In Computer Algebra
Basic Algorithms In Computer Algebra Kaiserslautern SS 2011 Prof. Dr. Wolfram Decker 2. Mai 2011 References Cohen, H.: A Course in Computational Algebraic Number Theory. Springer, 1993. Cox, D.; Little,
3 1. Note that all cubes solve it; therefore, there are no more
Math 13 Problem set 5 Artin 11.4.7 Factor the following polynomials into irreducible factors in Q[x]: (a) x 3 3x (b) x 3 3x + (c) x 9 6x 6 + 9x 3 3 Solution: The first two polynomials are cubics, so if
V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography
V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography 3 Congruence Congruences are an important and useful tool for the study of divisibility. As we shall see, they are also critical
Computer and Network Security
MIT 6.857 Computer and Networ Security Class Notes 1 File: http://theory.lcs.mit.edu/ rivest/notes/notes.pdf Revision: December 2, 2002 Computer and Networ Security MIT 6.857 Class Notes by Ronald L. Rivest
POLYNOMIAL FUNCTIONS
POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a
An Innocent Investigation
An Innocent Investigation D. Joyce, Clark University January 2006 The beginning. Have you ever wondered why every number is either even or odd? I don t mean to ask if you ever wondered whether every number
COLLEGE ALGEBRA. Paul Dawkins
COLLEGE ALGEBRA Paul Dawkins Table of Contents Preface... iii Outline... iv Preliminaries... Introduction... Integer Exponents... Rational Exponents... 9 Real Exponents...5 Radicals...6 Polynomials...5
Chapter 3. if 2 a i then location: = i. Page 40
Chapter 3 1. Describe an algorithm that takes a list of n integers a 1,a 2,,a n and finds the number of integers each greater than five in the list. Ans: procedure greaterthanfive(a 1,,a n : integers)
SPECIAL PRODUCTS AND FACTORS
CHAPTER 442 11 CHAPTER TABLE OF CONTENTS 11-1 Factors and Factoring 11-2 Common Monomial Factors 11-3 The Square of a Monomial 11-4 Multiplying the Sum and the Difference of Two Terms 11-5 Factoring the
Every Positive Integer is the Sum of Four Squares! (and other exciting problems)
Every Positive Integer is the Sum of Four Squares! (and other exciting problems) Sophex University of Texas at Austin October 18th, 00 Matilde N. Lalín 1. Lagrange s Theorem Theorem 1 Every positive integer
Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive
Chapter 3 Number Theory 159 3.1 Prime Numbers Prime numbers serve as the basic building blocs in the multiplicative structure of the integers. As you may recall, an integer n greater than one is prime
Integer roots of quadratic and cubic polynomials with integer coefficients
Integer roots of quadratic and cubic polynomials with integer coefficients Konstantine Zelator Mathematics, Computer Science and Statistics 212 Ben Franklin Hall Bloomsburg University 400 East Second Street
