#set document(title: "4.3 Chapter Summary", author: "OpenStax / XYZ Homework") #set page(width: 8.5in, height: auto, margin: 1in) #import "@preview/cetz:0.5.2" #set text(font: ("STIX Two Text", "Libertinus Serif", "New Computer Modern"), size: 10.5pt, lang: "en") #show math.equation: set text(font: ("STIX Two Math", "New Computer Modern Math")) #set par(justify: true, leading: 0.62em, spacing: 0.9em) #set enum(spacing: 1.1em) // room between list items so tall inline fractions don't collide #set list(spacing: 1.1em) #set table(stroke: 0.5pt + rgb("#c7ccd3")) #let BLUE = rgb("#183B6F") // brand navy — section bars + example/solution labels (white on navy 11.09:1) #let ORANGE = rgb("#A94509") // brand primary-700 — AA-safe deep orange for TEXT (5.93:1 on white; raw brand #F37021 is 2.94:1 and must never carry text) #let RED = rgb("#DC2626") // brand error-600 #let GREEN = rgb("#059669") // brand success-600 (decoration only; small green text uses green-text #007942) #show heading.where(level: 1): it => block(width: 100%, above: 0pt, below: 16pt, fill: gradient.linear(BLUE, rgb("#2C5AA0")), inset: (x: 14pt, y: 12pt), radius: 3pt, text(fill: white, weight: "bold", size: 19pt, it.body)) #show heading.where(level: 2): it => block(width: 100%, above: 18pt, below: 10pt, fill: BLUE, inset: (x: 10pt, y: 6pt), radius: 2pt, text(fill: white, weight: "bold", size: 12pt, it.body)) #show heading.where(level: 3): it => text(fill: ORANGE, weight: "bold", size: 12.5pt, it.body) #show heading.where(level: 4): it => text(fill: BLUE, weight: "bold", size: 10.5pt, it.body) #let examplebox(label, title, body) = block(width: 100%, breakable: true, fill: rgb("#EFF1F5"), stroke: 0.5pt + rgb("#CFDDF0"), radius: 4pt, inset: 10pt, above: 12pt, below: 12pt)[ #block(below: 6pt)[#box(fill: BLUE, inset: (x: 6pt, y: 2pt), radius: 2pt, text(fill: white, weight: "bold", size: 8.5pt, label)) #h(0.4em) #strong[#title]] #body] // rail = decorative left rule (raw brand token); labelcolor = AA-safe label text shade #let notebox(label, rail, labelcolor, tint, body) = block(width: 100%, breakable: true, fill: tint, stroke: (left: 3pt + rail), inset: (left: 10pt, rest: 8pt), radius: (right: 4pt), above: 11pt, below: 11pt)[ #text(fill: labelcolor, weight: "bold", size: 7.5pt, tracking: 0.5pt)[#upper(label)] #linebreak() #body] #let solutionbox(body) = block(above: 4pt, below: 8pt)[ #text(fill: BLUE, weight: "bold", size: 8.5pt)[Solution] #linebreak() #body] #let figph(msg) = block(width: 100%, height: 60pt, fill: rgb("#f6f7f9"), stroke: (paint: rgb("#c7ccd3"), dash: "dashed"), radius: 4pt, inset: 10pt)[ #align(center + horizon, text(fill: rgb("#889"), style: "italic", size: 9pt, msg))] // Standardize inlined figure sizes: measure the natural CeTZ canvas, then scale to a // consistent envelope (aspect-aware; see build_typst.py FIG_* constants). Unlike the // print preamble, dimensions are FLOORED: in an editor a user can trim a figure to a // degenerate 1-D shape (a bare line), and w/h or tw/w would then divide by zero. #let _STD_W = 3.5 #let _WIDE_W = 5.6 #let _MAX_H = 3.4 #let _ASPECT_WIDE = 2.2 #let _UPSCALE_MAX = 1.15 #let stdfig(body) = context { let m = measure(body) let w = calc.max(m.width / 1in, 0.01) let h = calc.max(m.height / 1in, 0.01) let tw = if w / h > _ASPECT_WIDE { _WIDE_W } else { _STD_W } let s = calc.min(tw / w, _MAX_H / h, _UPSCALE_MAX) align(center, box(scale(x: s * 100%, y: s * 100%, reflow: true, body))) } #show figure: set block(breakable: false) #set figure(gap: 8pt) #show figure.caption: set text(size: 8.5pt, fill: rgb("#555")) == 4.3#h(0.6em)Chapter Summary We have considered logic both as its own sub-discipline of mathematics, and as a means to help us better understand and write proofs. In either view, we noticed that mathematical statements have a particular logical form, and analyzing that form can help make sense of the statement. At the most basic level, a statement might combine simpler statements using #emph[logical connectives]. We often make use of variables, and #emph[quantify] over those variables. How to resolve the truth or falsity of a statement based on these connectives and quantifiers is what logic is all about. From this, we can decide whether two statements are logically equivalent or if one or more statements (logically) imply another. When writing proofs (in any area of mathematics) our goal is to explain why a mathematical statement is true. Thus it is vital that our argument implies the truth of the statement. To be sure of this, we first must know what it means for the statement to be true, as well as ensure that the statements that make up the proof correctly imply the conclusion. A firm understanding of logic is required to check whether a proof is correct. There is, however, another reason that understanding logic can be helpful. Understanding the logical structure of a statement often gives clues as how to write a proof of the statement. This is not to say that writing proofs is always straight forward. Consider again the #emph[Goldbach conjecture]: Every even number greater than 2 can be written as the sum of two primes. We are not going to try to prove the statement here, but we can at least say what a proof might look like, based on the logical form of the statement. Perhaps we should write the statement in an equivalent way which better highlights the quantifiers and connectives: For all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is even and greater than 2, then there exists integers #math.equation(block: false, alt: "p")[$p$] and #math.equation(block: false, alt: "q")[$q$] such that #math.equation(block: false, alt: "p")[$p$] and #math.equation(block: false, alt: "q")[$q$] are prime and #math.equation(block: false, alt: "n equals p plus q")[$n = p + q$]. What would a direct proof look like? Since the statement starts with a universal quantifier, we would start by, \`\`Let #math.equation(block: false, alt: "n")[$n$] be an arbitrary integer." The rest of the statement is an implication. In a direct proof we assume the “if” part, so the next line would be, “Assume #math.equation(block: false, alt: "n")[$n$] is greater than 2 and is even.” I have no idea what comes next, but eventually, we would need to find two prime numbers #math.equation(block: false, alt: "p")[$p$] and #math.equation(block: false, alt: "q")[$q$] (depending on #math.equation(block: false, alt: "n")[$n$]) and explain how we know that #math.equation(block: false, alt: "n equals p plus q")[$n = p + q$]. Or maybe we try a proof by contradiction. To do this, we first assume the negation of the statement we want to prove. What is the negation? From what we have studied we should be able to see that it is, There is an integer #math.equation(block: false, alt: "n")[$n$] such that #math.equation(block: false, alt: "n")[$n$] is even and greater than #math.equation(block: false, alt: "2")[$2$], but for all integers #math.equation(block: false, alt: "p")[$p$] and #math.equation(block: false, alt: "q")[$q$], either #math.equation(block: false, alt: "p")[$p$] or #math.equation(block: false, alt: "q")[$q$] is not prime or #math.equation(block: false, alt: "n not equal to p plus q")[$n ≠ p + q$]. Could this statement be true? A proof by contradiction would start by assuming it was and eventually conclude with a contradiction, proving that our assumption of truth was incorrect. And if you can find such a contradiction, you will have proved the most famous open problem in mathematics. Good luck. === Chapter Review Complete a truth table for the statement #math.equation(block: false, alt: "¬ P → open parenthesis Q ∧ R close parenthesis")[$upright(¬) P → ( Q ∧ R )$]. #solutionbox[ #figure(table( columns: 4, align: left, inset: 6pt, table.header([#math.equation(block: false, alt: "P")[$P$]], [#math.equation(block: false, alt: "Q")[$Q$]], [#math.equation(block: false, alt: "R")[$R$]], [#math.equation(block: false, alt: "¬ P → open parenthesis Q ∧ R close parenthesis")[$upright(¬) P → ( Q ∧ R )$]]), [T], [T], [T], [T], [T], [T], [F], [T], [T], [F], [T], [T], [T], [F], [F], [T], [F], [T], [T], [T], [F], [T], [F], [F], [F], [F], [T], [F], [F], [F], [F], [F], )) ] Suppose you know that the statement “if Peter is not tall, then Quincy is fat and Robert is skinny” is false. What, if anything, can you conclude about Peter and Robert if you know that Quincy is indeed fat? Explain (you may reference problem). #solutionbox[ Peter is not tall and Robert is not skinny. You must be in row 6 in the truth table above. ] Are the statements #math.equation(block: false, alt: "P → open parenthesis Q ∨ R close parenthesis")[$P → ( Q ∨ R )$] and #math.equation(block: false, alt: "open parenthesis P → Q close parenthesis ∨ open parenthesis P → R close parenthesis")[$( P → Q ) ∨ ( P → R )$] logically equivalent? Explain your answer. #solutionbox[ Yes. To see this, make a truth table for each statement and compare. ] Is the following a valid deduction rule? Explain. #figure(table( columns: 2, align: left, inset: 6pt, table.header([], [#math.equation(block: false, alt: "P → Q")[$P → Q$]]), [], [#math.equation(block: false, alt: "P → R")[$P → R$]], [#math.equation(block: false, alt: "∴")[$∴$]], [#math.equation(block: false, alt: "P → open parenthesis Q ∧ R close parenthesis")[$P → ( Q ∧ R )$].], )) #solutionbox[ Make a truth table that includes all three statements in the argument: #figure(table( columns: 6, align: left, inset: 6pt, table.header([#math.equation(block: false, alt: "P")[$P$]], [#math.equation(block: false, alt: "Q")[$Q$]], [#math.equation(block: false, alt: "R")[$R$]], [#math.equation(block: false, alt: "P → Q")[$P → Q$]], [#math.equation(block: false, alt: "P → R")[$P → R$]], [#math.equation(block: false, alt: "P → open parenthesis Q ∧ R close parenthesis")[$P → ( Q ∧ R )$]]), [T], [T], [T], [T], [T], [T], [T], [T], [F], [T], [F], [F], [T], [F], [T], [F], [T], [F], [T], [F], [F], [F], [F], [F], [F], [T], [T], [T], [T], [T], [F], [T], [F], [T], [T], [T], [F], [F], [T], [T], [T], [T], [F], [F], [F], [T], [T], [T], )) Notice that in every row for which both #math.equation(block: false, alt: "P → Q")[$P → Q$] and #math.equation(block: false, alt: "P → R")[$P → R$] is true, so is #math.equation(block: false, alt: "P → open parenthesis Q ∧ R close parenthesis")[$P → ( Q ∧ R )$]. Therefore, whenever the premises of the argument are true, so is the conclusion. In other words, the deduction rule is valid. ] Write the negation, converse and contrapositive for each of the statements below. + If the power goes off, then the food will spoil. + If the door is closed, then the light is off. + #math.equation(block: false, alt: "∀ x open parenthesis x less than 1 → x squared less than 1 close parenthesis")[$upright(∀) x ( x < 1 → x^(2) < 1 )$]. + For all natural numbers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is prime, then #math.equation(block: false, alt: "n")[$n$] is solitary. + For all functions #math.equation(block: false, alt: "f")[$f$], if #math.equation(block: false, alt: "f")[$f$] is differentiable, then #math.equation(block: false, alt: "f")[$f$] is continuous. + For all integers #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$], if #math.equation(block: false, alt: "a times b")[$a ⋅ b$] is even, then #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$] are even. + For every integer #math.equation(block: false, alt: "x")[$x$] and every integer #math.equation(block: false, alt: "y")[$y$] there is an integer #math.equation(block: false, alt: "n")[$n$] such that if #math.equation(block: false, alt: "x greater than 0")[$x > 0$] then #math.equation(block: false, alt: "n x greater than y")[$n x > y$]. + For all real numbers #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$], if #math.equation(block: false, alt: "x y equals 0")[$x y = 0$] then #math.equation(block: false, alt: "x equals 0")[$x = 0$] or #math.equation(block: false, alt: "y equals 0")[$y = 0$]. + For every student in Math 228, if they do not understand implications, then they will fail the exam. #solutionbox[ + Negation: The power goes off and the food does not spoil. #linebreak() Converse: If the food spoils, then the power went off. #linebreak() Contrapositive: If the food does not spoil, then the power did not go off. + Negation: The door is closed and the light is on. #linebreak() Converse: If the light is off then the door is closed. #linebreak() Contrapositive: If the light is on then the door is open. + Negation: #math.equation(block: false, alt: "∃ x open parenthesis x less than 1 ∧ x squared greater than or equal to 1 close parenthesis")[$upright(∃) x ( x < 1 ∧ x^(2) ≥ 1 )$] #linebreak() Converse: #math.equation(block: false, alt: "∀ x open parenthesis x squared less than 1 → x less than 1 close parenthesis")[$upright(∀) x ( x^(2) < 1 → x < 1 )$] #linebreak() Contrapositive: #math.equation(block: false, alt: "∀ x open parenthesis x squared greater than or equal to 1 → x greater than or equal to 1 close parenthesis")[$upright(∀) x ( x^(2) ≥ 1 → x ≥ 1 )$]. + Negation: There is a natural number #math.equation(block: false, alt: "n")[$n$] which is prime but not solitary. #linebreak() Converse: For all natural numbers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is solitary, then #math.equation(block: false, alt: "n")[$n$] is prime. #linebreak() Contrapositive: For all natural numbers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is not solitary then #math.equation(block: false, alt: "n")[$n$] is not prime. + Negation: There is a function which is differentiable and not continuous. #linebreak() Converse: For all functions #math.equation(block: false, alt: "f")[$f$], if #math.equation(block: false, alt: "f")[$f$] is continuous then #math.equation(block: false, alt: "f")[$f$] is differentiable. #linebreak() Contrapositive: For all functions #math.equation(block: false, alt: "f")[$f$], if #math.equation(block: false, alt: "f")[$f$] is not continuous then #math.equation(block: false, alt: "f")[$f$] is not differentiable. + Negation: There are integers #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$] for which #math.equation(block: false, alt: "a times b")[$a ⋅ b$] is even but #math.equation(block: false, alt: "a")[$a$] or #math.equation(block: false, alt: "b")[$b$] is odd. #linebreak() Converse: For all integers #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$], if #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$] are even then #math.equation(block: false, alt: "a b")[$a b$] is even. #linebreak() Contrapositive: For all integers #math.equation(block: false, alt: "a")[$a$] and #math.equation(block: false, alt: "b")[$b$], if #math.equation(block: false, alt: "a")[$a$] or #math.equation(block: false, alt: "b")[$b$] is odd, then #math.equation(block: false, alt: "a b")[$a b$] is odd. + Negation: There are integers #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$] such that for every integer #math.equation(block: false, alt: "n")[$n$], #math.equation(block: false, alt: "x greater than 0")[$x > 0$] and #math.equation(block: false, alt: "n x less than or equal to y")[$n x ≤ y$]. #linebreak() Converse: For every integer #math.equation(block: false, alt: "x")[$x$] and every integer #math.equation(block: false, alt: "y")[$y$] there is an integer #math.equation(block: false, alt: "n")[$n$] such that if #math.equation(block: false, alt: "n x greater than y")[$n x > y$] then #math.equation(block: false, alt: "x greater than 0")[$x > 0$]. #linebreak() Contrapositive: For every integer #math.equation(block: false, alt: "x")[$x$] and every integer #math.equation(block: false, alt: "y")[$y$] there is an integer #math.equation(block: false, alt: "n")[$n$] such that if #math.equation(block: false, alt: "n x less than or equal to y")[$n x ≤ y$] then #math.equation(block: false, alt: "x less than or equal to 0")[$x ≤ 0$]. + Negation: There are real numbers #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$] such that #math.equation(block: false, alt: "x y equals 0")[$x y = 0$] but #math.equation(block: false, alt: "x not equal to 0")[$x ≠ 0$] and #math.equation(block: false, alt: "y not equal to 0")[$y ≠ 0$]. #linebreak() Converse: For all real numbers #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$], if #math.equation(block: false, alt: "x equals 0")[$x = 0$] or #math.equation(block: false, alt: "y equals 0")[$y = 0$] then #math.equation(block: false, alt: "x y equals 0")[$x y = 0$] #linebreak() Contrapositive: For all real numbers #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$], if #math.equation(block: false, alt: "x not equal to 0")[$x ≠ 0$] and #math.equation(block: false, alt: "y not equal to 0")[$y ≠ 0$] then #math.equation(block: false, alt: "x y not equal to 0")[$x y ≠ 0$]. + Negation: There is at least one student in Math 228 who does not understand implications but will still pass the exam. #linebreak() Converse: For every student in Math 228, if they fail the exam, then they did not understand implications. #linebreak() Contrapositive: For every student in Math 228, if they pass the exam, then they understood implications. ] Consider the statement: for all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is even and #math.equation(block: false, alt: "n less than or equal to 7")[$n ≤ 7$] then #math.equation(block: false, alt: "n")[$n$] is negative or #math.equation(block: false, alt: "n ∈ open brace 0 , 2 , 4 , 6 close brace")[$n ∈ \{ 0 , 2 , 4 , 6 \}$]. + Is the statement true? Explain why. + Write the negation of the statement. Is it true? Explain. + State the contrapositive of the statement. Is it true? Explain. + State the converse of the statement. Is it true? Explain. #solutionbox[ + The statement is true. If #math.equation(block: false, alt: "n")[$n$] is an even integer less than or equal to 7, then the only way it could not be negative is if #math.equation(block: false, alt: "n")[$n$] was equal to 0, 2, 4, or 6. + There is an integer #math.equation(block: false, alt: "n")[$n$] such that #math.equation(block: false, alt: "n")[$n$] is even and #math.equation(block: false, alt: "n less than or equal to 7")[$n ≤ 7$] but #math.equation(block: false, alt: "n")[$n$] is not negative and #math.equation(block: false, alt: "n ∉ open brace 0 , 2 , 4 , 6 close brace")[$n ∉ \{ 0 , 2 , 4 , 6 \}$]. This is false, since the original statement is true. + For all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is not negative and #math.equation(block: false, alt: "n ∉ open brace 0 , 2 , 4 , 6 close brace")[$n ∉ \{ 0 , 2 , 4 , 6 \}$] then #math.equation(block: false, alt: "n")[$n$] is odd or #math.equation(block: false, alt: "n greater than 7")[$n > 7$]. This is true, since the contrapositive is equivalent to the original statement (which is true). + For all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is negative or #math.equation(block: false, alt: "n ∈ open brace 0 , 2 , 4 , 6 close brace")[$n ∈ \{ 0 , 2 , 4 , 6 \}$] then #math.equation(block: false, alt: "n")[$n$] is even and #math.equation(block: false, alt: "n less than or equal to 7")[$n ≤ 7$]. This is false. #math.equation(block: false, alt: "n equals minus 3")[$n = − 3$] is a counterexample. ] Consider the statement: #math.equation(block: false, alt: "∀ x open parenthesis ∀ y open parenthesis x plus y equals y close parenthesis → ∀ z open parenthesis x times z equals 0 close parenthesis close parenthesis")[$upright(∀) x ( upright(∀) y ( x + y = y ) → upright(∀) z ( x ⋅ z = 0 ) )$]. + Explain what the statement says in words. Is this statement true? Be sure to state what you are taking the universe of discourse to be. + Write the converse of the statement, both in words and in symbols. Is the converse true? + Write the contrapositive of the statement, both in words and in symbols. Is the contrapositive true? + Write the negation of the statement, both in words and in symbols. Is the negation true? #solutionbox[ + For any number #math.equation(block: false, alt: "x")[$x$], if it is the case that adding any number to #math.equation(block: false, alt: "x")[$x$] gives that number back, then multiplying any number by #math.equation(block: false, alt: "x")[$x$] will give 0. This is true (of the integers or the reals). The “if” part only holds if #math.equation(block: false, alt: "x equals 0")[$x = 0$], and in that case, anything times #math.equation(block: false, alt: "x")[$x$] will be 0. + The converse in words is this: for any number #math.equation(block: false, alt: "x")[$x$], if everything times #math.equation(block: false, alt: "x")[$x$] is zero, then everything added to #math.equation(block: false, alt: "x")[$x$] gives itself. Or in symbols: #math.equation(block: false, alt: "∀ x open parenthesis ∀ z open parenthesis x times z equals 0 close parenthesis → ∀ y open parenthesis x plus y equals y close parenthesis close parenthesis")[$upright(∀) x ( upright(∀) z ( x ⋅ z = 0 ) → upright(∀) y ( x + y = y ) )$]. The converse is true: the only number which when multiplied by any other number gives 0 is #math.equation(block: false, alt: "x equals 0")[$x = 0$]. And if #math.equation(block: false, alt: "x equals 0")[$x = 0$], then #math.equation(block: false, alt: "x plus y equals y")[$x + y = y$]. + The contrapositive in words is: for any number #math.equation(block: false, alt: "x")[$x$], if there is some number which when multiplied by #math.equation(block: false, alt: "x")[$x$] does not give zero, then there is some number which when added to #math.equation(block: false, alt: "x")[$x$] does not give that number. In symbols: #math.equation(block: false, alt: "∀ x open parenthesis ∃ z open parenthesis x times z not equal to 0 close parenthesis → ∃ y open parenthesis x plus y not equal to y close parenthesis close parenthesis")[$upright(∀) x ( upright(∃) z ( x ⋅ z ≠ 0 ) → upright(∃) y ( x + y ≠ y ) )$]. We know the contrapositive must be true because the original implication is true. + The negation: there is a number #math.equation(block: false, alt: "x")[$x$] such that any number added to #math.equation(block: false, alt: "x")[$x$] gives the number back again, but there is a number you can multiply #math.equation(block: false, alt: "x")[$x$] by and not get 0. In symbols: #math.equation(block: false, alt: "∃ x open parenthesis ∀ y open parenthesis x plus y equals y close parenthesis ∧ ∃ z open parenthesis x times z not equal to 0 close parenthesis close parenthesis")[$upright(∃) x ( upright(∀) y ( x + y = y ) ∧ upright(∃) z ( x ⋅ z ≠ 0 ) )$]. Of course since the original implication is true, the negation is false. ] Simplify the following. + #math.equation(block: false, alt: "¬ open parenthesis ¬ open parenthesis P ∧ ¬ Q close parenthesis → ¬ open parenthesis ¬ R ∨ ¬ open parenthesis P → R close parenthesis close parenthesis close parenthesis")[$upright(¬) ( upright(¬) ( P ∧ upright(¬) Q ) → upright(¬) ( upright(¬) R ∨ upright(¬) ( P → R ) ) )$]. + #math.equation(block: false, alt: "¬ ∃ x ¬ ∀ y ¬ ∃ z open parenthesis z equals x plus y → ∃ w open parenthesis x minus y equals w close parenthesis close parenthesis")[$upright(¬) upright(∃) x upright(¬) upright(∀) y upright(¬) upright(∃) z ( z = x + y → upright(∃) w ( x − y = w ) )$]. #solutionbox[ + #math.equation(block: false, alt: "open parenthesis ¬ P ∨ Q close parenthesis ∧ open parenthesis ¬ R ∨ open parenthesis P ∧ ¬ R close parenthesis close parenthesis")[$( upright(¬) P ∨ Q ) ∧ ( upright(¬) R ∨ ( P ∧ upright(¬) R ) )$]. + #math.equation(block: false, alt: "∀ x ∀ y ∀ z open parenthesis z equals x plus y ∧ ∀ w open parenthesis x minus y not equal to w close parenthesis close parenthesis")[$upright(∀) x upright(∀) y upright(∀) z ( z = x + y ∧ upright(∀) w ( x − y ≠ w ) )$]. ] Consider the statement: for all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "n")[$n$] is odd, then #math.equation(block: false, alt: "7 n")[$7 n$] is odd. + Prove the statement. What sort of proof are you using? + Prove the converse. What sort of proof are you using? #solutionbox[ + Direct proof. #notebox("Note", rgb("#8a94a6"), rgb("#556666"), rgb("#f7f8fa"))[ Let #math.equation(block: false, alt: "n")[$n$] be an integer. Assume #math.equation(block: false, alt: "n")[$n$] is odd. So #math.equation(block: false, alt: "n equals 2 k plus 1")[$n = 2 k + 1$] for some integer #math.equation(block: false, alt: "k")[$k$]. Then #math.equation(block: true, alt: "7 n equals 7 open parenthesis 2 k plus 1 close parenthesis equals 14 k plus 7 equals 2 open parenthesis 7 k plus 3 close parenthesis plus 1")[$7 n = 7 ( 2 k + 1 ) = 14 k + 7 = 2 ( 7 k + 3 ) + 1$]. Since #math.equation(block: false, alt: "7 k plus 3")[$7 k + 3$] is an integer, we see that #math.equation(block: false, alt: "7 n")[$7 n$] is odd. ] + The converse is: for all integers #math.equation(block: false, alt: "n")[$n$], if #math.equation(block: false, alt: "7 n")[$7 n$] is odd, then #math.equation(block: false, alt: "n")[$n$] is odd. We will prove this by contrapositive. #notebox("Note", rgb("#8a94a6"), rgb("#556666"), rgb("#f7f8fa"))[ Let #math.equation(block: false, alt: "n")[$n$] be an integer. Assume #math.equation(block: false, alt: "n")[$n$] is not odd. Then #math.equation(block: false, alt: "n equals 2 k")[$n = 2 k$] for some integer #math.equation(block: false, alt: "k")[$k$]. So #math.equation(block: false, alt: "7 n equals 14 k equals 2 open parenthesis 7 k close parenthesis")[$7 n = 14 k = 2 ( 7 k )$] which is to say #math.equation(block: false, alt: "7 n")[$7 n$] is even. Therefore #math.equation(block: false, alt: "7 n")[$7 n$] is not odd. ] ] Suppose you break your piggy bank and scoop up a handful of 22 coins (pennies, nickels, dimes and quarters). + Prove that you must have at least 6 coins of a single denomination. + Suppose you have an odd number of pennies. Prove that you must have an odd number of at least one of the other types of coins. + How many coins would you need to scoop up to be sure that you either had 4 coins that were all the same or 4 coins that were all different? Prove your answer. #solutionbox[ + Suppose you only had 5 coins of each denomination. This means you have 5 pennies, 5 nickels, 5 dimes and 5 quarters. This is a total of 20 coins. But you have more than 20 coins, so you must have more than 5 of at least one type. + Suppose you have 22 coins, including #math.equation(block: false, alt: "2 k")[$2 k$] nickels, #math.equation(block: false, alt: "2 j")[$2 j$] dimes, and #math.equation(block: false, alt: "2 l")[$2 l$] quarters (so an even number of each of these three types of coins). The number of pennies you have will then be #math.equation(block: true, alt: "22 minus 2 k minus 2 j minus 2 l equals 2 open parenthesis 11 minus k minus j minus l close parenthesis")[$22 − 2 k − 2 j − 2 l = 2 ( 11 − k − j − l )$]. But this says that the number of pennies is also even (it is 2 times an integer). Thus we have established the contrapositive of the statement, “If you have an odd number of pennies then you have an odd number of at least one other coin type.” + You need 10 coins. You could have 3 pennies, 3 nickels, and 3 dimes. The 10th coin must either be a quarter, giving you 4 coins that are all different, or else a 4th penny, nickel or dime. To prove this, assume you don't have 4 coins that are all the same or all different. In particular, this says that you only have 3 coin types, and each of those types can only contain 3 coins, for a total of 9 coins, which is less than 10. ] You come across four trolls playing bridge. They declare: Troll 1: All trolls here see at least one knave. Troll 2: I see at least one troll that sees only knaves. Troll 3: Some trolls are scared of goats. Troll 4: All trolls are scared of goats. Are there any trolls that are not scared of goats? Recall, of course, that all trolls are either knights (who always tell the truth) or knaves (who always lie).