Discrete Mathematics - Exercises
Discrete Mathematics - Exercises
6.
a)
b)
c)
d)
e)
32
49
128
64
None of the above
7. The converse of p q is
a) p q
b) p q
c) q p
d) q p
e) None of the above
8.
a)
b)
c)
d)
e)
0
1
2
9.
a)
b)
c)
d)
e)
The inverse of the statement If you practice well, you will win the game is:
If you dont practice well, you will win the game.
You will win the game if you practice well.
If you dont win the game, then you did not practice well.
If you win the game, then you must have practiced well.
None of the above
1. [3+5 marks]
a) Write the negation of the following statements:
i. It is neither cold nor dry.
ii. If it is rainy, then we go to the movies.
b) Show that (P Q) R and P (Q R) are logically equivalent.
2. [2+3+3 marks]
a) Consider the following predicates C(x): x is a check, T(x): x has been cashed within 30
days and V(x): x is void. Write every check is void if it has not been cashed for 30
days in terms of a quantifier and logical connectives.
b) Suppose U = {x: x is integer and 1 x 9}, A = {2, 4, 6, 8}, B = {3, 6, 9} and C = {3, 4,
5, 6, 7}. Find
i. C (B A).
ii. A B C .
c) Show that ( B A) (C A) ( B C) A .
3. [3+5 Marks]
a) Determine whether each of the following is TRUE or False:
i.
ii. 3 > 5 is sufficient for 1 + 1 = 2.
{a, b} P A .
P A 8 .
vii. A A .
viii. P A A 9 .
vi.
5.
a. [51 Marks] Determine whether each of the following is TRUE or FALE:
i. If (1 + 1 = 3), then (1 > 2 or 1 + 2 = 4).
ii. (21 mod 4 = 2) and (4 | 16).
iii.
x3 2 x x
iv.
, domain is the set of integers.
v. 1100 0011 1111 .
b. [5 Marks] Using the truth table, determine whether the propositions
6.
xx 2 4 x 3 0 where x is an integer.
p t s where p and s are true and t is false.
7.
(a) (6 marks) Consider the universal set U= {x | x is an integer: 1 x 10 } and the subsets
A, B, and C defined by:
A= x U | x is a prime number
B= x U | x is a power of 2
C= {3,6,9}
(i)
Write A and B in roster notation.
(ii)
(iii)
Find A B C , B A , and C A B .
Find the set D with a bit string representation: 0011101110
A B {1,5}
A {2,6,7,8,10}
B {2,3,9,10} (Hint: Use a Venn Diagram)
(ii)
xy( x y)
(ii)
((x 3) ( y 4))