Greatest Common Divisor



Similar documents
The Euclidean Algorithm

Grade 7/8 Math Circles Fall 2012 Factors and Primes

8 Primes and Modular Arithmetic

Today s Topics. Primes & Greatest Common Divisors

Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II

MATH 13150: Freshman Seminar Unit 10

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

Session 6 Number Theory

Section 4.2: The Division Algorithm and Greatest Common Divisors

Test1. Due Friday, March 13, 2015.

8 Divisibility and prime numbers

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

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

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

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

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Homework until Test #2

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

of Nebraska - Lincoln

Greatest Common Factor and Least Common Multiple

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

FACTORING OUT COMMON FACTORS

SOLUTIONS FOR PROBLEM SET 2

s = s = s =

Lesson 3.1 Factors and Multiples of Whole Numbers Exercises (pages )

Cubes and Cube Roots

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

Elementary Number Theory

Introduction to Programming (in C++) Loops. Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC

Example. Introduction to Programming (in C++) Loops. The while statement. Write the numbers 1 N. Assume the following specification:

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

CS 103X: Discrete Structures Homework Assignment 3 Solutions

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

Numerical integration of a function known only through data points

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

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

Prime Factorization 0.1. Overcoming Math Anxiety

MATH 289 PROBLEM SET 4: NUMBER THEORY

17 Greatest Common Factors and Least Common Multiples

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

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

11 Ideals Revisiting Z

z 0 and y even had the form

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

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

Math Workshop October 2010 Fractions and Repeating Decimals

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

Handout NUMBER THEORY

SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT

Prime Time: Homework Examples from ACE

RSA and Primality Testing

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

POLYNOMIAL FUNCTIONS

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Some practice problems for midterm 2

Math 10 - Unit 3 Final Review - Numbers

Lecture 3: Finding integer solutions to systems of linear equations

Number of Divisors. Terms. Factors, prime factorization, exponents, Materials. Transparencies Activity Sheets Calculators

RSA Question 2. Bob thinks that p and q are primes but p isn t. Then, Bob thinks Φ Bob :=(p-1)(q-1) = φ(n). Is this true?

4. How many integers between 2004 and 4002 are perfect squares?

Factoring Whole Numbers

GREATEST COMMON DIVISOR

Permutation Groups. Tom Davis April 2, 2003

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

SPECIAL PRODUCTS AND FACTORS

The Chinese Remainder Theorem

6706_PM10SB_C4_CO_pp qxd 5/8/09 9:53 AM Page NEL

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples

Stupid Divisibility Tricks

Chapter 11 Number Theory

An Introduction to Number Theory Prime Numbers and Their Applications.

Just the Factors, Ma am

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

DIVISIBILITY AND GREATEST COMMON DIVISORS

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

V Quantitative Reasoning: Computers, Number Theory and Cryptography

5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8

Computer and Network Security

Vieta s Formulas and the Identity Theorem

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

CONTENTS 1. Peter Kahn. Spring 2007

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

The GED math test gives you a page of math formulas that

Applications of Fermat s Little Theorem and Congruences

SUM OF TWO SQUARES JAHNAVI BHASKAR

5.1 FACTORING OUT COMMON FACTORS


SAT Math Facts & Formulas Review Quiz

Fibonacci Numbers and Greatest Common Divisors. The Finonacci numbers are the numbers in the sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

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

How do you compare numbers? On a number line, larger numbers are to the right and smaller numbers are to the left.

PROBLEM SET 6: POLYNOMIALS

FACTORS AND MULTIPLES Answer Key

Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA

MACM 101 Discrete Mathematics I

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

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

Grade 4 Unit 3: Multiplication and Division; Number Sentences and Algebra

Congruent Number Problem

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

Transcription:

Greatest Common Divisor Blake Thornton Much of this is due directly to Josh Zucker, Paul Zeitz and Harold Reiter. Divisibility 1. How can 48 be built from primes? In what sense is there only one way? How about 234? How can you organize your work to find the prime factors of numbers such as 2008? 2. What are all the divisors of 48? Of 120? Of 2008? How many different ways can you find to organize these answers? Can you tell how many divisors a number will have by looking at it prime factorization? 3. Make a list of the numbers, 1 through 30, and the number of divisors of that number. You may have heard of this called the tau function, τ(n), the number of divisors of n. What do you notice? In particular, look for differences when the number of divisors is even or odd. Also, look at the sums of divisors (sometimes denoted σ(n)). Also, compare the τ(n), τ(m) and τ(nm) for any n, m. Greatest Common Divisor The greatest common divisor of two numbers is the largest number that divides evenly into both. For example, the greatest common divisor of 10 and 15 is 5: gcd(10, 15) = 5 4. Compute some greatest common divisors. gcd(12, 8) = gcd(12, 4) = gcd(36, 84) = gcd(98, 120) = gcd(1232, 24) = gcd(2008, 98) = gcd(4862, 47320) = Explain how you know that you found the greatest common divisor. 1

Euclidean Algorithm (to find GCD) Suppose you want to find gcd(84, 66). First you divide and find the remainder: 84 = 66 1 + 18 Then, notice that gcd(84, 66) = gcd(66, 18). The point is that the gcd of two numbers is the same as the gcd of one of the numbers and the remainder (WHY?) Therefore, to find the gcd we just keep dividing making the problem simpler at each stage: and therefore gcd(84, 18) = 6. 84 = 66 1 + 18 66 = 18 3 + 12 18 = 12 1 + 6 12 = 6 2 5. Use the Euclidean Algorithm to find the greatest common divisor for the numbers in Problem 4. 6. Determine if the following statements are true or false: (a) If gcd(a, b) = 1 and gcd(a, c) = 1 then gcd(b, c) = 1. (b) If gcd(a, b) = 1 and gcd(a, c) = 1 then gcd(a, bc) = 1. (c) If gcd(a, b) = 2 and gcd(a, c) = 2 then gcd(b, c) = 2. (d) If τ(a) = n and τ(b) = m then τ(ab) = mn (see Problem 3). 7. Least Common Multiple. The least common multiple of two numbers is the smallest number that is a multiple of each. Make a chart of a bunch of numbers, their greatest common divisor and least common multiple. I ve started your chart for you. Write each of your numbers in its prime factorization (I have not done this for you). a b gcd(a, b) lcm(a, b) 2 3 4 6 12 14 10 15 2 4 7 21 2

(a) What is 12 18? How much is gcd(12, 18) times the least common multiple of 12 and 18? (b) Find a relationship between a, b, gcd(a, b), and lcm(a, b). (c) What is the smallest positive integer that is divisible by each of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10? 8. Pool Table: Imagine a pool table with pockets only in the corners (represent it in graph paper). Start with a ball at the bottom left corner, moving up at an angle of 45. The ball bounces off each side of the rectangle until finally it reaches one of the corners and goes in the pocket. For example, in a 5 10 (width 5, height 10), the ball moves as below: When the ball goes into a pocket, we will count that as a bounce on the top/bottom and the sides of the pool table. So, for the 5 10 table, the ball bounces on the sides 2 times (one real bounce and one bounce for going in the pocket) and on the top/bottom 2 times (one real bounce and one bounce for going in the pocket). (a) Draw the situation for a 6 10 table. How many times does the ball bounce on the top/bottom? How many times does the ball bounce on the sides? Which pocket does the ball land in? (b) Draw a table of various sizes and make a chart listing the dimensions of the table, how many times the ball bounces in total, how many of those bounces are on the left/right sides, how many of those bounces are on the top/bottom sides, and which pocket the ball lands in. Be sure to include at least the following table sizes (and add more tables too!): 3

(Width, Length) Side Bounces Top/Bottom Bounces Pocket (1, 3) (1, 4) (1, 6) (3, 5) (6, 10) (9, 15) (1, 12) (2, 12) (3, 12) (4, 12) (5, 12) (6, 12) (c) Think about greatest common divisor and your table. Why do some of the rows in your table give the same answers? (d) Predict the correct numbers for the table: (Width, Length) Side Bounces Top/Bottom Bounces Pocket (79, 103) (79, 102) (78, 102) Explain your prediction. Prove that you are right. (e) Can you construct a table for which the pool ball bounces on the sides exactly 4 times and on the tops and bottom exactly 8 times? How about bouncing an arbitrary number of times on the sides and an arbitrary number of times on the top/bottom? 4

9. Decanting Problem (Thanks to Harold Reiter). This is a liquid measuring problem that begins with two ungraduated decanters whose integer capacities a and b are given. The problem is to determine the smallest amount of liquid that can be measured and how such amount can be obtained, by a process of filling, pouring, and dumping. Specifically, there are three actions we can take: fill an empty decanter, dump out a full decanter, and pour from one decanter to the other until either the receiving decanter is full or the poured decanter is empty. (a) Let a = 3 and b = 5. See if you can get 1 unit of water. (b) Can you find other ways to get 1 unit using decanters of volume 2 and 3? (c) Next, suppose the decanters have capacities 5 units and 7 units. How can you make 1 unit of water now? (d) Find the smallest amount of liquid that you can get using decanters of size 15 and 99. Find a way to get this smallest amount. (e) Use the Euclidean Algorithm to find gcd(257, 341). Use your work to solve the decanting problem for decanters of size 257 and 341. (f) Use the Euclidean Algorithm to find gcd(102, 78). decanting problem for decanters. Use your work to solve the 10. Perfect Numbers. A number is perfect if it is equal to the sum of its proper divisors. The smallest perfect numbers are 6, 28 and 496. (a) Write down the prime factorizations of these perfect numbers. (b) Check that these numbers really are perfect. (c) Find a pattern of the perfect numbers. number. See if you can guess the next perfect (d) Prove that the only even perfect numbers are in this pattern (difficult). (e) Find an odd perfect number (this is a famous unsolved problem). 5