TutorialExercisesLogic
TutorialExercisesLogic
Discrete Mathematics
Logic
Tutorial Exercises
1. Logic
2. Predicate Logic
3. Proofs
4. Set Theory
Question2 Translate into symbols the following compound statements and give the
form of the compound statement. In each case, list the statements p, q, r …
(a) If x is odd and y is odd then x + y is even.
(b) It is not both raining and hot.
(c) It is neither raining nor hot.
(d) It is raining but it is hot.
(e) −1 ≤ x ≤ 2 .
Question6
(a) Construct truth tables for the compound statements ( p ∨ ~ p ) ∧ (q ∨ r ) and
q ∨ r . What do you notice?
(b) Construct truth tables for the compound statements ( p ∧ ~ p ) ∨ (q ∧ r ) and
q ∧ r . What do you notice?
Question7 Determine which of the following statements are tautologies using the
quick method where possible.
(a) ( p ⇒ q) ∨ ( p ⇒ ~ q)
(b) ~ ( p ⇒ q ) ∨ (q ⇒ p )
(c) ( p ∧ q ) ⇒ (~ r ∨ ( p ⇒ q ))
Question8 Using Logical Equivalences and Substitution of Equivalence, write the
following expressions using only ∨ , ∧ and ~ . Further, write the expression in the
simplest form.
(a) ( p ∧ q) ⇒ r
(b) p ⇒ ( p ∨ q)
Question2 Write each of the following statements using logical quantifiers and
variables. Write down whether you think the statement is true or false.
(a) If the product of two numbers is 0, then both of the numbers are 0.
(b) Each real number is less than or equal to some integer.
(c) There is a student in WUCT121 who has never laughed at any lecturer’s
jokes.
Question3 Translate each of the following statements into the notation of predicate
logic and simplify the negation of each statement. Which statements do you think are
true?
(a) P: Someone loves everybody.
(b) P: Everybody loves everybody.
(c) P: Somebody loves somebody.
(d) P: Everybody loves somebody.
(e) P: All rational numbers are integers.
(f) P: Not all natural numbers are even.
(g) P: There exists a natural number that is not prime.
(h) P: Every triangle is a right triangle.
Question4 Are the following statements true or false? Give brief reasons why.
(a) ∀x ∈ , ( x > 1 ⇒ x > 0 )
(b) ∀x ∈ , ( x > 1 ⇒ x > 2 )
(c) (
∃ x ∈ , x > 1 ⇒ x 2 > x )
⎛ x 1⎞
(d) ∃x ∈ , ⎜⎜ x > 1 ⇒ < ⎟⎟
2
⎝ x +1 3 ⎠
(e) ∀x ∈ , ∀y ∈ , x 2 + y 2 = 9
(f) ∀x ∈ , ∃y ∈ , x 2 < y + 1
(g) ∃x ∈ , ∀y ∈ , x 2 + y 2 ≥ 0
(h) (
∃x ∈ , ∃y ∈ , x < y ⇒ x 2 < y 2 )
Question5 For each of the following statements,
(a) Write down the negation of the statement,
(b) Write down whether the statement or its negation is false, and
(c) THINK about how you would disprove it.
Question7 Write the following statements using quantifiers. Find their negations and
determine in each case whether the statement or its negation is true, giving a brief
reason
(a) P: For each real number, there is a smaller real number
(b) Q: Every real number is either positive or negative
Question8 Write down the negations of the following statements. In each case decide
whether the statement or its negation is true
(a) ∀x ∈ , x ≥ 0
(b) ∃z ∈ , ( z is odd ) ∨ ( z is even)
(c) ∃n ∈ , ( n is even ∧ n is prime)
⎛ y +1 ⎞
(d) ∀y ∈ , ⎜⎜ y ≠ 0 ⇒ < 1⎟⎟
⎝ y ⎠
(e) ∃x ∈ , ∀y ∈ , xy = 1
(f) ∀n ∈ , ∃p ∈ , n = 2 p
(g) ∀ε ∈ , ∀x ∈ , ∃y ∈ , (ε > 0 ⇒ x − y < ε )
Question9 Write down the negations of the following statements. In each case decide
whether the statement or its negation is false, giving a brief reason
(a) ∀y ∈ , ( y > −1 ⇒ y 2 > 1)
(b) ∃x ∈ , x 2 + 1 = 0
(c) ∀x, y , z ∈ , x − ( y − z ) ≠ ( x − y ) − z
(d) ∀x ∈ , ∃y ∈ , x + y = 0
Question10 Write the following statements using quantifiers. Find their negations and
determine in each case whether the statement or its negation is false, giving brief
reason where possible.
(a) P: For each natural number there is a smaller natural number.
(b) P: The square of any real number is non-negative.
(c) P: Some dogs are vegetarians.
(d) P: There is a real number that is rational.
(e) P: Every student likes at least one Mathematics subject.
Question7 Prove that for each integer n such that 1 ≤ n ≤ 10, n 2 − n + 41 is a prime
number.
1 1 1
Question11 Disprove the statement: ∀a , b ∈ , a ≠ 0, b ≠ 0, = + . Are there
a +b a b
any values for a, b that make the statement true? Explain.
Question12 Prove or disprove this statement: For all integers, a, b if a < b , then
2 2
a <b .
Question16 Prove there is a perfect square that can be written as the sum of two other
perfect squares. (Note an integer n is a perfect square if and only if ∃k ∈ , n = k 2 )
Question17 Prove that the product of two odd integers is also an odd integer
Question19 Prove that the product of any four consecutive numbers, increased by one,
is a perfect square?
Question2 Let U = .
Let A = { x ∈ : x is odd}, B = { x ∈ : x is even} and P = { x ∈ : x is prime} .
Write down the following sets:
(a) A ∪ B (f) A
(b) A ∩ B (g) P
(c) B ∩ P (h) P − A
(d) A ∪ P (i) B − P
(e) A ∩ P (j) A − B
Are A and B disjoint? Is P ⊆ A ?