(CSC 102) Discrete Structures Lecture 10.

Slides:



Advertisements
Similar presentations
Lecture 3 – February 17, 2003.
Advertisements

Discrete Mathematics Lecture 3
With examples from Number Theory
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Elementary Number Theory and Methods of Proof.
1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
Chapter 3 Elementary Number Theory and Methods of Proof.
(CSC 102) Lecture 12 Discrete Structures. Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Study Guides Quantitative - Arithmetic - Numbers, Divisibility Test, HCF and LCM Mycatstudy.com.
3.3 Divisibility Definition If n and d are integers, then n is divisible by d if, and only if, n = dk for some integer k. d | n  There exists an integer.
Elementary Number Theory and Methods of Proof
Quotient-Remainder Theory, Div and Mod
Direct Proof and Counterexample II Lecture 12 Section 3.2 Thu, Feb 9, 2006.
Copyright © Cengage Learning. All rights reserved.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Discrete Structures Chapter 2 Part B Mathematical Induction
Proof Must Have Statement of what is to be proven.
The essential quality of a proof is to compel belief.
Chapter 4: Elementary Number Theory and Methods of Proof
Copyright © Cengage Learning. All rights reserved.
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
Homework Review notes Complete Worksheet #2. Homework State whether the conditional sentence is true or false 1.If 1 = 0, then 1 = – 1 True F F T.
CSCI 1900 Discrete Structures
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
Slide 5-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Copyright © Cengage Learning. All rights reserved.
Quantitative - Arithmetic - Numbers, Divisibility Test, HCF and LCM
Chapter 2 Definitions Numbers such as 3 and -3 that are the same distance from 0 but on the opposite side of 0 are called opposites. The set of integers.
Chapter 4: Elementary Number Theory and Methods of Proof 4.2 Direct Proof and Counter Example II: Rational Numbers 1 Such, then, is the whole art of convincing.
Topic Real Numbers.
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Elementary Number Theory and Methods of Proof.
P.1 Real Numbers. 2 What You Should Learn Represent and classify real numbers. Order real numbers and use inequalities. Find the absolute values of real.
CHAPTER 2.1 ADDITION, SUBTRACTION, MULTIPLICATION, AND DIVISION PROPERTIES OF EQUALITY.
Copyright © 2009 Pearson Education, Inc. Chapter 5 Section 1 - Slide 1 Chapter 1 Number Theory and the Real Number System.
Thinking Mathematically Number Theory and the Real Number System 5.5 Real Numbers and Their Properties.
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
Chapter 6: The Real Numbers and Their Representations.
Properties for Real Numbers Rules that real numbers follow.
Copyright © Cengage Learning. All rights reserved. Fundamental Concepts of Algebra 1.1 Real Numbers.
Slide Copyright © 2009 Pearson Education, Inc. Unit 1 Number Theory MM-150 SURVEY OF MATHEMATICS – Jody Harris.
Direct Proof and Counterexample III
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Real Number and the number Line. Number System Real numbers: is number that can be positive or negative and have decimal places after the point. Natural.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Slide Copyright © 2009 Pearson Education, Inc. Slide Copyright © 2009 Pearson Education, Inc. Chapter 1 Number Theory and the Real Number System.
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.
Divisibility and Modular Arithmetic
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Slide Copyright © 2009 Pearson Education, Inc. Slide Copyright © 2009 Pearson Education, Inc. Chapter 1 Number Theory and the Real Number System.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
Direct Proof and Counterexample IV: Division into Cases and the Quotient-Remainder Theorem For each of the following values of n and d, find integers q.
WARM UP The least common denominator of the fractions and is
Direct Proof and Counterexample III: Divisibility
Direct Proof and Counterexample II
Number Systems INTRODUCTION.
Subject : Algebra Std - 9th Subject- Algebra Topic- Real Numbers.
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Direct Proof and Counterexample V: Floor and Ceiling
The Real Numbers And Their Representations
Direct Proof and Counterexample III
Copyright © Cengage Learning. All rights reserved.
Lecture 5 Number Theory & Proof Methods
PROGRAMME: F.Y.B.Sc.I.T. (SEM-I) COURSE: DISCRETE MATHEMATICS
Presentation transcript:

(CSC 102) Discrete Structures Lecture 10

Previous Lectures Summary Divisors Prime Numbers Fundamental Theorem of Arithmetic Division Algorithm . Greatest common divisors. Least Common Multiple Relative Prime

Elementary Number Theory II

Today's Lecture Rational Number Properties of Rational Numbers Irrational numbers Absolute values Triangular inequality Floor and Ceiling functions

Rational Numbers A real number r is rational if, and only if, r = a/b for some integers a and b with b ≠ 0. A real number that is not rational is irrational. More formally, r is a rational number ↔ ∃ integers a and b such that r = a/b, b ≠ 0. Determine whether following numbers are rational? 10/3 -(5/39) 2/0 0.121212121212………

Cont…. Yes, 10/3 is quotient of the integers 10 and 3. Yes, -5/39, which is a quotient of the integers. No, 2/0 is not a number (division by 0 is not allowed) Yes, Let x=0.1212121212121, then 100x=12.12121212…. 100x – x = 12.12121212….. - 0.1212121212…… = 12. 99∙x = 12 and so x=12/99. Therefore 0.12121212….. = 12/99, which is a ratio of two non zero integers and thus is a rational number.

Properties Of Rational Number Theorem: Every Integer is a rational Number Proof: Its obvious by the definition of rational Number.

Properties Of Rational Number Theorem: The sum of any two rational Numbers is rational. Proof: Suppose r and s are rational numbers. Then by definition of rational, r = a/b and s = c/d for some integers a, b, c, and d with b ≠ 0 and d ≠ 0. So r + s = a/b + c/d = (ad + bc)/b∙d. Let p = ad + bc and q = bd. Then p and q are integers because product and sum of integers are integers. Also q ≠ 0. Thus r+s = p/q. so r+s is a rational number.

Properties Of Rational Number Theorem: The double of a rational number is rational. Proof: Suppose r is rational number. Then 2r = r + r is a sum of two rational number and is a rational number.

Irrational Numbers The number which is not rational is called irrational number. i.e., a decimal representation which is neither repeating and non recurring. For example =1.41421356237309…… Note: Product of two irrational is not irrational.

Cont…. Visualizing some irrational numbers .

Absolute Number Examples |5|= 5, |-4/7|= -(-4/7)=4/7, |0|=0 For any real number x, the absolute value of x, denoted |x|, is defined as follows: Examples |5|= 5, |-4/7|= -(-4/7)=4/7, |0|=0

Lemma: For all real numbers r, −| r | ≤ r ≤ | r |. Absolute Number Lemma: For all real numbers r, −| r | ≤ r ≤ | r |. Proof: Suppose r is any real number. We divide into cases according to whether r ≥ 0 or r < 0. Case 1: (r ≥ 0): In this case, by definition of absolute value, |r| = r . Also, since r is positive and −|r | is negative, −|r | < r . Thus it is true that −|r| ≤ r ≤ |r |. Case 2: (r<0): both sides by −1 gives that −|r| = r . Also, since r is negative and |r | is positive ,r < |r |. Thus it is also true in this case that −|r| ≤ r ≤ |r |. Hence, in either case, −|r| ≤ r ≤ |r |

Cont….. Theorem: Proof:

|x + y| = (−x) + (−y) ≤ |x| + |y|. Triangular Inequality Theorem: For all real numbers x and y, |x + y| ≤ |x| + |y|. Proof: Suppose x and y, are any real numbers. Case 1: (x + y ≥ 0): In this case, |x + y| = x + y, x ≤ |x| and y ≤ |y|. Hence, |x + y| = x + y ≤ |x| + |y|. Case 2 (x + y<0): In this case, |x + y| = −(x + y) and also, −x ≤ |−x| = |x| and −y ≤ |− y| = |y|. It follows, that |x + y| = (−x) + (−y) ≤ |x| + |y|. Hence in both cases |x + y| ≤ |x| + |y|

Floor and Ceiling Given any real number x, the floor of x, denoted , is defined as follows: = that unique integer n such that n ≤ x < n + 1. Symbolically, if x is a real number and n is an integer, then = n ⇔ n ≤ x < n + 1.

Ceiling Given any real number x, the ceiling of x, denoted , is defined as follows: = that unique integer n such that n − 1 < x ≤ n. Symbolically, if x is a real number and n is an integer, then = n ⇔ n − 1 < x ≤ n.

Examples Compute and for each of the following values of x: 25/4 0.999 −2.01 Solution: 25/4 = 6.25 and 6 < 6.25 < 7; hence b. 0 < 0.999 < 1; hence . c. −3 < −2.01 < −2; hence

Example The 1,370 students at a college are given the opportunity to take buses to an out-of-town game. Each bus holds a maximum of 40 passengers. For reasons of economy, the athletic director will send only full buses. What is the maximum number of buses the athletic director will send? b. If the athletic director is willing to send one partially filled bus, how many buses will be needed to allow all the students to take the trip?

General Values of Floor Solution:

Cont… Is the following statement true or false? For all real Numbers x and y, Solution: The statement is false, take x = y = 1/2, then Hence

Properties of Floor Theorem: For all numbers x and all integers m, Proof: Suppose a real number x and an integer m are given. Let n = that unique integer n such that, n ≤ x < n + 1. Add m to all sides to obtain n + m ≤ x + m < n + m + 1. Now n + m is an integer and so, by definition of floor, But n = . Hence by substitution

Cont…. Theorem: Proof: Suppose n is a integer. Then either n is odd or n is even. Case 1: in this case n = 2k+1 for some integers k.

Cont… also. Since both the left-hand and right-hand sides equal k, they are equal to each other. That is, Case 2: In this case, n = 2k for some integer k. Since k=n/2 by the definition of even number. So

Lecture Summary Rational Number Properties of Rational Numbers Irrational numbers Absolute values Triangular inequality Floor and Ceiling