From the course: Programming Foundations: Discrete Mathematics
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Write a proof
From the course: Programming Foundations: Discrete Mathematics
Solution: Write a proof
- [Voiceover] How did you make out with the proof challenges? I'd like to go over my solution. The first proof said if three x plus five is an odd number, then x has to be an even integer. So for this example, we let x equal two k which our definition of even numbers. We substitute two k in for x and we get three times two k plus five which is six k plus five. Now here's the tricky part. Remember five is the same thing as four plus one. So I'm gonna replace five and I get six k plus four plus one. Now I can factor it two out of the six k plus four and now I get two times a quantity three k plus two plus one. And remember, integers are close under addition. So that means three k plus two is an integer and two times an integer plus one is an odd number. So the original proof holds. The next proof says, "If the square of an integer x is even, "then x is even." This one might be easier to approach using the contrapositive. Remember the contrapositive is logically equivalent to the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Write a general outline for a proof4m 48s
-
(Locked)
Write subset proofs3m 12s
-
(Locked)
Evaluate conditional proofs8m 54s
-
(Locked)
Understand biconditional proofs4m 14s
-
(Locked)
Prove with mathematical induction10m 40s
-
(Locked)
Challenge: Write a proof49s
-
(Locked)
Solution: Write a proof4m 23s
-
(Locked)
-
-