BASIC CONCEPTS ON NUMBER THEORY

Size: px
Start display at page:

Download "BASIC CONCEPTS ON NUMBER THEORY"

Transcription

1 BASIC CONCEPTS ON NUMBER THEORY This is a brief introduction to number theory. The concepts to cover will enable us to answer questions like: How many integers between 50 and 150 are divisible by 4? How many ending zeroes does 75! have? Which integers have 3 as remainder when divided by 10? What is the least common multiple between 140 and 250? MULTIPLES Let a and b be integers. If a = bk, for some integer k (unique!), we say that a is a multiple of b or b divides a or b is a divisor of a or b is a factor of a. This is denoted it as b a (Do not confuse this notation with b/a which means that b is divided by a). For example, 8 is a multiple of 4 or 4 is a divisor of 8 or 4 divides 8, because 8 = 4 x 2. Hence, we can use the notation 4 8. However, 8 is not a multiple of 5, since 8 5k for any integer k. We can form a set with the multiples of a number. For instance, the set of multiples of 4 is the set {x x = 4k, k Z} = {x x = 4k, k= 0, ± 1, ± 2, ± 3, ± 4,...}= {0, 4, -4, 8, -8, 12, -12, 16, -16,...} That is, as k takes values over all the integer numbers the multiples of 4 are obtained. Observe that zero is a multiple of any number (why?). However, zero does not divide any number (why?). On the other hand, 1 is a divisor of any number (why?). But 1 is not a multiple of any number. REMARK: The set of multiples of 2 is called the set of even numbers. Even Numbers ={,-4,-2, 0, 2, 4, } ={x x=2k, k Z } The set of odd numbers is obtained by adding (or subtracting) 1 to each even number. Odd Numbers = {, -5, -3, -1, 1, 3, 5, } = { x x = 2k+1, k Z } ={ x x = 2k-1, k Z } Discrete Math. Number Theory. Revised 9/98 Page1

2 PRIME NUMBER A positive number greater than 1 is a prime number if it has exactly two positive divisors, 1 and the number itself. A number greater than 1 that is not a prime number is called a composite number. 2, 3, 5 are prime numbers, but 4, 6, 12, 100 are composite numbers. FUNDAMENTAL THEOREM OF ARITHMETIC Every integer greater than 1 is a prime number or it can be written as a product of powers of prime factors. This decomposition is unique except for the order of the factors. EXERCISE 1 10=2*5 8= = is a prime number 1. Choose and even number of even number and add them up. Is the answer even or odd? 2. Do you obtain the same result if you add an odd number of even number? 3. Choose and even number of odd numbers and add them up. Is the answer even or odd? 4. Do you obtain the same answer if you add an odd number of odd number? 5. Generalize your findings from the previous problems (1-4). Show that your results hold in general. 6. Consider the following statements. When the statement is true, show it always holds. Otherwise, give an example to show it is not true. a) A multiple of 6, is a multiple of 3. b) If a number is a multiple of 2 and 5, it is a multiple of 10. c) Any multiple of 4 and 6 is a multiple of 24. d) Any multiple of 12 is a multiple of 6 and Find the prime factorization of Find the prime factorization of 10! (Recall that 10!=10*9*8*...*2*1) 9. How many ending zeroes does 25! have? For example, 750 has one ending zero, has three ending zeroes. LEAST COMMON MULTIPLE Consider the set of positive integer multiples of 4 and the set of positive integer multiples of 6. Call these sets E and F respectively. They are: E = {0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48,...} F = { 0, 6, 12, 18, 24, 30, 36, 42, 48,...} The set of common positive integral multiples of 4 and 6 is the intersection of E and F. E F = {12, 24, 36,...} Notice that this set is formed by the positive integral multiples of 12. The least element in this collection is the least common multiple between 4 and 6, and any other common multiple of them is a multiple of 12. We generalize this concept next. Discrete Math. Number Theory. Revised 9/98 Page 2

3 Let a and b be positive integers. The positive number c is called the least common multiple between a and b, denoted [a, b] or l.c.m.(a, b), if: a) a c and b c (c is a multiple of a and b) b) If a k and b k for a positive integer k then c k. (any common multiple of a and b is a multiple of c) In other words, the minimum common multiple is the smallest positive integers which is a common multiple between a and b. There is a way to find the least common multiple of two integers by using the prime number decomposition of them. The algorithm to do it is illustrated for the numbers 4 and 6: Find the prime number decomposition of 4 and 6 4 = 2 2 and 6 = Rewrite those products in such a way that the same prime numbers appear in each of the products: 4 = = Use the largest exponent of each of the prime numbers participating as factors in at least one to the products, to generate the least common multiple l.c.m.( 4, 6 ) = 2 MAX {2, 1} MAX { 0, 1} 3 = Thus, the least common multiple of 4 and 6 is = 12. EXERCISE 2 1. Calculate l.c.m. ( 50, 72) 2. In this case you want to analyze what happens with the lcm between two number when is a multiple of the other. a. What is the relationship between the set of multiples of 4 and the set of multiples of 8? b. What can you say about the l.c.m.(4, 8)? c. Do the answers to (a) and (b) work for any two integers whenever one number is a multiple of the other? Explain. GREATEST COMMON DIVISOR Now, we want to find the common divisors of 30 and 12. Let s start by considering the positive divisors of 30 and the positive divisors of 12. Call these sets M and N. M = {1, 2, 3, 5, 6, 10, 15, 30} N= {1, 2, 3, 4, 6, 12} Discrete Math. Number Theory. Revised 1/99 Page 3

4 The common divisors are M N = {2, 3, 6}. The greatest value of this set is 6 which is called the greatest common divisor. Two things to observe: 6 is a divisor of 12 and 30 any other common divisor of 12 and 30 divides 6. These observations lead to the formal definition that follows: Let a and b be positive integers. The positive integer c is the greatest common divisor between a and b, denoted g.c.d.(a, b) or (a, b), if: a) c a and c b (a and b are multiples of c) b) If k a and k b then k c. (Any divisor of a and b divides c as well.) In other words, the greatest common divisor it is the greatest positive integral number that divides a and b. As with the l.c.m. there is an algorithm to find the g.c.d. of two numbers. Let s follow the algorithm to find g.c.d (12, 30): Find the prime number decomposition of each number 12 = = Rewrite each of the products in such a way that the same factors participate in each of them 12 = = Produce a number with all the prime factors participating in the products but selecting the smallest exponent between two powers of the same prime number. g.c.d.( 12, 30) = 2 Min {2, 1} 3 Min {1, 1} Min {0,1} 5 = = 6 When the greatest common divisor between two numbers is 1, the numbers are called relatively prime. For example, 4 and 5, 10 and 21, are pairs of relatively prime numbers. But 8 and 14 are not. There is a way to relate the product of two positive integer numbers with their l.c.m and g.c.d. This is given by: For any two positive integers a and b, a b = [a, b] (a, b) EXERCISE 3 1. Give three pairs of numbers, which are not relative primes. Verify the previous result for each pair of numbers. 2. Give a pair of relatively prime numbers. Verify the previous result for each pair. 3. Using the particular cases in parts (1) and (2), justify why the result, to express the product of two integers as the product of their l.c.m. and their g.c.d. follows. (Hint: Consider the algorithms to calculate the l.c.m. and g.c.d.) Discrete Math. Number Theory. Revised 9/98 Page 4

5 4. Use the concept of least common multiple to verify each of the claims below. Explain your answers: a. Any multiple of 2 and 5 is a multiple of 10. b. Any multiple of 4 and 6 is a multiple of We know that 12 is a multiple of 4. What can you say about the g.c.d.(4, 12)? 6. What condition must satisfy the integers a and b to be able to guarantee that any multiple of a and b is also a multiple of ab? Give some examples to see what happens. THE DIVISION ALGORITHM Let s consider the multiples of 7 on a number line. 7 (-2) 7 (-1) 7 (0) 7 (1) 7 (2) 7 (3) Take any two consecutive multiples of 7, say 7 2 and 7 3. The numbers between them, including the first one but not the second, can be written as , , , , , , Hence, any integer that we take is a multiple of seven or between two consecutive multiples of seven. Therefore, it can be written as 7q + r, where r = 0, 1, 2, 3, 4, 5, 6 For example the number 82 can be written as , and the number -22 can be written as -22 = 7 (-4) + 6. Notice that q is selected so that 7q is the largest multiple of 7 less than or equal to the given number. It guarantees that r is always non-negative number less than or equal to 6. The generalization of this result is THE DIVISION ALGORITHM: Let a be an integer and d a positive integer. There are unique integers q and r such that a = dq + r, 0 r d - 1 In this equality a is called the dividend, q is the quotient and r the remainder. REMARK Using the division algorithm, we can characterize the even numbers as those integers with remainder zero when divided by two, and the odd numbers as those numbers with remainder one when divided by two. Discrete Math. Number Theory. Revised 1/99 Page 5

6 EXERCISE 4 1. Find the quotient and remainder of each of the following numbers when they are divided by 11: 0, -44, Below each of the given sets of 8 consecutive integer numbers write the remainder when they are divided by 3. After that, determine how many numbers in each set are multiples of 3. It is nice to observe the strings formed by the remainders. Is there any pattern? 2, 3, 4, 5, 6, 7, 8, 9 13, 14, 15, 16, 17, 18, 19, 20-18, -17, -16, -15, -14, -13, -12, Every time you have three consecutive integers there is exactly one which is multiple of 3. Why? 4. In a set of n consecutive integer how many are multiples of n? Explain 5. If you have eight consecutive integers, what conjecture can you make with respect to how many of them are multiples of 3? Explain. 6. Consider the integer numbers x such that 100 x < 200 a. How many are divisible by 4? b. How many are divisible by 6? c. How many are divisible by [4, 6]? MODULAR ARITHMETIC It is 12 noon right now. We want to determine which number the hour handle will be point to after 7 hours? 19 hours? 40 hours? 64 hours? It is not a coincidence that after 7 and 19 hours it is pointing to the same number. Likewise after 40 and 64 hours it points to the same number. Observe that 19-7 and are multiples of 12 (The hour hand is at the same place every twelve hours). We say that 7 and 19 are congruent module 12 and that 64 and 40 are congruent module 12 because their differences are multiples of 12. This is a formal definition: Let a and b be integers and m a positive integer. We say that a and b are congruent modulo m, or a mod m is b if a-b is a multiple of m. Observe that if a-b is a multiple of m then b-a is a multiple of m as well. That is if a mod m is b then b mod m is a. EXERCISE 5 1. Which of the following integers is (are) congruent to 6 modulo 18? Justify your answer Fill in the blank with the least non-negative integer number Discrete Math. Number Theory. Revised 9/98 Page 6

7 12 mod 5 is 80 mod 2 is -27 mod 8 is 3. Find three positive numbers and three negative numbers congruent to 8 modulo 13. OBSERVATION We started the discussion about congruence by noting that 19 was 7 modulo 6 because their difference was a multiple of 6. Observe that 19 and 7 have the same remainder when they are divided by 6, it is 1. This is another way of defining congruence: For any two integer a and b, if they have the same remainder when divided by a positive number m, they are said to be congruent modulo m, or simply that a is b modulo m. Since 29 and -7 have the same remainder when divided by 6, we have that 29 modulo 6 is 7. HOW TO CALCULATE MODULO USING THE CALCULATOR. You can use the calculator to find the value of a number modulo another number. For example, let s say we want to find 38,507modulo 6. To use the calculator divide 38, 507 by 6 and take the integer part of it. In this case it is 6,417. The number 38,507-6,417*6=5 is 38,507 modulo 6. EXERCISE 6 Verify all the results from exercise 5 using the latest definition of congruence modulo m. APPLICATIONS HASHING FUNCTIONS You are responsible for storing and processing the customer records for a large company. Each customer has an identification number (SSN). This number is called its key. The idea is to create linked lists with the same number (if possible) of linked records. Suppose the company has approximately 20,000 customers and the company s computer is capable of searching a list of 100 items in an acceptable amount of time. If the numbers assigned to the customers are evenly distributed (that will rarely happened!), there will be 200 lists with 100 entries each one. Let s create 201 lists by assigning values to each customer from the {0, 1,, 200}. These are the remainders when a number is divided by 201. Therefore to each key will be assigned the least non-negative number modulo 201. For instance, the customer with key will be assigned the number mod 201 which is 129. It means that this record will be assigned to the list 129. Discrete Math. Number Theory. Revised 1/99 Page 7

8 However, there may be customers, which are assigned to the same list. For example the customer with key will be assigned to the same list. We say that a collision has occurred. In this case one thing that can be done is to insert the new record at the end of the existing list. There are other methods to make this assignment, but it is the simplest one. Discrete Math. Number Theory. Revised 9/98 Page 8

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

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

More information

The Euclidean Algorithm

The Euclidean Algorithm The Euclidean Algorithm A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS To be successful using this method you have got to know how to divide. If this is something that you have

More information

Math 319 Problem Set #3 Solution 21 February 2002

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

More information

Today s Topics. Primes & Greatest Common Divisors

Today s Topics. Primes & Greatest Common Divisors Today s Topics Primes & Greatest Common Divisors Prime representations Important theorems about primality Greatest Common Divisors Least Common Multiples Euclid s algorithm Once and for all, what are prime

More information

8 Primes and Modular Arithmetic

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.

More information

Chapter 3. if 2 a i then location: = i. Page 40

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)

More information

Homework until Test #2

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

More information

8 Divisibility and prime numbers

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

More information

26 Integers: Multiplication, Division, and Order

26 Integers: Multiplication, Division, and Order 26 Integers: Multiplication, Division, and Order Integer multiplication and division are extensions of whole number multiplication and division. In multiplying and dividing integers, the one new issue

More information

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

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

More information

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Lights, Camera, Primes! Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions Today, we re going

More information

MATH 13150: Freshman Seminar Unit 10

MATH 13150: Freshman Seminar Unit 10 MATH 13150: Freshman Seminar Unit 10 1. Relatively prime numbers and Euler s function In this chapter, we are going to discuss when two numbers are relatively prime, and learn how to count the numbers

More information

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

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

More information

FACTORS AND MULTIPLES Answer Key

FACTORS AND MULTIPLES Answer Key I. Find prime factors by factor tree method FACTORS AND MULTIPLES Answer Key a. 768 2 384 2 192 2 96 2 48 2 24 2 12 2 6 2 3 768 = 2*2*2*2*2*2*2*2 *3 b. 1608 3 536 2 268 2 134 2 67 1608 = 3*2*2*2*67 c.

More information

Math Workshop October 2010 Fractions and Repeating Decimals

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,

More information

Chapter 11 Number Theory

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

More information

17 Greatest Common Factors and Least Common Multiples

17 Greatest Common Factors and Least Common Multiples 17 Greatest Common Factors and Least Common Multiples Consider the following concrete problem: An architect is designing an elegant display room for art museum. One wall is to be covered with large square

More information

Grade 7/8 Math Circles Fall 2012 Factors and Primes

Grade 7/8 Math Circles Fall 2012 Factors and Primes 1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Fall 2012 Factors and Primes Factors Definition: A factor of a number is a whole

More information

Stupid Divisibility Tricks

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

More information

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

More information

Prime Factorization 0.1. Overcoming Math Anxiety

Prime Factorization 0.1. Overcoming Math Anxiety 0.1 Prime Factorization 0.1 OBJECTIVES 1. Find the factors of a natural number 2. Determine whether a number is prime, composite, or neither 3. Find the prime factorization for a number 4. Find the GCF

More information

Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the

Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the Tallahassee Community College 13 PRIME NUMBERS AND FACTORING (Use your math book with this lab) I. Divisors and Factors of a Number Previously, you learned the names of the parts of a multiplication problem.

More information

Section 4.2: The Division Algorithm and Greatest Common Divisors

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

More information

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

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

More information

Multiplying and Dividing Fractions

Multiplying and Dividing Fractions Multiplying and Dividing Fractions 1 Overview Fractions and Mixed Numbers Factors and Prime Factorization Simplest Form of a Fraction Multiplying Fractions and Mixed Numbers Dividing Fractions and Mixed

More information

Factoring Whole Numbers

Factoring Whole Numbers 2.2 Factoring Whole Numbers 2.2 OBJECTIVES 1. Find the factors of a whole number 2. Find the prime factorization for any number 3. Find the greatest common factor (GCF) of two numbers 4. Find the GCF for

More information

Handout NUMBER THEORY

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

More information

Session 6 Number Theory

Session 6 Number Theory Key Terms in This Session Session 6 Number Theory Previously Introduced counting numbers factor factor tree prime number New in This Session composite number greatest common factor least common multiple

More information

CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association CISC - Curriculum & Instruction Steering Committee California County Superintendents Educational Services Association Primary Content Module IV The Winning EQUATION NUMBER SENSE: Factors of Whole Numbers

More information

Playing with Numbers

Playing with Numbers PLAYING WITH NUMBERS 249 Playing with Numbers CHAPTER 16 16.1 Introduction You have studied various types of numbers such as natural numbers, whole numbers, integers and rational numbers. You have also

More information

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

More information

SUM OF TWO SQUARES JAHNAVI BHASKAR

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

More information

Applications of Fermat s Little Theorem and Congruences

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

More information

Factorizations: Searching for Factor Strings

Factorizations: Searching for Factor Strings " 1 Factorizations: Searching for Factor Strings Some numbers can be written as the product of several different pairs of factors. For example, can be written as 1, 0,, 0, and. It is also possible to write

More information

Greatest Common Factor and Least Common Multiple

Greatest Common Factor and Least Common Multiple Greatest Common Factor and Least Common Multiple Intro In order to understand the concepts of Greatest Common Factor (GCF) and Least Common Multiple (LCM), we need to define two key terms: Multiple: Multiples

More information

15 Prime and Composite Numbers

15 Prime and Composite Numbers 15 Prime and Composite Numbers Divides, Divisors, Factors, Multiples In section 13, we considered the division algorithm: If a and b are whole numbers with b 0 then there exist unique numbers q and r such

More information

The last three chapters introduced three major proof techniques: direct,

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

More information

Chapter 7 - Roots, Radicals, and Complex Numbers

Chapter 7 - Roots, Radicals, and Complex Numbers Math 233 - Spring 2009 Chapter 7 - Roots, Radicals, and Complex Numbers 7.1 Roots and Radicals 7.1.1 Notation and Terminology In the expression x the is called the radical sign. The expression under the

More information

Lesson 4. Factors and Multiples. Objectives

Lesson 4. Factors and Multiples. Objectives Student Name: Date: Contact Person Name: Phone Number: Lesson 4 Factors and Multiples Objectives Understand what factors and multiples are Write a number as a product of its prime factors Find the greatest

More information

RSA and Primality Testing

RSA and Primality Testing and Primality Testing Joan Boyar, IMADA, University of Southern Denmark Studieretningsprojekter 2010 1 / 81 Correctness of cryptography cryptography Introduction to number theory Correctness of with 2

More information

k, then n = p2α 1 1 pα k

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

More information

CONTENTS. Please note:

CONTENTS. Please note: CONTENTS Introduction...iv. Number Systems... 2. Algebraic Expressions.... Factorising...24 4. Solving Linear Equations...8. Solving Quadratic Equations...0 6. Simultaneous Equations.... Long Division

More information

CS 103X: Discrete Structures Homework Assignment 3 Solutions

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

More information

6.2 Permutations continued

6.2 Permutations continued 6.2 Permutations continued Theorem A permutation on a finite set A is either a cycle or can be expressed as a product (composition of disjoint cycles. Proof is by (strong induction on the number, r, of

More information

3 Some Integer Functions

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

More information

Primes. Name Period Number Theory

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

More information

Lecture 13 - Basic Number Theory.

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

More information

V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography

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

More information

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

More information

5.1 Radical Notation and Rational Exponents

5.1 Radical Notation and Rational Exponents Section 5.1 Radical Notation and Rational Exponents 1 5.1 Radical Notation and Rational Exponents We now review how exponents can be used to describe not only powers (such as 5 2 and 2 3 ), but also roots

More information

Math Circle Beginners Group October 18, 2015

Math Circle Beginners Group October 18, 2015 Math Circle Beginners Group October 18, 2015 Warm-up problem 1. Let n be a (positive) integer. Prove that if n 2 is odd, then n is also odd. (Hint: Use a proof by contradiction.) Suppose that n 2 is odd

More information

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

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

More information

= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

= 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

More information

Session 29 Scientific Notation and Laws of Exponents. If you have ever taken a Chemistry class, you may have encountered the following numbers:

Session 29 Scientific Notation and Laws of Exponents. If you have ever taken a Chemistry class, you may have encountered the following numbers: Session 9 Scientific Notation and Laws of Exponents If you have ever taken a Chemistry class, you may have encountered the following numbers: There are approximately 60,4,79,00,000,000,000,000 molecules

More information

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

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

More information

Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures

Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it

More information

Elementary Number Theory

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,

More information

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014! GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!!! Challenge Problem 2 (Mastermind) due Fri. 9/26 Find a fourth guess whose scoring will allow you to determine the secret code (repetitions are

More information

PYTHAGOREAN TRIPLES KEITH CONRAD

PYTHAGOREAN TRIPLES KEITH CONRAD PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient

More information

MATH 289 PROBLEM SET 4: NUMBER THEORY

MATH 289 PROBLEM SET 4: NUMBER THEORY MATH 289 PROBLEM SET 4: NUMBER THEORY 1. The greatest common divisor If d and n are integers, then we say that d divides n if and only if there exists an integer q such that n = qd. Notice that if d divides

More information

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called

More information

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.

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

More information

Day One: Least Common Multiple

Day One: Least Common Multiple Grade Level/Course: 5 th /6 th Grade Math Lesson/Unit Plan Name: Using Prime Factors to find LCM and GCF. Rationale/Lesson Abstract: The objective of this two- part lesson is to give students a clear understanding

More information

11 Ideals. 11.1 Revisiting Z

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(

More information

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS Class Meetings: MW 2:00-3:15 pm in Physics 144, September 7 to December 14 [Thanksgiving break November 23 27; final exam December 21] Instructor:

More information

Category 3 Number Theory Meet #1, October, 2000

Category 3 Number Theory Meet #1, October, 2000 Category 3 Meet #1, October, 2000 1. For how many positive integral values of n will 168 n be a whole number? 2. What is the greatest integer that will always divide the product of four consecutive integers?

More information

Prime Factorization, Greatest Common Factor (GCF), and Least Common Multiple (LCM)

Prime Factorization, Greatest Common Factor (GCF), and Least Common Multiple (LCM) Prime Factorization, Greatest Common Factor (GCF), and Least Common Multiple (LCM) Definition of a Prime Number A prime number is a whole number greater than 1 AND can only be divided evenly by 1 and itself.

More information

Computing exponents modulo a number: Repeated squaring

Computing exponents modulo a number: Repeated squaring Computing exponents modulo a number: Repeated squaring How do you compute (1415) 13 mod 2537 = 2182 using just a calculator? Or how do you check that 2 340 mod 341 = 1? You can do this using the method

More information

Quotient Rings and Field Extensions

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.

More information

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION Aldrin W. Wanambisi 1* School of Pure and Applied Science, Mount Kenya University, P.O box 553-50100, Kakamega, Kenya. Shem Aywa 2 Department of Mathematics,

More information

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

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

More information

Settling a Question about Pythagorean Triples

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:

More information

Continued Fractions and the Euclidean Algorithm

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

More information

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

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,

More information

. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9

. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9 Introduction 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 integer We say d is a

More information

Test1. Due Friday, March 13, 2015.

Test1. Due Friday, March 13, 2015. 1 Abstract Algebra Professor M. Zuker Test1. Due Friday, March 13, 2015. 1. Euclidean algorithm and related. (a) Suppose that a and b are two positive integers and that gcd(a, b) = d. Find all solutions

More information

Section 4.1 Rules of Exponents

Section 4.1 Rules of Exponents Section 4.1 Rules of Exponents THE MEANING OF THE EXPONENT The exponent is an abbreviation for repeated multiplication. The repeated number is called a factor. x n means n factors of x. The exponent tells

More information

3.1. RATIONAL EXPRESSIONS

3.1. RATIONAL EXPRESSIONS 3.1. RATIONAL EXPRESSIONS RATIONAL NUMBERS In previous courses you have learned how to operate (do addition, subtraction, multiplication, and division) on rational numbers (fractions). Rational numbers

More information

On Generalized Fermat Numbers 3 2n +1

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

More information

Working with whole numbers

Working with whole numbers 1 CHAPTER 1 Working with whole numbers In this chapter you will revise earlier work on: addition and subtraction without a calculator multiplication and division without a calculator using positive and

More information

MATH10040 Chapter 2: Prime and relatively prime numbers

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

More information

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

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

More information

Grade 7 & 8 Math Circles October 19, 2011 Prime Numbers

Grade 7 & 8 Math Circles October 19, 2011 Prime Numbers 1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Grade 7 & 8 Math Circles October 19, 2011 Prime Numbers Factors Definition: A factor of a number is a whole

More information

Computer and Network Security

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

More information

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0 THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0 RICHARD J. MATHAR Abstract. We count solutions to the Ramanujan-Nagell equation 2 y +n = x 2 for fixed positive n. The computational

More information

A Study on the Necessary Conditions for Odd Perfect Numbers

A Study on the Necessary Conditions for Odd Perfect Numbers A Study on the Necessary Conditions for Odd Perfect Numbers Ben Stevens U63750064 Abstract A collection of all of the known necessary conditions for an odd perfect number to exist, along with brief descriptions

More information

MACM 101 Discrete Mathematics I

MACM 101 Discrete Mathematics I MACM 101 Discrete Mathematics I Exercises on Combinatorics, Probability, Languages and Integers. Due: Tuesday, November 2th (at the beginning of the class) Reminder: the work you submit must be your own.

More information

26 Ideals and Quotient Rings

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

More information

Number Theory: A Mathemythical Approach. Student Resources. Printed Version

Number Theory: A Mathemythical Approach. Student Resources. Printed Version Number Theory: A Mathemythical Approach Student Resources Printed Version ii Contents 1 Appendix 1 2 Hints to Problems 3 Chapter 1 Hints......................................... 3 Chapter 2 Hints.........................................

More information

Just the Factors, Ma am

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

More information

Not for resale. 4.1 Divisibility of Natural Numbers 4.2 Tests for Divisibility 4.3 Greatest Common Divisors and Least Common Multiples

Not for resale. 4.1 Divisibility of Natural Numbers 4.2 Tests for Divisibility 4.3 Greatest Common Divisors and Least Common Multiples CHAPTER 4 Number Theory 4.1 Divisibility of Natural Numbers 4.2 Tests for Divisibility 4.3 Greatest Common Divisors and Least Common Multiples 4.4 Codes and Credit Card Numbers: Connections to Number Theory

More information

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

More information

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

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

More information

DIVISIBILITY AND GREATEST COMMON DIVISORS

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

More information

Handout #1: Mathematical Reasoning

Handout #1: Mathematical Reasoning Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or

More information

Some practice problems for midterm 2

Some practice problems for midterm 2 Some practice problems for midterm 2 Kiumars Kaveh November 15, 2011 Problem: What is the remainder of 6 2000 when divided by 11? Solution: This is a long-winded way of asking for the value of 6 2000 mod

More information

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

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

More information

Binary Adders: Half Adders and Full Adders

Binary Adders: Half Adders and Full Adders Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order

More information

An Introduction to Number Theory Prime Numbers and Their Applications.

An Introduction to Number Theory Prime Numbers and Their Applications. East Tennessee State University Digital Commons @ East Tennessee State University Electronic Theses and Dissertations 8-2006 An Introduction to Number Theory Prime Numbers and Their Applications. Crystal

More information

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

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

More information