Long division for integers

Similar documents
not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

Chapter 3: Polynomial and Rational Functions

A number that can be written as, where p and q are integers and q Number.

EDULABZ INTERNATIONAL NUMBER SYSTEM

Question 1: Is zero a rational number? Can you write it in the form p, where p and q are integers and q 0?

Division Algorithm B1 Introduction to the Division Algorithm (Procedure) quotient remainder

Class IX Chapter 1 Number Sustems Maths

CHAPTER 1 REAL NUMBERS KEY POINTS

CHAPTER 1 NUMBER SYSTEMS. 1.1 Introduction

Cool Results on Primes

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Prepared by Sa diyya Hendrickson. Package Summary

Number Systems. Exercise 1.1. Question 1. Is zero a rational number? Can you write it in the form p q,

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

More Polynomial Equations Section 6.4

Chapter 3: Factors, Roots, and Powers

Divisibility of Natural Numbers

Unit Essential Questions. What are the different representations of exponents? Where do exponents fit into the real number system?

A group of figures, representing a number, is called a numeral. Numbers are divided into the following types.

Mathematical Induction

The Real Number System

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Math From Scratch Lesson 29: Decimal Representation

Number Theory and Graph Theory

MA094 Part 2 - Beginning Algebra Summary

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Part 2 - Beginning Algebra Summary

Fundamentals of Mathematics I

All About Numbers Definitions and Properties

Chapter 5. Number Theory. 5.1 Base b representations

Real Number. Euclid s division algorithm is based on the above lemma.

Math 016 Lessons Wimayra LUY

CHAPTER 1 NUMBER SYSTEMS. 1.1 Introduction

The Euclidean Algorithm and Multiplicative Inverses

1 The Real Number System

Downloaded from

SECTION 2.3: LONG AND SYNTHETIC POLYNOMIAL DIVISION

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Ch 4.2 Divisibility Properties

Standard forms for writing numbers

PGSS Discrete Math Solutions to Problem Set #4. Note: signifies the end of a problem, and signifies the end of a proof.

Day 6: 6.4 Solving Polynomial Equations Warm Up: Factor. 1. x 2-2x x 2-9x x 2 + 6x + 5

Numbers. 2.1 Integers. P(n) = n(n 4 5n 2 + 4) = n(n 2 1)(n 2 4) = (n 2)(n 1)n(n + 1)(n + 2); 120 =

1 Continued Fractions

CHAPTER 8: EXPLORING R

The Pigeonhole Principle

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

Dividing Polynomials: Remainder and Factor Theorems

2.2 Some Consequences of the Completeness Axiom

CSE 20: Discrete Mathematics

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

Math-2A Lesson 2-1. Number Systems

KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS

Math-2 Section 1-1. Number Systems

Item 8. Constructing the Square Area of Two Proving No Irrationals. 6 Total Pages

Decimal Addition: Remember to line up the decimals before adding. Bring the decimal straight down in your answer.

SEVENTH EDITION and EXPANDED SEVENTH EDITION

MA131 - Analysis 1. Workbook 6 Completeness II

Chapter 1 The Real Numbers

Class 7 Integers. Answer the questions. Choose correct answer(s) from the given choices. Fill in the blanks

Natural Numbers Positive Integers. Rational Numbers

Fundamentals of Mathematics (MATH 1510)

CHAPTER 3. Number Theory

Skills Practice Skills Practice for Lesson 4.1

Introduction Integers. Discrete Mathematics Andrei Bulatov

With Question/Answer Animations. Chapter 4

Grade 7/8 Math Circles. Continued Fractions

Proof worksheet solutions

6.4 Division of Polynomials. (Long Division and Synthetic Division)

Class IX Chapter 5 Introduction to Euclid's Geometry Maths

MATHEMATICS X l Let x = p q be a rational number, such l If p, q, r are any three positive integers, then, l that the prime factorisation of q is of t

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

ZEROS OF POLYNOMIAL FUNCTIONS ALL I HAVE TO KNOW ABOUT POLYNOMIAL FUNCTIONS

1. Revision Description Reflect and Review Teasers Answers Recall of Rational Numbers:

p-adic Analysis Compared to Real Lecture 1

K K.OA.2 1.OA.2 2.OA.1 3.OA.3 4.OA.3 5.NF.2 6.NS.1 7.NS.3 8.EE.8c

8 Primes and Modular Arithmetic

Rational Numbers. a) 5 is a rational number TRUE FALSE. is a rational number TRUE FALSE

Rising 7th Grade Math. Pre-Algebra Summer Review Packet

2. Approximate the real zero of f(x) = x3 + x + 1 to the nearest tenth. Answer: Substitute all the values into f(x) and find which is closest to zero

Mathematics Pacing. Instruction: 9/7/17 10/31/17 Assessment: 11/1/17 11/8/17. # STUDENT LEARNING OBJECTIVES NJSLS Resources

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

CONTENTS NUMBER SYSTEMS. Number Systems

Chapter 1: Fundamentals of Algebra Lecture notes Math 1010

3 The fundamentals: Algorithms, the integers, and matrices

Answers (1) A) 36 = - - = Now, we can divide the numbers as shown below. For example : 4 = 2, 2 4 = -2, -2-4 = -2, 2-4 = 2.

What is proof? Lesson 1

Bell Quiz 2-3. Determine the end behavior of the graph using limit notation. Find a function with the given zeros , 2. 5 pts possible.

8 th Grade Intensive Math

Math 109 HW 9 Solutions

The of the fraction ¾ is 3. a. numerator b. b. area c. c. addend d. d. denominator

Finding Prime Factors

MA 301 Test 4, Spring 2007

Fifth Grade Mathematics Mathematics Course Outline

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

One-to-one functions and onto functions

Transcription:

Feasting on Leftovers January 2011 Summary notes on decimal representation of rational numbers Long division for integers Contents 1. Terminology 2. Description of division algorithm for integers (optional reading) Decimals of rational numbers eventually repeat or terminate 3. Leftovers and leftover sequences 4. Decimal sequences 5. Theorem and Proof of the Day: Rational expansion theorem Long division for integers 1 Terminology When we divide integers by each other, we may use the terminology which is shorthand for the relationship More compactly, divisor ) quotient REM remainder dividend dividend = divisor quotient + remainder. b ) q REM r a means a = bq + r and 0 r < b. Here we are working with integer quotients. For example, 7 ) 2 REM 6 20 is shorthand for the relationship 20 = 7 2 + 6. Sometimes we may want to work with real quotients, in which case we use the terminology so that we can use the relationship divisor ) quotient dividend dividend = divisor quotient. For example, 7 ) 0.285714 2 is shorthand for the relationship 2 = 7 0.285714. 1

2 Description of the division algorithm for integers (optional reading) We will work with only positive integers. While the theorems still hold for negative dividends, it is enough to get the idea of the theorems and their proofs by working with positive dividends. Although we will not go through this section in class, I am including it here in case you are interested, and because the mathematics is beautiful. Theorem (Division Algorithm Theorem for Integers [Usiskin, Theorem 5.3, p. 206]). Given positive integers a, b where a b > 0, there exist unique integers q, r so that a = bq + r and 0 r < b. The number q is called the quotient, and the number r is called the remainder. Proof of the Division Algorithm Theorem for Integers. The proof comes in two parts. 1. Such q and r exist. Consider all multiples of b, and find the one that is closest to a without being larger than a. We claim that if we set this multiple to qb, and let r = a qb, then r must be less than b. To see this, by way of contradiction suppose that r b. Then (q + 1)b a, so we get the contradiction that qb wasn t the closest multiple. So r must be less than b. We have now shown that we can construct q and r so that a = qb + r and 0 r < b. r b 0 b 2b 3b 4b a 5b r... b 0 b qb a 2. Such q and r are unique. Let q 1, q 2, r 1, r 2 Z such that We show that this implies q 1 = q 2 and r 1 = r 2 : a = q 1 b + r 1, a = q 2 b + r 2, and 0 r 1, r 2 < b. a = q 1 b + r 1 a = q 2 b + r 2 = 0 = (q 1 q 2 )b + (r 1 r 2 ) This means that q 1 q 2 b = r 1 r 2. Because r 1 and r 2 are both less than b, we know that r 1 r 2 < b. So q 1 q 2 < 1. But q 1 and q 2 are integers, so the only way that this can happen is if q 1 = q 2. If q 1 = q 2, then 0 = 0 b + (r 1 r 2 ), implying r 1 = r 2. We have shown that q 1 = q 2 and r 1 = r 2 as desired. 2

Decimals of rationals eventually repeat or terminate Using long division, find the decimal expansions for: 2 7 4 13 Questions to think about: What do you think the decimal expansions are? How would you justify that your answer is correct? Before turning the page, circle the remainders after each step. Call these the leftover terms. What patterns do you see in the leftovers? Your observations motivate the technique we use in the theorem and proof of the day: Theorem (Rational Expansion Theorem). If r is a rational number, then the decimal expansion for r must either terminate or eventually be periodic. Before we get to the proof, we need to introduce some terminology to help us communicate our observations in a more precise way. 3

3 Describing Leftover Terms A leftover is the number that remains after each step of a long division problem, used to begin the next step. A critical property of leftovers is the following: 0 leftover < divisor. 3.1 Example In the division problem 7 ) 2, the gave us the leftover decimal digit L D 2 2 6 8 4 5 Each leftover L is less than 7. How exactly did we get D from L in each one of these instances?. 20 7 2 < 7 60 7 8 < 7 40 7 5 < 7 10L 7 D < 7 In each case, the decimal digit D is the largest multiple of 7 that is smaller than 10 times the leftover L for that step.. 3.2 Leftover and Decimal Observation aka Predestination of Leftovers Observation (Leftover and Decimal Observation). In the division problem b ) a, suppose the leftover is L at a particular step. Then the decimal digit for that step is the largest integer D so that 10L bd < b. (This is the same as saying that bd is the largest multiple of b that is less than or equal to 10L.) Moreover, the leftover for the next step is given by 10L bd. These are the only decimal digits and leftovers possible. In other words, it s impossible to do a long division problem and get more than one correct answer. 3.3 Leftover Sequences A leftover sequence is the sequence of leftovers of a division problem, in order. We count the term used in the first step of a division problem as a leftover. Example. The leftover sequence for the division problem 7 ) 2 is... 2 6 4 5 1 3... 4

where the above block repeats. (I circled the first term to keep track of where the division begins.) Example. Find the leftover sequence for the division problem 13 ) 4. 4 1 10 9 12 3 Example. Find the leftover sequence for the division problem 4 ) 1. 1 2 0 Example. Find the leftover sequence for the division problem 40 ) 1. 1 10 20 0 Puzzler... Can we ever have the leftover sequence... 2 3 2 1...? (Answer is upside down for your mathematical protection!) No We can t have both 3 and 1 follow 2, by predestination of leftovers and remainders. There is only one leftover that can follow 2. Another puzzler... Can we ever have the decimal sequence... 2, 3, 2, 1, 2, 3, 2, 1...? Yes! This would represent a decimal such as 0.232123212321.... Unlike leftovers, it is not easy to predict what the next decimal digit will be. This is why we need to work with leftover sequences to prove things about decimals: it is easier to prove things if we can always predict what leftover will come next. Theorem (Leftover Sequence Theorem). Leftover sequences must eventually repeat. Proof. Let b ) a be a division problem. Suppose by contradiction that its leftover sequence never repeats. By the Leftover and Remainder Observation, never repeating means there must be an infinitely many different numbers in the leftover sequences. But leftovers must always lie between 0 and b (possibly including 0), and they are always whole numbers. This is a contradiction, as there cannot be an infinite number of whole numbers between 0 and b. So the remainder sequence must eventually repeat. Corollary (Leftover Block Length). Suppose a and b are positive integers. The repeating block of a leftover sequence for the division problem b ) a has length at most b 1. Proof. Either the sequence has a 0 or not. Case 1: the leftover sequence contains a 0. If this is the case, then the sequence looks like... 0. This is because the only leftover that can follow 0 is 0. So the repeating block is 0. This is a block of length 1. Case 2: the leftover sequence does not contain a 0. Then the only possibly numbers the leftover sequence can contain are 1, 2,..., b 1. So the length of the repeated block is at most b 1. 5

Feasting on Leftovers: Summary notes on decimal representation of rational numbers Math486-W11 Y. Lai 4 Decimal Sequences A decimal sequence is the decimal digits in the quotient of a division problem. Important fact: We can always read off the decimal sequence from the leftover sequence! Example. Write down the leftover sequence and decimal sequence for 7 ) 2. Can you get the decimal sequence from the leftover sequence without using the standard representation of the long division algorithm?... 2 6 4 5 1 3... leftover sequence 20 7 2 60 7 8 40 7 5 50 7 7 10 7 1 30 7 4... 2, 8, 5, 7, 1, 4,... decimal sequence Example. Find the decimal sequence for 5 ) 4. Relate it to the leftover sequence. The decimal sequence is 8, 0, 0, 0, 0,... and the leftover sequence is 4 0. We get 8 from 4 because 8 5 is the largest multiple of 5 less than or equal to 40. We get 0 because 0 5 is the largest multiple of 5 less than or equal to 0. Cool Example. (a) Find the decimal expansions 7 ) 3 and 7 ) 5. If you use the previous examples wisely, you will not have to do any long division! (Again, explanation is upside down for your mathematical protection.) We can read it off the leftover sequence for 7 ) 2. (!) This means that all the decimal expansions for n/7 are just rotations of each other! This is a beautiful consequence of the Leftover and Decimal Observation. Finally, we are ready for the theorem and proof of the day. 6

5 Theorem and Proof of the Day Theorem (Rational Expansion Theorem). If r = a/b is a rational number, where a, b Z, then a decimal expansion for r eventually terminates or repeats. Proof. The division problem b ) a gives us a decimal expansion for r. By the Leftover Sequence Theorem, the leftover sequence for b ) a must eventually repeat. Suppose the leftover sequence contains a 0. Then the leftover sequence eventually looks like 0, so the decimal sequence eventually looks like 0, 0, 0,..., meaning the decimal expansion terminates. Suppose the leftover sequence doesn t contain a 0. Suppose the repeating block is... L 1 L 2... L N.... Then the decimal sequence must end with the repeating block... D 1 D 2... D N... where D k is the largest multiple of b smaller than 10L k, by the Leftover and Decimal Observation. Therefore the decimal sequence eventually repeats. We have now shown that given a rational number, its decimal expansion must either terminate or eventually repeat. 7