Copyright © Cengage Learning. All rights reserved.

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Discrete Math Methods of proof 1.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Copyright © Cengage Learning. All rights reserved.
Chapter 5 Number Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Chapter 18 To accompany Helping Children Learn Math Cdn Ed, Reys et al. ©2010 John Wiley & Sons Canada Ltd.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
Thinking Mathematically
CHAPTER 11 – NUMBER THEORY
OBJECTIVES 3.2 Factorizations Slide 1Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc. aFind the factors of a number. bGiven a number from 1 to.
Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Copyright © Cengage Learning. All rights reserved.
March 24, 2009 The road to success is dotted with many tempting parking places. ~Author Unknown.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Copyright © Cengage Learning. All rights reserved.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Chapter Number Theory 4 4 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
The Integers and Division
Chapter 5 Number Theory © 2008 Pearson Addison-Wesley. All rights reserved.
 2012 Pearson Education, Inc. Slide Chapter 5 Number Theory.
Section 5.1 Number Theory.
SECTION 5-3 Selected Topics from Number Theory Slide
Copyright © Cengage Learning. All rights reserved.
Slide 5-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Methods of Proof & Proof Strategies
Key Stone Problem… Key Stone Problem… next Set 22 © 2007 Herbert I. Gross.
BIRKDALE HIGH SCHOOL MATHEMATICS DEPARTMENT
Introduction to Proofs
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 Number Theory.
SECTION 5-1 Prime and Composite Numbers Slide
© T Madas. A prime number or simply a prime, is a number with exactly two factors. These two factors are always the number 1 and the prime number itself.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
Copyright © 2009 Pearson Education, Inc. Chapter 5 Section 1 - Slide 1 Chapter 1 Number Theory and the Real Number System.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Copyright © Cengage Learning. All rights reserved. 1 Whole Numbers.
Copyright © Cengage Learning. All rights reserved.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Numerical Relationships
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Prime and Composite Numbers Factors What is a prime number? Is this number prime?
 2012 Pearson Education, Inc. Slide Chapter 5 Number Theory.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
THE SIEVE OF ERATOSTHENES: Prime and Composite Numbers by Jan Harrison
Slide Copyright © 2009 Pearson Education, Inc. 5.1 Number Theory.
Activity 1-12 : Multiple-free sets
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Slide Copyright © 2009 Pearson Education, Inc. Slide Copyright © 2009 Pearson Education, Inc. Chapter 1 Number Theory and the Real Number System.
Section 5.1 Number Theory.
PowerPointmaths.com © 2004 all rights reserved
Factors and Multiples.
Copyright © 2016, 2013, and 2010, Pearson Education, Inc.
Section 5.1 Number Theory.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Section 5.1 Number Theory.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Copyright © Zeph Grunschlag,
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Presentation transcript:

Copyright © Cengage Learning. All rights reserved. CHAPTER 4 Number Theory Copyright © Cengage Learning. All rights reserved.

Prime and Composite Numbers SECTION 4.2 Prime and Composite Numbers Copyright © Cengage Learning. All rights reserved.

What Do You Think? Why is 1 neither a prime nor a composite number? How are prime numbers the building blocks for the set of natural numbers?

Prime and Composite Numbers Over the centuries, many famous mathematicians have been fascinated by prime numbers. The Greeks are believed to have discovered prime numbers and were also fascinated by them. The prime numbers are the building blocks of all natural numbers greater than 1. Children are often intrigued by prime numbers. Over the years, I have found that my strongest students are the ones who not only know facts and procedures but also have good number sense.

Prime and Composite Numbers One of the ways to develop this number sense in elementary children is through investigations that deal with prime numbers. A natural number is a prime number if it has exactly two factors: 1 and itself. A natural number that has more than two factors is called a composite number. The number 1 doesn’t fit into either of the sets above, and so we say that 1 is neither a prime number nor a composite number.

Determining Whether a Number Is Prime or Composite

Determining Whether a Number Is Prime or Composite A question that has fascinated both ancient and modern mathematicians concerns being able to determine whether a large number is a prime number or a composite number. We don’t need a large number for this question to be difficult. For example, is the number 103 prime or composite? Immediately, we can see that no even number will divide 103. However, without sophisticated techniques, in order to determine if 103 is prime, we must check to see whether it is divisible by each odd number up to 51.

Determining Whether a Number Is Prime or Composite Thus we would have to check 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, and 33. Do you see why we can stop at 33? There is a very elegant shortcut that saves us from having to test all these numbers. This shortcut was discovered over 2000 years ago.

Investigation A – The Sieve of Eratosthenes The sieve of Eratosthenes was developed by the Greek mathematician Eratosthenes, who lived about 230 B.C., as a tool for determining all prime numbers less than a given number. As usual, you will get far more from the following activity if you do it with pencil and paper rather than just reading it.

Investigation A – The Sieve of Eratosthenes cont’d In Table 4.2, cross out 1, which is neither composite nor prime. Circle 2, which is the first prime number. Now cross out all multiples of 2. Table 4.2

Investigation A – The Sieve of Eratosthenes cont’d Circle the next unmarked number (3), which must be prime, and cross out all multiples of 3. Did you make use of any patterns to help you cross out multiples of 3? Circle the next unmarked number (5), and then cross out all multiples of 5. Circle the next unmarked number (7) and stop. On the basis of the crossing out that you have already done, what do you predict will be the first multiple of 7 that you will have to cross out?

Investigation A – The Sieve of Eratosthenes cont’d You found that the first multiple of 7 that wasn’t already crossed out was 49—that is 7  7. The other multiples of 7 that you had to cross out were 7  11, 7  13, and 7  17. Now circle the next prime number (11), and stop. Before you cross out all multiples of 11, what do you predict will be the first multiple of 11 that you will have to cross out? You found that the first multiple of 11 that wasn’t already crossed out was 121—that is 11  11. Now circle all the numbers in the table up to 121 that have not yet been crossed out. What do you think these numbers have in common?

Investigation A – Discussion If your intuition said that these are all prime numbers, you are right. Can you explain why all these numbers must be prime numbers? For example, can you explain why 149, for example, cannot be a multiple of 7, 11, 13, 17, 19, or any other prime number less than 149? One way of demonstrating why all the remaining numbers must be prime involves indirect reasoning, which is a method of logic in which we prove that something is false by assuming that it is true and then showing that this assumption leads to a contradiction.

Investigation A – Discussion cont’d Let us assume that one of the circled numbers in the sieve, for example 149, is not prime. 149 is clearly not a multiple of 2, because it’s an odd number. 149 cannot be a multiple of 3, because it would have been crossed out with the multiples of 3. 149 cannot be a multiple of 5, because it would have been crossed out with the multiples of 5. 149 cannot be a multiple of 7, because it would have been crossed out with the multiples of 7.

Investigation A – Discussion cont’d 149 cannot be a multiple of 11, because it would have been crossed out with the multiples of 11. 149 cannot be a multiple of 13, because we know from our investigation with the sieve that the first possible multiple of 13 that hasn’t already been crossed out would be 13  13, which is 169. In similar fashion, we can show that 149 cannot be a multiple of any other number. This disproves the initial assumption that 149 was not prime. Therefore, it is impossible that 149 is a composite number, so it must be a prime number.

Investigation A – Discussion cont’d If we begin to cross out multiples of 13, we find that all the multiples of 13 from 1  13 to 12  13 have already been crossed out. Therefore, the first multiple of 13 that we needed to cross out is 13  13. But 13  13 is 169, which is greater than 149, and so we know that 13 cannot be a factor of 149. Similarly, all numbers greater than 13 (which must have squares that are greater than 169) cannot be factors of 149. We can turn this observation into a generalization: If the square of a number is greater than the number we are testing for, we can stop.

Determining Whether a Number Is Prime or Composite This very powerful generalization, in turn, can be stated as a rule: Test for determining whether a number n is prime: List all the prime numbers p that satisfy the equation P  or (p2  n). If none of those prime numbers divides n, then n is a prime number.

Prime Factorization

Prime Factorization One way to find all the factors of a number is to determine the prime factorization of that number—that is, to represent that number as the product of numbers, each of which is prime. The prime factorization of 96 is 2  2  2  2  2  3. Do you see how this representation can help us to determine all the factors of 96? We simply check to see whether our number can be constructed from the prime factorization. Clearly, 2 and 3 are factors of 96.

Prime Factorization 4 is a factor because 4 = 2  2. 5 is not a factor of 96 because 5 is not in this set. 6 is a factor because 6 = 2  3. 7 is not a factor of 96 because 7 is not in this set. 8 is a factor because 8 = 2  2  2. 9 is not a factor of 96 because 3  3 is not in this set. 10 is not a factor of 96 because 2  5 is not in this set. 11 is not a factor of 96 because 11 is not in this set. 12 is a factor because 12 = 2  2  3.

Prime Factorization Because 8  12 = 96, we don’t have to look any further. Do you see why? In this case, each factor up to 12 is part of a pair: 1  96, 2  48, 3  32, 4  24, 6  16, and 8  12. Thus the factors of 96 are 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, and 96. Determining the prime factorization of a number is not an easy task for many students, and there are many different methods.

Prime Factorization Tree diagrams and prime factorization One technique for determining the prime factorization of a number that appeals to many students is to use a tree diagram. The top of the tree is the original number. Each number is equal to the product of the two numbers immediately below it. Below are two tree diagrams that produce the prime factorization for 36—that is, 2  2  3  3.

Prime Factorization Division and prime factorization Other students prefer a technique that looks like long division that goes up instead of down. The division is done mentally. Some students like to do it “in order”; that is, they divide by 2 until they can do it no more and then go to bigger and bigger prime numbers. When they do this, their final answer is already in order from smallest to largest.

The Fundamental Theorem of Arithmetic

The Fundamental Theorem of Arithmetic If you compare the two tree diagrams above, you can see that we got the same prime factorization for 36 regardless of how we started. It turns out that this is true in all cases. This seemingly obvious statement actually has quite a formal name, the Fundamental Theorem of Arithmetic. It states that every natural number greater than 1 has one unique way of being represented as a product of its prime factors.

A Largest Prime Number?

A Largest Prime Number? There is no largest prime number. The first proof of this conjecture occurs in Euclid’s Elements. The proof uses indirect reasoning, in which we begin by assuming that there is a largest prime number, which we will call P. Let us now create a number X, in the following way: X = (2  3  4 ….P) + 1 We have assumed that P is the largest prime number, so X must be a composite number; that is, it must have at least one factor other than 1 and itself.

A Largest Prime Number? Let F represent the smallest prime factor of X. Because F is a prime number and P is the largest prime number, F must be a prime number less than P; that is, it must be one of the numbers 2, 3, 4, . . . up to P. However, it cannot be one of these numbers. We constructed our number X in such a way that it is not divisible by 2, 3, 4, or any number up to P. That is equivalent to saying that 2 is not a factor of X, 3 is not a factor, and so forth.

A Largest Prime Number? Thus the smallest possible prime factor of X is greater than P, which is supposed to be the largest prime number. This contradiction shows that the assumption that there is a largest prime number cannot be true.

Investigation B – Numbers with Personalities: Perfect and Other Numbers A. A number n is a perfect number iff the sum of its proper divisors is equal to n. A proper divisor of a number is a divisor that is less than the number. Discussion: Six is the first perfect number because 1, 2, and 3 are the proper divisors of 6 and their sum is 6.

Investigation B – Numbers with Personalities: Perfect and Other Numbers cont’d B. Perfect numbers lead to two other kinds of numbers, which are called abundant and deficient. A number n is an abundant number iff the sum of its proper divisors is greater than n. A number n is a deficient number iff the sum of its proper divisors is less than n. Discussion: All prime numbers are deficient by definition. Because the only proper factor of a prime number is 1, the sum of the proper factors of a prime number is 1.

Investigation B – Discussion cont’d Of the nonprime numbers less than 30, the deficient numbers are 4, 8, 9, 10, 14, 15, 16, 21, 22, 25, 26, 27. Notice that the subset of the square numbers in the above set {4, 9, 16, 25} has only deficient numbers, although some square numbers are abundant. Also, except for 6, any doubles of members of the set of prime numbers less than 30 {2, 3, 5, 7, 11, 13, 17, 19, 23, 29} will also be deficient. The following numbers are abundant: 12, 18, 20, 24, and 30.

Investigation B – Discussion cont’d One pattern that students often observe that leads to a hypothesis is that all of these numbers are even. We overlooked 28 in our lists of deficient and abundant numbers. 28 is the second perfect number!