Midterm Exam Answer
Midterm Exam Answer
1.
2. How many rows appear in a truth table for each of these compound propositions?
Ans:
a) 4
b) 8
c) 64
d) 32
Ans:
Ans:
a) x=2
b) x =1
c) x =2
d) x=1
e) x=2
5. Determine the truth value of each of these statements if the domain of each variable
consists of all real numbers.
Ans:
!
a) This preposition is True because there is a real number x = √2 for that √2 = 2.
b) The preposition is False because there is no real number that 𝑥 ! = -1. The 𝑥 ! is
always positive.
c) The preposition is True 2 is bigger than 1 and 𝑥 ! is always positive so 𝑥 ! + 2 is
bigger than 1 for all real number.
d) The preposition is False because not for all of real number that make 𝑥 ! ≠ 𝑥.
For example, a real number x = 1 cannot make the statement 𝑥 ! ≠ 𝑥 true,
because 1! = 1
6. …Express
Ans:
a)
• ¬!∀𝑥(−2 < 𝑥 < 3)* = ¬(∀𝑥)¬(−2 < 𝑥 < 3) = ∃𝑥(3 ≤ 𝑥 ≤ −2)
• ∃x such that x ≤−2 or x ≥ 3
b)
• ¬!∀𝑥(0 ≤ 𝑥 < 5)* = ¬!∀𝑥) ¬(0 ≤ 𝑥 < 5)* = ∃𝑥(5 ≤ 𝑥 < 0)
• ∃x such that x < 0 or x ≥ 5
c)
d)
• ¬(∃𝑥(−5 < 𝑥 < −1)) = ¬(∃𝑥¬(−5 < 𝑥 < −1)) = ∀𝑥(−1 ≤ 𝑥 ≤ −5)
• ∀x, x ≤ −5 or x ≥ −1
7. Express
Ans:
¬( ∀𝑥∃𝑦𝑃(𝑥, 𝑦) ∨ ∀𝑥∃𝑦𝑄(𝑥, 𝑦)) = ¬( ∀𝑥∃𝑦𝑃(𝑥, 𝑦)) ∧ ¬(∀𝑥∃𝑦𝑄(𝑥, 𝑦))
= ¬∀𝑥¬∃𝑦¬𝑃(𝑥, 𝑦)) ∧ ¬∀𝑥¬∃𝑦¬𝑄(𝑥, 𝑦)
= ∃𝑥∀𝑦 ¬𝑃(𝑥, 𝑦) ∧ ∃𝑥∀𝑦¬𝑄(𝑥, 𝑦)
Ans:
If n is odd, then:
n = 2k+1
We assumed that 5n+6 is even, but we derived that it is odd. This contradiction shows that our
assumption is false, meaning if n is odd, then 5n+6 must be odd.
9.
10+31+20+14+9+27
10.
Ans: