
DISCRETE MATHEMATICS - SAMPLE EXAM QUESTIONS
1. Using truth tables decide whether each of the following is a tautology:
(a) (pāq)ā(qāp),
(b) (pāq)ā(pā§q),
(c) (pāØq)ā(pā§q),
(d) ((pāØq)ā§r)ā((pā§r)āØ(qā§r)).
2. For each of the following sentences, negate the sentence, and say whether the sentence or
its negation is true:
(a) āxāZ,āyāZ,(x>y)ā(x6=y),
(b) āxāZ,āyāZ,āzāZ, z2=x2+y2.
3. Let A={1,2,3}. For each of the following relations decide if it is symmetric, transitive
or reflexive
(a) R={(1,1),(2,2),(2,1),(1,2)},
(b) R={(1,1),(2,2),(3,3),(1,2)}.
4. For each of the following relations Ron Z, determine whether the relation is reflexive,
symmetric or transitive, and specify the equivalence classes if Ris an equivalence relation
on Z:
(a) (a, b)ā R if adivides b,
(b) (a, b)ā R if a2=b2.
5. Let A={1,2,4,5,7,11,13}. Define a relation Ron Aby writing (x, y)ā R if and only if
xāyis a multiple of 3.
(a) Show that Ris an equivalence relation on A.
(b) How many equivalence classes of Rare there?
6. Find whether the following yield functions from Nto N, and if so, whether they are one-
to-one, onto or both. Find also the inverse function if the function is one-to-one and onto:
(a) y=x2,
(b) y=


x+ 1,if xis odd,
xā1,if xis even,
.
7. Suppose that the set Acontains 5 elements and the set Bcontains 2 elements.
(a) How many different functions f:AāBcan one define?
(b) How many of the functions in part (a) are not onto?
(c) How many of the functions in part (a) are not one-to-one?
8. Suppose that the set Acontains 2 elements and the set Bcontains 5 elements.
(a) How many of the functions f:AāBare not onto?
(b) How many of the functions f:AāBare not one-to-one?
9. Suppose that aāNand bāZ. Proof that there exist unique q, r āZsuch that b=aq +r
and 0 ¬r < a.