# 1 Introduction. 2 Integer Division

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 1 Introduction This essay introduces some new sets of numbers. Up to now, the only sets of numbers (algebraic systems) we know is the set Z of integers with the two operations + and and the system R of real numbers with the same two operations. Of course the operations satisfy lots of properties like commutativity, associativity, and distribution of over + (ie. a(b + c) = ab + ac. Both the systems Z and R are infinite. Our new systems are finite! There is one for each positive integer greater than 1. If n is such a positive integer, the notation for the new system is Z n. For convenience and simplicity, we are going to select just two values n = 6 and n = 7 to study in depth. 1 2 Integer Division We all know very well how to divide one positive integer by another. For example, if you were asked to compute 41/9, you might write 9 41 and proceed to carry out the division algorithm. Of course in doing this you would rely heavily on your knowledge of multiplication. It comes as no surprise to us that division requires some guesswork followed by multiplication to check the guesswork. Thus, you would say 9 goes into 41 4 times with 5 left over. We can express this as 41 = In this equation, the number 41 is called the dividend, 9 is the divisor, 4 is the quotient, and 5 is the remainder. So, in general, we have dividend = divisor quotient + remainder. Using the letters D for dividend, d for divisor, q for quotient, and r for remainder, we write D = d q + r. Notice that our remainder 5 is in the range 0, 1, 2, 3, 4..., 8. Why can we insist that this always happens when we are dividing by 9? What would a remainder larger than 9 mean? What would a negative remainder mean? If we insist, as we shall from here on that the remainder r be in the range 0, 1, 2,..., d 1, we may then assert the division algorithm: Division Algorithm Given any integer D and any nonzero integer d, there exist unique integers q and r satisfying both 1 Unauthorized reproduction/photocopying prohibited by law c 1

2 a. D = d q + r and b. 0 r d 1. Note that in case r = 0, we call d a divisor of D. Notice also that neither D nor d is required to be positive. When either or both is negative, the equations and uniqueness still hold. For example, when D = 31 and d = 9, we get 31 = 9( 4) + 5. You ll see that this is very important when we use the division algorithm to find the representation of a positive or negative integer when the base number is negative. Look at the two examples, 41 = , and 31 = 9( 4) + 5. In both cases we can say that q is the largest number such that 9q is less than D. Geometrically, think of marking of segments of length 9 units to the right if D > 0, and to the left if D < 0 until we get to the multiple of 9 that is 8 or fewer units to the left of D. There is a nice way to write q and r in terms of D and d. To explore this, define the floor function x of a number x as the largest integer that is not bigger than x. This useful function has a companion function, the ceiling function, x which is the smallest integer that is not less than x. Another function we will need to know about is the fractional part function x which is defined as follows: x = x x. See the exercises and those in the module that covers place value. a For each of the real numbers x listed, find x, x and x. (a) x = 3.14 (b) x = 3.14 (c) x = (d) x = b Sketch the graphs of the three functions on the cartesian coordinate system. c For each of the pairs D and d listed, find q and r using the formulas q = D/d and r = D D/d d. Notice that your graphing calculator has the functions x, x and x built in. (a) D = 77, d = 5 (b) D = 77, d = 5 2

3 (c) D = 77, d = 5 (d) D = 77, d = 5 3 Modulo 9 congruence So, what is modular arithmetic? more later here! Now we see that both 41 and 31 are 5 units larger than some multiple of 9. Note that their difference 41 ( 31) = 72 is a multiple of 9. Of course this happens for any two numbers D 1 and D 2 whenever the remainders, upon division by 9, are the same. To prove this, suppose r is that remainder. Then Then D 1 = 9 q 1 + r and D 2 = 9 q 2 + r. D 1 D 2 = 9 q 1 + r (9 q 2 + r) = 9 q 1 + r (9 q 2 + r) = 9 q 1 9 q 2 + r r = 9 (q 1 q 2 ). On the other hand, the converse is also true: If two numbers D 1 and D 2 differ by a multiple of 9, upon division by 9, the remainders are the same. To see this, suppose D 1 = 9 q 1 + r 1 and D 2 = 9 q 2 + r 2. Since D 1 D 2 is a multiple of 9, we can write D 1 D 2 = 9 q 1 + r 1 (9 q 2 + r 2 ) = 9k, for some integer k. We can solve this for r 1 r 2 to get r 1 r 2 ) = 9k (9 q 1 9 q 2 ) = 9(k q 1 + q 2 ), so r 1 r 2 is a multiple of 9. Since both r 1 and r 2 are in the set {0, 1, 2, 3, 4, 5, 6, 7, 8}, the largest they could differ by is 8 and the least they could differ by is 8. The only multiple of 9 in that range is 0, so r 1 r 2 = 0, which is what we wanted to prove. We encounter two integers D 1 and D 2 that have this relationship often enough to give the relationship a special name: modular congruence. Two numbers that differ by a multiple of 9 are said to be congruent modulo 9, and we write D 1 D 2 (mod 9). Of course there is nothing special about the number 9 except that it is positive. Hence we have the following definition. Congruence Modulo m Let m be a positive integer. Two numbers D 1 and D 2 are congruent modulo m, and we write D 1 D 2 (mod m) if D 1 D 2 is a multiple of m. 3

4 The definition of congruence, which has nothing to do with the same word used in geometry, is due to Carl Gauss. Gauss noticed that the relationship that two numbers D 1 and D 2 have the same remainder upon division by another number m kept turning up in his examples and proofs. For example, the set of even numbers are those which yield a zero remainder when divided by 2. Thus congruence modulo 2 means that the two integers are either both even or both odd. This is a good time to practice with congruences. 4 Properties of Modular Congruence In this section, we discuss three important properties of modular congruence and in the next section, two more. The first three are the properties required for an equivalence relation. An equivalence relation is a binary relation that satisfies the three properties of reflexivity, symmetry, and transitivity, defined below. In the Discrete Math course, you will learn all about binary relations. However, we do not assume here that you are familiar with the properties of binary relations. 1. Congruence modulo m is a reflexive relation. That is, for every integer u, u u (mod m). This is clearly true because u u = 0 is a multiple on m. 2. Congruence modulo m is a symmetric relation. This means that if u and v are integers satisfying u v (mod m), then v u (mod m). This property follows from the fact that the negative of a multiple of m is also a multiple of m. 3. Congruence modulo m is a transitive relation. This means that for any three integers u, v and w satisfying u v (mod m) and v w (mod m), it is also true that u w (mod m). To prove this, let u, v and w satisfy the hypothesis. Then u v = km and v w = lm, where k and l are integers. Now u w = u v + v w = km + lm = (k + l)m. In other words, u w is a multiple of m. Of course you recognize that equality (=) satisfies all three of these, and indeed, modular congruence is a relation very much like equality. Besides discrete math, you might see equivalence relations in the course that develops the number system and in the abstract algebra course. Relations satisfying properties 1, 2, and 3, that is, equivalence relations, above are common in mathematics. The most important 4

5 property of equivalence relations is that each one gives rise to a partition of the set on which it is defined. The sets in the partition are called the cells of the relation. See theorem 1 below. In discussing the next two properties, we ll consider again the special case m = 9. Although the properties are true for any positive integer m, we are going use the case m = 9 repeatedly in the problems, and the proofs are simplified a tiny bit using the 9 where we otherwise use m. 5 Definition of Cells Recall that we are discussing the relation that has a pair (u, v) (or u is related to v) provided u v (mod 9), or equivalently, u v is a multiple of 9. For each integer k, the sell of k, denoted k is the set of integers n to which k is related. Symbolically, k = {n k n (mod 9)}. Thus, for example, and 0 = {n 0 n (mod 9)} = {0, ±9, ±18,...} 1 = {n 1 n (mod 9)} = {1, 8, 10, 17, 19,...}. Notice that 0 = 9 because any number that 0 is congruent to, 9 is also congruent to. To be a little more formal about about it, take an arbitrary member n of 0. Then 0 n (mod 9). Since 9 0 (mod 9) and congruence modulo 9 is known to be transitive (see property 3 above), we see that the pair 9 0 (mod 9) and 0 n (mod 9) implies 9 n (mod 9). So we have proved that if n 0 then n 9, which in set terms means 0 9. Similarly, we can prove that 9 0. But these two set inequalities are together equivalent to saying 0 = 9. 6 The Partition of an Equivalence Relation In this section we state and prove the theorem mentioned above on partitions induced by equivalence relations. Although a much more general theorem on equivalence relations is provable here, we will simply use the congruence modulo m on the set Z of integers. We proved Theorem 1 in section 3. Theorem 1. Let m be a positive integer. Congruence mod m is an equivalence relation. 5

6 Theorem 2. Let m be a positive integer. For each integer u let [u] denote the cell of u. If [u] and [v] are two cells, modulo m, then either [u] and [v] are disjoint or identical. Proof. These cells are also called equivalence classes. To see that two cells [u] and [v] are identical if have any integers in common, note that if w belongs to both [u] and [v], then u w (mod m) and v w (mod m), by the definition of cell. By symmetry w v (mod m) and by transitivity u v (mod m). Then again symmetry by transitivity, any integer z in [u] satisfies z u (mod m) and hence z v (mod m), so z belongs to [v]. The Arithmetic of Congruences In order to build a mathematical structure using cells as numbers, we have to be sure that addition and multiplication are well-defined operations. The method for defining the sum and the product of two cells is pretty clear. For example, if [x] and [y] are cells modulo 6 we want [x] [y] to be [x + y] and [x] [y] to be [x y]. But we must be sure that these operations are well-defined. That is, and must deliver unique values. Theorem 3. Let x and y be integers and [x] and [y] their cells modulo m. Suppose a [x] and b [y]. Then a + b [x + y]. In other words, no matter which representatives of [x] and [y] we choose, the sum is always the cell [x + y]. Proof. To say a [x] means that x a (mod m). Likewise, y b (mod m). Now x + y (a + b) = (x a) + (y b) is the sum of two multiples of m, and therefore is itself a multiple of m. In other words a + b [x + y], as we set out to prove. Here is a nice application of Theorem 3. Problem Find the units digit of the Fibonacci number F Solution: Recall that the Fibonacci numbers are defined by F 1 = F 2 = 1 and F n+2 = F n+1 + F n. Since the units digit of F n is the remainder when F n is divided by 10, we can solve the problem by finding the cells modulo 10 of the F n s. Theorem 3 makes this easy. It says that the units digit of the sum of two F s is the units digit of the sum of the units digits of those F s. The table below shows the units digits of the first 60 Fibonacci numbers in groups of 10. The first 30 entries are given by Notice that the next 30 entries are

7 We are now in position to build the table for modulo m. Let s choose m = 6 again. In the exercises you ll get to do this for m = 7. Since division by 6 produces the 6 remainders 0,1,2,3,4, and 5, we use these numbers as names of cells. What is [3] [5]? To see this, divide by 6, getting a remainder of 2, so [3] [5] = [3 + 5] = [2]. [0] [1] [2] [3] [4] [5] [0] [0] [1] [2] [3] [4] [5] [1] [1] [2] [3] [4] [5] [0] [2] [2] [3] [4] [5] [0] [1] [3] [3] [4] [5] [0] [1] [2] [4] [4] [5] [0] [1] [2] [3] [5] [5] [0] [1] [2] [3] [4] Theorem 4. Let x and y be integers and let [x] and [y] be their cells modulo m. Suppose a [x] and b [y]. Then a b [x y]. In other words [x] [y] = [x y] is a well-defined binary operation. Proof. As before, the hypothesis means that x a and y b are multiples of m. Let s say x a = km and y b = lm. Then xy ab = xy ay + ay ab = (x a) y + a (y b) = kmy + alm = m (ky + al) which, of course, is a multiple of m since ky + al is an integer. We can now build the for any positive integer m. Again we use m = 6. [0] [1] [2] [3] [4] [5] [0] [0] [0] [0] [0] [0] [0] [1] [0] [1] [2] [3] [4] [5] [2] [0] [2] [4] [0] [2] [4] [3] [0] [3] [0] [3] [0] [3] [4] [0] [4] [2] [0] [4] [2] [5] [0] [5] [4] [3] [2] [1] The next theorem follows easily from Theorem 4. We ll use it to find remainders when the n th power of an integer k is divided by another integer m. Theorem 5. If a b (mod m) then, for every positive integer n, a n b n (mod m). 7

8 The proof is by mathematical induction on n. Skip ahead if you need to, to see how proofs by induction work. First note that a 1 b 1 (mod m), the base case. Next, suppose a n 1 b n 1 (mod m). Now apply Theorem 2 with x b and y = b n 1. Then a b (mod m) and a n 1 b n 1 (mod m). Therefore a a n 1 b b n 1 (mod m), and we are done. The next example is of the type promised just before Theorem 5. Problem Find the remainder when is divided by 5. Solution: Note that 7 2 (mod 5). Theorem 3 implies that (mod 5). Now 2 2 = 4 1 (mod 5). Putting all this together we have 7 4 (2 2 ) 2 ( 1) 2 1 (mod 5). Thus, (7 4 ) (mod 5). So the remainder is 2. 7 Divisibility by 9, 3 and 11 The aim of this section is to demonstrate an easy method for finding the cell of a positive integer written in decimal notation modulo 3 or 9 or 11. by the way, the cell is often referred to as the residue class of the number. For example, we could say that the residue class of 101 modulo 9 is 2 because you get a remainder of 2 when you divide 101 by 9. First we ll take an example. What is the residue class of 3742 modulo 9? Notice that (mod 9). Likewise, (mod 9). Of course 10 1(mod 9) also. Using the language of modular arithmetic, we have (mod 9). Thus 3742 is congruent modulo 9 to the sum of its digits. Theorem 6. Every positive integer n is congruent modulo 9 to the sum of its decimal digits. Proof. Recall that the decimal representation of a number is a sum of multiples of powers of 10. Thus n = (a k... a 0 ) 10 = a k 99 }{{... 9} a k 1 9 }.{{.. 9} a 1 (9 + 1) + a 0 k 9 s (k-1) 9 s 8

9 = a k 99 }{{... 9 } + a k 1 9 }.{{.. 9} a 1 (9) + (a k + a k 1 + a 0 ) k 9 s (k-1) 9 s = 9M + a k + a k a }{{} 0. sum of digits Notice that the very same reasoning works for congruence modulo 3. Modulo 11 work is a bit more complicated. Note that 1 1(mod 11), 10 1(mod 11), 100 = 10 2 ( 1) 2 1(mod 11). In general 10 n ( 1) n (mod 11). Thus (mod 11). In other words, when we divide 3742 by 11, we get a remainder of 2. The sum is called the alternating sum of digits. 8 Problems and Exercises 1. Find the congruence class modulo 9 of each of the given integers. (a) (b) (c) obtained by writing down the positive integers from 1 to 99 next to one another. 2. Find the congruence class modulo 3 of each of the given integers. (a) (b) (c) obtained by writing down the positive integers from 1 to 99 next to one another. 3. Find the congruence class modulo 11 of each of the given integers. (a) (b) (c) obtained by writing down the positive integers from 1 to 99 next to one another. 4. Find the congruence class of each of the integers given modulo 99. 9

10 (a) (b) (c) obtained by writing down the positive integers from 1 to 99 next to one another. 5. Find the congruence class of each of the integers given modulo 66. (a) (b) (c) obtained by writing down the positive integers from 1 to 99 next to one another. 6. Build the and tables for the congruence classes modulo 7. The mathematical system we get is denoted (Z 7,, ). (a) show that (Z 7, ) is a group. (b) show that (Z 7, {[0]}, ) is a group. (c) (Z 7,, ) has the other properties (field axioms). This proves that (Z 7,, ) is a field. You ll study structures like this in the abstract algebra course. (d) Solve the linear congruences. [2] [x] + [1] = [0] (some texts would write this 2x + 1 = 0.) Note that [1] + [6] = 0 so [2] [x] + [1] + [6] = [0] + [6] = [6]. Note that [4] [2] = [1] so [4] ([2] [x]) = ([4] [2]) [x] = [1] [x] = [x] and [4] [6] = [3] from the table. So [x] = [3]. 7. Among the integers 1, 2,..., 2008, what is the maximum number of integers that can be selected such that the sum of any two selected number is not a multiple of 7. Reduce each number to its modulo 7 equivalent. Notice that there are 287 multiples of 7 (the largest being 2002), and there are 288 numbers that are congruent to 1 or 2 modulo 7. Pairs of such numbers have sums that are congruent to 2, or 3 or 4 modulo 7. Now if we include all the 288 numbers 10

11 congruent to 3 modulo 7, and then notice that we can also include one multiple of 7, we have = 865 numbers. 8. There are three prime numbers whose squares sum to What is the product of these three numbers? Let p, q, and r denote the three primes. One of the numbers must be 2 because otherwise p 2 + q 2 + r 2 would be an odd number. So let p = 2. Then q 2 + r 2 = Now the units digit of the square of an odd prime (except for the prime 5) is either 1 or 9. No combination of these two digits can result in a number whose units digit is 6. So one of the primes is 5 itself, and the third number is = 5041 = 71 2, so the product of the three primes is = Find the remainder when is divided by 33. Answer: 27. We solve two congruences, (mod 11) and (mod 3). Since 3 5 = (mod 11), it follows that = (mod 11). On the other hand 111 = (mod 11). But 333 is a multiple of 3 so (mod 3). Hence, the number we seek is a multiple of 3 and 5 bigger than a multiple of 11. The number 27 is the only integer less than 33 that satisfies these requirements. 10. There is a pile of eggs. Joan counted the eggs, but her count was of by 1 in the 1 s place. Tom counted the eggs, but his count was of by 1 in the 10 s place. Raoul counted the eggs, but his count was of by 1 in the 100 s place. Sasha, Jose, Peter, and Morris all counted the eggs and got the correct count. When these seven people added their counts together, the sum was How many eggs were in the pile? Answer: 439. If all seven people had found the correct count, the sum of the seven counts would have been a multiple of 7. But (mod 7). Note that 1 1(mod 7), 10 3(mod 7), and 100 2(mod 7). Because of the errors introduced by the counts of Joan, Tom, and Raoul, the sum is ±1 ± 3 ± 2(mod 7). Of the eight possible assignments of plus or minus in this sum, only = 2 5(mod 7) gives a result that is 5 (mod 7). Thus, it must be that Joan s count was 1 too low, Tom s count was 10 too low, and Raoul s count was 100 too high. The corrected total is = 3073 = The number of eggs in the pile is

12 11. What is the remainder when is divided by 8? 12. The sum of four two-digit numbers is 221. None of the eight digits is 0 and no two of them are the same. Which of the following is not included among the eight digits? (A) 1 (B) 2 (C) 3 (D) 4 (E) 5 D. Each of the two-digit numbers leaves the same remainder when divided by 9 as does the sum of its digits. Therefore the sum of the four two-digit numbers leaves the same remainder when divided by 9 as the sum of all eight digits. Let d be the missing digit. Because 221 when divided by 9 leaves a remainder of 5, and the sum of the digits from 1 through 9 is 45, the number (45 d) must leave a remainder of 5 when divided by 9. Thus d = Here s a test for divisibility by 7. Double the units digit, lop off the units digit and subtract the double of the units digit from the rest of the number. If the result is divisible by, then so is the original number. For example, to see that 231 is divisible by 7, compute 23 2 = 21. And 2352 leads to = 231 which we just saw, is a multiple of 7. Prove this divisibility test. The proposition is 10n + d is a multiple of 7 iff n 2d is a multiple of 7. This follows from 2(10n + d) + (n 2d) 0 (mod 7). But this is equivalent to saying 21n + 2d 2d 0 (mod 7). 12

### Elementary Number Theory We begin with a bit of elementary number theory, which is concerned

CONSTRUCTION OF THE FINITE FIELDS Z p S. R. DOTY Elementary Number Theory We begin with a bit of elementary number theory, which is concerned solely with questions about the set of integers Z = {0, ±1,

### MODULAR ARITHMETIC. a smallest member. It is equivalent to the Principle of Mathematical Induction.

MODULAR ARITHMETIC 1 Working With Integers The usual arithmetic operations of addition, subtraction and multiplication can be performed on integers, and the result is always another integer Division, on

### Mathematics of Cryptography

CHAPTER 2 Mathematics of Cryptography Part I: Modular Arithmetic, Congruence, and Matrices Objectives This chapter is intended to prepare the reader for the next few chapters in cryptography. The chapter

### Congruences. Robert Friedman

Congruences Robert Friedman Definition of congruence mod n Congruences are a very handy way to work with the information of divisibility and remainders, and their use permeates number theory. Definition

### 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

### Homework 5 Solutions

Homework 5 Solutions 4.2: 2: a. 321 = 256 + 64 + 1 = (01000001) 2 b. 1023 = 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = (1111111111) 2. Note that this is 1 less than the next power of 2, 1024, which

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5 Modular Arithmetic One way to think of modular arithmetic is that it limits numbers to a predefined range {0,1,...,N

### It is time to prove some theorems. There are various strategies for doing

CHAPTER 4 Direct Proof It is time to prove some theorems. There are various strategies for doing this; we now examine the most straightforward approach, a technique called direct proof. As we begin, it

### 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

### 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

### Math 016. Materials With Exercises

Math 06 Materials With Exercises June 00, nd version TABLE OF CONTENTS Lesson Natural numbers; Operations on natural numbers: Multiplication by powers of 0; Opposite operations; Commutative Property of

### Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

### 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

### Algebraic Systems, Fall 2013, September 1, 2013 Edition. Todd Cochrane

Algebraic Systems, Fall 2013, September 1, 2013 Edition Todd Cochrane Contents Notation 5 Chapter 0. Axioms for the set of Integers Z. 7 Chapter 1. Algebraic Properties of the Integers 9 1.1. Background

### 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

### Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00

18.781 Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00 Throughout this assignment, f(x) always denotes a polynomial with integer coefficients. 1. (a) Show that e 32 (3) = 8, and write down a list

### MATH REVIEW KIT. Reproduced with permission of the Certified General Accountant Association of Canada.

MATH REVIEW KIT Reproduced with permission of the Certified General Accountant Association of Canada. Copyright 00 by the Certified General Accountant Association of Canada and the UBC Real Estate Division.

### Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices. A Biswas, IT, BESU SHIBPUR

Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices A Biswas, IT, BESU SHIBPUR McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Set of Integers The set of integers, denoted by Z,

### 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.

### 3. Equivalence Relations. Discussion

3. EQUIVALENCE RELATIONS 33 3. Equivalence Relations 3.1. Definition of an Equivalence Relations. Definition 3.1.1. A relation R on a set A is an equivalence relation if and only if R is reflexive, symmetric,

### 1 Die hard, once and for all

ENGG 2440A: Discrete Mathematics for Engineers Lecture 4 The Chinese University of Hong Kong, Fall 2014 6 and 7 October 2014 Number theory is the branch of mathematics that studies properties of the integers.

### 10 k + pm pm. 10 n p q = 2n 5 n p 2 a 5 b q = p

Week 7 Summary Lecture 13 Suppose that p and q are integers with gcd(p, q) = 1 (so that the fraction p/q is in its lowest terms) and 0 < p < q (so that 0 < p/q < 1), and suppose that q is not divisible

### Notes on Chapter 1, Section 2 Arithmetic and Divisibility

Notes on Chapter 1, Section 2 Arithmetic and Divisibility August 16, 2006 1 Arithmetic Properties of the Integers Recall that the set of integers is the set Z = f0; 1; 1; 2; 2; 3; 3; : : :g. The integers

### 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

### 2. Methods of Proof Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try.

2. METHODS OF PROOF 69 2. Methods of Proof 2.1. Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try. Trivial Proof: If we know q is true then

### EULER S THEOREM. 1. Introduction Fermat s little theorem is an important property of integers to a prime modulus. a p 1 1 mod p.

EULER S THEOREM KEITH CONRAD. Introduction Fermat s little theorem is an important property of integers to a prime modulus. Theorem. (Fermat). For prime p and any a Z such that a 0 mod p, a p mod p. If

### MODULAR ARITHMETIC KEITH CONRAD

MODULAR ARITHMETIC KEITH CONRAD. Introduction We will define the notion of congruent integers (with respect to a modulus) and develop some basic ideas of modular arithmetic. Applications of modular arithmetic

### Math Workshop October 2010 Fractions and Repeating Decimals

Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,

### 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 2. Inequalities

CHAPTER 2 Inequalities In this section we add the axioms describe the behavior of inequalities (the order axioms) to the list of axioms begun in Chapter 1. A thorough mastery of this section is essential

### = 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

### OPERATIONS AND PROPERTIES

CHAPTER OPERATIONS AND PROPERTIES Jesse is fascinated by number relationships and often tries to find special mathematical properties of the five-digit number displayed on the odometer of his car. Today

### 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

### 3. Applications of Number Theory

3. APPLICATIONS OF NUMBER THEORY 163 3. Applications of Number Theory 3.1. Representation of Integers. Theorem 3.1.1. Given an integer b > 1, every positive integer n can be expresses uniquely as n = a

### Continued fractions and good approximations.

Continued fractions and good approximations We will study how to find good approximations for important real life constants A good approximation must be both accurate and easy to use For instance, our

### Lecture 1: Elementary Number Theory

Lecture 1: Elementary Number Theory The integers are the simplest and most fundamental objects in discrete mathematics. All calculations by computers are based on the arithmetical operations with integers

### CHAPTER 3 Numbers and Numeral Systems

CHAPTER 3 Numbers and Numeral Systems Numbers play an important role in almost all areas of mathematics, not least in calculus. Virtually all calculus books contain a thorough description of the natural,

### LESSON 1 PRIME NUMBERS AND FACTORISATION

LESSON 1 PRIME NUMBERS AND FACTORISATION 1.1 FACTORS: The natural numbers are the numbers 1,, 3, 4,. The integers are the naturals numbers together with 0 and the negative integers. That is the integers

### Finite Sets. Theorem 5.1. Two non-empty finite sets have the same cardinality if and only if they are equivalent.

MATH 337 Cardinality Dr. Neal, WKU We now shall prove that the rational numbers are a countable set while R is uncountable. This result shows that there are two different magnitudes of infinity. But we

### Math 55: Discrete Mathematics

Math 55: Discrete Mathematics UC Berkeley, Fall 2011 Homework # 5, due Wednesday, February 22 5.1.4 Let P (n) be the statement that 1 3 + 2 3 + + n 3 = (n(n + 1)/2) 2 for the positive integer n. a) What

### Math 3000 Running Glossary

Math 3000 Running Glossary Last Updated on: July 15, 2014 The definition of items marked with a must be known precisely. Chapter 1: 1. A set: A collection of objects called elements. 2. The empty set (

### 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

### So let us begin our quest to find the holy grail of real analysis.

1 Section 5.2 The Complete Ordered Field: Purpose of Section We present an axiomatic description of the real numbers as a complete ordered field. The axioms which describe the arithmetic of the real numbers

### Applications of Methods of Proof

CHAPTER 4 Applications of Methods of Proof 1. Set Operations 1.1. Set Operations. The set-theoretic operations, intersection, union, and complementation, defined in Chapter 1.1 Introduction to Sets are

### CONTENTS 1. Peter Kahn. Spring 2007

CONTENTS 1 MATH 304: CONSTRUCTING THE REAL NUMBERS Peter Kahn Spring 2007 Contents 2 The Integers 1 2.1 The basic construction.......................... 1 2.2 Adding integers..............................

### 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

### 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.

### Problem Set 5. AABB = 11k = (10 + 1)k = (10 + 1)XY Z = XY Z0 + XY Z XYZ0 + XYZ AABB

Problem Set 5 1. (a) Four-digit number S = aabb is a square. Find it; (hint: 11 is a factor of S) (b) If n is a sum of two square, so is 2n. (Frank) Solution: (a) Since (A + B) (A + B) = 0, and 11 0, 11

### Fractions and Decimals

Fractions and Decimals Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles December 1, 2005 1 Introduction If you divide 1 by 81, you will find that 1/81 =.012345679012345679... The first

### 1. LINEAR EQUATIONS. A linear equation in n unknowns x 1, x 2,, x n is an equation of the form

1. LINEAR EQUATIONS A linear equation in n unknowns x 1, x 2,, x n is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b, where a 1, a 2,..., a n, b are given real numbers. For example, with x and

### 3 Some Integer Functions

3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple

### Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

CHAPTER Number Theory FIGURE FIGURE FIGURE Plus hours Plus hours Plus hours + = + = + = FIGURE. Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter described a mathematical

### 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

### ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

### a = bq + r where 0 r < b.

Lecture 5: Euclid s algorithm Introduction The fundamental arithmetic operations are addition, subtraction, multiplication and division. But there is a fifth operation which I would argue is just as fundamental

### Introduction to Diophantine Equations

Introduction to Diophantine Equations Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles September, 2006 Abstract In this article we will only touch on a few tiny parts of the field

### COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

### 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

### Basic Properties of Rings

Basic Properties of Rings A ring is an algebraic structure with an addition operation and a multiplication operation. These operations are required to satisfy many (but not all!) familiar properties. Some

### Properties of Real Numbers

16 Chapter P Prerequisites P.2 Properties of Real Numbers What you should learn: Identify and use the basic properties of real numbers Develop and use additional properties of real numbers Why you should

### POWER SETS AND RELATIONS

POWER SETS AND RELATIONS L. MARIZZA A. BAILEY 1. The Power Set Now that we have defined sets as best we can, we can consider a sets of sets. If we were to assume nothing, except the existence of the empty

### 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

### a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

### 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

### Induction. Margaret M. Fleck. 10 October These notes cover mathematical induction and recursive definition

Induction Margaret M. Fleck 10 October 011 These notes cover mathematical induction and recursive definition 1 Introduction to induction At the start of the term, we saw the following formula for computing

### Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan 3 Binary Operations We are used to addition and multiplication of real numbers. These operations combine two real numbers

### 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

### A set is a Many that allows itself to be thought of as a One. (Georg Cantor)

Chapter 4 Set Theory A set is a Many that allows itself to be thought of as a One. (Georg Cantor) In the previous chapters, we have often encountered sets, for example, prime numbers form a set, domains

### Stupid Divisibility Tricks

Stupid Divisibility Tricks 101 Ways to Stupefy Your Friends Appeared in Math Horizons November, 2006 Marc Renault Shippensburg University Mathematics Department 1871 Old Main Road Shippensburg, PA 17013

### vertex, 369 disjoint pairwise, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

Index absolute value, 135 141 additive identity, 254 additive inverse, 254 aleph, 466 algebra of sets, 245, 278 antisymmetric relation, 387 arcsine function, 349 arithmetic sequence, 208 arrow diagram,

### This section demonstrates some different techniques of proving some general statements.

Section 4. Number Theory 4.. Introduction This section demonstrates some different techniques of proving some general statements. Examples: Prove that the sum of any two odd numbers is even. Firstly you

### We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: 9081 + 900b + 90c = 9001 + 100c + 10b

In this session, we ll learn how to solve problems related to place value. This is one of the fundamental concepts in arithmetic, something every elementary and middle school mathematics teacher should

### Section P.9 Notes Page 1 P.9 Linear Inequalities and Absolute Value Inequalities

Section P.9 Notes Page P.9 Linear Inequalities and Absolute Value Inequalities Sometimes the answer to certain math problems is not just a single answer. Sometimes a range of answers might be the answer.

### Continued Fractions. Darren C. Collins

Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history

### Computer Algebra for Computer Engineers

p.1/14 Computer Algebra for Computer Engineers Preliminaries Priyank Kalla Department of Electrical and Computer Engineering University of Utah, Salt Lake City p.2/14 Notation R: Real Numbers Q: Fractions

### 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

### 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

### 1.6 The Order of Operations

1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative

### 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

### 26 Ideals and Quotient Rings

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan 26 Ideals and Quotient Rings In this section we develop some theory of rings that parallels the theory of groups discussed

### 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.

### 3 0 + 4 + 3 1 + 1 + 3 9 + 6 + 3 0 + 1 + 3 0 + 1 + 3 2 mod 10 = 4 + 3 + 1 + 27 + 6 + 1 + 1 + 6 mod 10 = 49 mod 10 = 9.

SOLUTIONS TO HOMEWORK 2 - MATH 170, SUMMER SESSION I (2012) (1) (Exercise 11, Page 107) Which of the following is the correct UPC for Progresso minestrone soup? Show why the other numbers are not valid

### Groups, Rings, and Fields. I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, S S = {(x, y) x, y S}.

Groups, Rings, and Fields I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, A binary operation φ is a function, S S = {(x, y) x, y S}. φ : S S S. A binary

### Let s just do some examples to get the feel of congruence arithmetic.

Basic Congruence Arithmetic Let s just do some examples to get the feel of congruence arithmetic. Arithmetic Mod 7 Just write the multiplication table. 0 1 2 3 4 5 6 0 0 0 0 0 0 0 0 1 0 1 2 3 4 5 6 2 0

### Math 4310 Handout - Quotient Vector Spaces

Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable

### 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

### Induction Problems. Tom Davis November 7, 2005

Induction Problems Tom Davis tomrdavis@earthlin.net http://www.geometer.org/mathcircles November 7, 2005 All of the following problems should be proved by mathematical induction. The problems are not necessarily

### 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

### A Curious Case of a Continued Fraction

A Curious Case of a Continued Fraction Abigail Faron Advisor: Dr. David Garth May 30, 204 Introduction The primary purpose of this paper is to combine the studies of continued fractions, the Fibonacci

### Reading 13 : Finite State Automata and Regular Expressions

CS/Math 24: Introduction to Discrete Mathematics Fall 25 Reading 3 : Finite State Automata and Regular Expressions Instructors: Beck Hasti, Gautam Prakriya In this reading we study a mathematical model

### There are 8000 registered voters in Brownsville, and 3 8. of these voters live in

Politics and the political process affect everyone in some way. In local, state or national elections, registered voters make decisions about who will represent them and make choices about various ballot

### 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

### 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

### 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

### Number Sense and Operations

Number Sense and Operations representing as they: 6.N.1 6.N.2 6.N.3 6.N.4 6.N.5 6.N.6 6.N.7 6.N.8 6.N.9 6.N.10 6.N.11 6.N.12 6.N.13. 6.N.14 6.N.15 Demonstrate an understanding of positive integer exponents

### Introduction to mathematical arguments

Introduction to mathematical arguments (background handout for courses requiring proofs) by Michael Hutchings A mathematical proof is an argument which convinces other people that something is true. Math

### CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS

CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS JEREMY BOOHER Continued fractions usually get short-changed at PROMYS, but they are interesting in their own right and useful in other areas

### Algebra I Notes Review Real Numbers and Closure Unit 00a

Big Idea(s): Operations on sets of numbers are performed according to properties or rules. An operation works to change numbers. There are six operations in arithmetic that "work on" numbers: addition,