Example: Use a direct argument to show that the sum of two even integers has to be even. Solution: Recall that an integer is even if it is a multiple

Similar documents
A n = A N = [ N, N] A n = A 1 = [ 1, 1]. n=1

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Climbing an Infinite Ladder

Introduction to Induction (LAMC, 10/14/07)

SET THEORY. Disproving an Alleged Set Property. Disproving an Alleged Set. Example 1 Solution CHAPTER 6

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

Mathematics-I Prof. S.K. Ray Department of Mathematics and Statistics Indian Institute of Technology, Kanpur. Lecture 1 Real Numbers

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Climbing an Infinite Ladder

CSE 20 DISCRETE MATH. Winter

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

EECS 1028 M: Discrete Mathematics for Engineers

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In Exercises 1 12, list the all of the elements of the given set. 2. The set of all positive integers whose square roots are less than or equal to 3

Economics 204 Fall 2011 Problem Set 1 Suggested Solutions

Proof Techniques 1. Math Camp n = (1 = n) + (2 + (n 1)) ( n 1. = (n + 1) + (n + 1) (n + 1) + n + 1.

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

CSE 20 DISCRETE MATH WINTER

Definitions Chapter 1 Proof Technique (Pg.1): Proof (Pg.2): Statement (Pg.2): Conditional Statement/Implication (Pg3.): Hypothesis(Pg.

Solutions to Sample Problems for Midterm

CSE 20 DISCRETE MATH SPRING

Preliminaries to the Theory of Computation

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Unit 4 Systems of Equations Systems of Two Linear Equations in Two Variables

With Question/Answer Animations. Chapter 2

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Section Summary. Proof by Cases Existence Proofs

Sets. your school. A group of odd natural numbers less than 25.

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

DR.RUPNATHJI( DR.RUPAK NATH )

3.4 Set Operations Given a set A, the complement (in the Universal set U) A c is the set of all elements of U that are not in A. So A c = {x x / A}.

Discrete Mathematical Structures: Theory and Applications

Writing proofs for MATH 51H Section 2: Set theory, proofs of existential statements, proofs of uniqueness statements, proof by cases

Discrete Mathematics. Spring 2017

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Discrete Mathematics. Spring 2017

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Proofs. Chapter 2 P P Q Q

Introduction to Set Operations

MAT 300 RECITATIONS WEEK 7 SOLUTIONS. Exercise #1. Use induction to prove that for every natural number n 4, n! > 2 n. 4! = 24 > 16 = 2 4 = 2 n

HW 4 SOLUTIONS. , x + x x 1 ) 2

Solutions to Practice Final

PROBLEM SOLVING. (2n +1) 3 =8n 3 +12n 2 +6n +1=2(4n 3 +6n 2 +3n)+1.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Properties of the Integers

Topics in Logic and Proofs

What is a proof? Proofing as a social process, a communication art.

SETS. Chapter Overview

On the polynomial x(x + 1)(x + 2)(x + 3)

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Proofs. Chapter 2 P P Q Q

xy xyy 1 = ey 1 = y 1 i.e.

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Mathematical Background

Section 1: Sets and Interval Notation

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

Math 421, Homework #6 Solutions. (1) Let E R n Show that = (E c ) o, i.e. the complement of the closure is the interior of the complement.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

Proofs. Joe Patten August 10, 2018

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

5. Partitions and Relations Ch.22 of PJE.

Mathematical Induction. Section 5.1

Math 127 Homework. Mary Radcliffe. Due 29 March Complete the following problems. Fully justify each response.

Sections 8.1 & 8.2 Systems of Linear Equations in Two Variables

Lecture 6: The Pigeonhole Principle and Probability Spaces

CHAPTER 1. Preliminaries. 1 Set Theory

A Level. A Level Mathematics. Proof by Contradiction (Answers) AQA, Edexcel, OCR. Name: Total Marks:

PRIME NUMBERS YANKI LEKILI

Discrete Mathematics. Benny George K. September 22, 2011

Chapter 1. Sets and Numbers

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

NCERT solution for Integers-2

Proof by Contradiction

Basic Proof Techniques

Proofs Not Based On POMI

A set is an unordered collection of objects.

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Math 210 Exam 2 - Practice Problems. 1. For each of the following, determine whether the statement is True or False.

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

CISC-102 Fall 2017 Week 3. Principle of Mathematical Induction

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

Discrete Basic Structure: Sets

Homework 3 Solutions, Math 55

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

6.1 Logic. Statements or Propositions. Negation. The negation of a statement, p, is not p and is denoted by p Truth table: p p

Lecture 6 : Induction DRAFT

Chapter 2: The Logic of Quantified Statements

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

Chapter 5: The Integers

Math 105A HW 1 Solutions

D - E - F - G (1967 Jr.) Given that then find the number of real solutions ( ) of this equation.

MATH 2200 Final Review

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Principles of Real Analysis I Fall I. The Real Number System

Discrete Mathematics for CS Spring 2008 David Wagner Note 4

Computer Science Section 1.6

Transcription:

Use a direct argument to show that the sum of two even integers has to be even. Solution: Recall that an integer is even if it is a multiple of 2, that is, an integer x is even if x = 2y for some integer y. Now suppose a and b are even integers. So a = 2c and b = 2d for some integers c and d. Now form their sum a + b: a + b = 2c + 2d = 2(c + d) But c + d is an integer so that a + b is an even integer. Use a contrapositive argument to show that if a positive integer has an even square the the integer must be even. Solution: Suppose n is a positive integer and n is not even. We will show that n 2 is also not even. Recall that an integer which is not even is odd and has the form 2x + 1 for some integer x. So n = 2x + 1 and therefore n 2 = (2x + 1) 2 = 4x 2 + 4x + 1 = 2(2x 2 + x) + 1. But 2x 2 + x is an integer so that n 2 is an odd integer. Use a proof by contradiction argument to show that there is no x Q satisfying x 2 = 2. Solution: Recall that Q is the set of rational numbers or fractions, that is, numbers of the form p/q where p and q are integers with q 0. Suppose x Q has form x = p/q where p and q are integers with q 0. We can also assume that after cancelling common factors of p and q that p and q are not both even. Now (p/q) 2 = 2 means that p 2 = 2q 2. This makes p 2 even. Using an argument like in the last example this means p is also even. So p = 2r for some integer r. Substituting to get (2r) 2 = 2q 2 allows to deduce that q 2 is even and hence that q is even. This gives the contradiction. (of proof by induction) What happens when we sum consecutive odd positive integers? Let s check:

1 1 1 + 3 4 1 + 3 + 5 9 1 + 3 + 5 + 7 16. It looks like we get perfect squares. Can we come up with a predicate proposition for this and prove that it is true? Let s start with the proposition. A positive odd integer is of the form 2k 1 for some positive integer k so that the odd positive integers are 2(1) 1 = 1 2(2) 1 = 3 2(3) 1 = 5 2(4) 1 = 7 Now it looks like our rule should be P(n) : 1 + 3 + 5 +... + (2n 1) = n 2. How can we prove this for infinitely many values of n in a finite time? The Principle of Mathematical Induction: Let P(n) be a predicate that is defined for all integers n 1. Suppose that 1. P(1) is true, and 2. k 1, (P(k) P(k + 1)) is true. Then P(n) is true for all n 1. The principle holds since P(1) is true by 1 and, by 2 applied repeatedly, P(2) is true, P(3) is true, P(4) is true, etc. (Revisited) Show that, for all integers n 1: Proof:. P(n) : 1 + 3 + 5 +... + (2n 1) = n 2. Base case: n = 1 LHS is 1 = 1 while RHS is (1) 2 = 1 also. Inductive step: Prove (P(k) P(k + 1)). So assume P(k) is true, that is 1 + 3 +... + (2k 1) = k 2.

and prove that P(k + 1) follows. Note that P(k + 1) states 1 + 3 +... + (2k 1) + (2(k + 1) 1) = (k + 1) 2 and the LHS of P(k + 1) contains the LHS of P(k). This is the key to this proof. 1 + 3 +... + (2k 1) + (2(k + 1) 1) = k 2 + 2k + 1 However this is the LHS of P(k + 1). = (k + 1) 2 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 = 100. Note: In order to prove the inductive step, we must find some relationship between the statement P (k) and the statement P (k +1). You must use P (k) in your proof of P (k + 1). Otherwise it is not an inductive proof. (Induction) If a 1 is a real number then 1 + a + a 2 + a 3 +... + a n 1 = 1 an 1 a. Proof: Base case: n = 1, LHS is 1 (only one term) while RHS is (1 a)/(1 a). Inductive step: Assume P (k), that is, and try to deduce P (k + 1), that is 1 + a + a 2 + a 3 +... + a k 1 = 1 ak 1 a. 1 + a + a 2 + a 3 +... + a k 1 + a k = 1 ak+1 1 a. Here we notice again that the LHS of P (k + 1) contains the LHS of P (k) and we can substitute for this the RHS of P (k). Thus 1 + a + a 2 +... + a k 1 + a k = (1 + a + a 2 +... + a k 1 ) + a k

which is the RHS of P (k + 1). = 1 ak 1 a + ak = 1 ak + a k (1 a) 1 a = 1 ak+1 1 a 1+(1/2)+(1/4)+(1/8)+(1/16) = (1 (1/32))/(1 1/2) = 31/16. 1 (1/2)+(1/4) (1/8)+(1/16) = (1+(1/32))/(1+1/2) = 11/16. (Induction) If a sequence of integers x 1, x 2,..., x n is defined inductively by x 1 = 1 and x k+1 = x k x k + 3 compute the first 4 terms and prove, by induction, that x n = 2 3 n 1 x 1 = 1, x 2 = 1/4, x 3 = 1/13, x 4 = 1/40 Inductive step: If x k = 2/(3 k 1) then x k x k + 3 = 2/(3k 1) 2/(3 k 1) + 3 = 2 2 + 3(3 k 1) = 2 3 k+1 1 = x k+1 (Induction) For every integer n bigger than 1, n 2 > n + 1. Proof: Base case: n = 2 (the first integer bigger than 1), LHS is 2 2 = 4 while RHS is 3. Inductive step: Assume P (k), that is, k 2 > k+1. and try to deduce P (k+1), that is (k + 1) 2 > k + 1 + 1 = k + 2. Bearing in mind that k > 1 we argue (k + 1) 2 = k 2 + 2k + 1 > (k + 1) + 2k + 1 (by P (k)) > k + 1 + 2(1) + 1 ( since k > 1) > k + 2

(False proof.) All cars have the same colour. See http://en.wikipedia.org/wiki/all horses are the same color Sets A set is a collection of objects. In fact, we do not define the term set. All that matters about the set is what its elements are, and that we can decide if a given object is or is not an element of a given set. Notation: If an object x belongs to a set A we write x A, if not we write x A. Two sets are equal if they have exactly the same elements. Write X = Y if for every x, x X x Y. Otherwise write X Y. Notation: We write our sets by enclosing a description of the elements between braces { on left and } on right. We can give a finite or infinite list or a description using properties. P = {Burnley, Leicester, Queens Park Rangers} or P = {T a Premiership team T was promoted this year}. E = {2, 4, 6, 8,...} or E = {x a positive integer x = 2k for some integer k} There are some standard sets of numbers N = the set of all natural numbers = {0, 1, 2, 3,...} Z = the set of all integers = {..., 2, 1, 0, 1, 2,...} Q = the set of all rational numbers or fractions R = the set of all real numbers C = the set of all complex numbers Definition: There is a special set with no elements called the empty set. There are two notations and {}. The definition is = {x x x}. Definition: We say that a set A is a subset of a set B or A is contained in B and write A B if x A x B.

Other notation for this situation is B A, and we say B is a superset of A or B contains A. Proposition: N Z Q R C Notice the following three properties A A A B and B A A = B A B and B C A C Definition: If A is a set then the set of all subsets of A is called the power set of A. We will write P (A) for this power set, although some people write 2 A. If A = {1, 2, 3} then P (A) = {, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}. Definition: If A and B are sets, we define their union by and their intersection by A B = {x x A or x B} A B = {x x A and x B}. Venn diagrams A Venn diagram is a device for pictorially representing relationships between sets. It is named after John Venn (1834-1923) who popularised its use.

Elliptic regions are drawn to represent sets. The overlapping ellipses define regions corresponding to intersections and several regions will combine to represent unions. Venn diagram example A B C The region in blue represents the elements in (A B) C.