CPSC 121 Study Guide - Midterm Guide: First-Order Logic, Contraposition, Natural Number

83 views5 pages
24 Oct 2018
School
Course
Professor
lillyzuxian and 39077 others unlocked
CPSC 121 Full Course Notes
38
CPSC 121 Full Course Notes
Verified Note
38 documents

Document Summary

For any integer n, if 2n 1 is a prime, then n is also prime. Prime(x) which is true when x is a prime. Solution : n z, prime(2n 1) prime(n). Suppose that you decide to prove this theorem using a direct proof. Solution : you would consider an unspeci ed integer n, and assume that 2n 1 is prime. You would need to prove that n is prime. [4] c. suppose that you decide to prove this theorem using a proof by contrapositive. Solution : you would consider an unspeci ed integer n, and assume that n is not prime. You would need to prove that 2n 1 is not prime. [4] d. suppose that you decide to prove this theorem using a proof by contradiction. Write down what you would assume and what you would need to show. Solution : you would assume that some integer n is not prime, but that 2n 1 is prime.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents