Certainly! Below is a 20-question college-level discrete mathematics exam covering a variety of typical topics such as logic, set theory, combinatorics, graph theory, number theory, relations, functions, and proofs.
Discrete Mathematics Exam
Instructions: Answer all questions. Show all your work clearly. Partial credit may be awarded.
Logic and Proofs
-
(5 points) Prove or disprove: For all integers ( n ), if ( n^2 ) is even, then ( n ) is even.
-
(5 points) Use truth tables to determine whether the following statement is a tautology, contradiction, or contingency:
[
(p \rightarrow q) \leftrightarrow (\neg q \rightarrow \neg p)
]
-
(5 points) Write the negation of the statement:
"For every real number ( x ), there exists a real number ( y ) such that ( y > x )."
Set Theory
-
(5 points) Let ( A = {1, 2, 3, 4} ), ( B = {3, 4, 5, 6} ), and ( C = {1, 6, 7} ). Find:
[
(A \cup B) \cap C^c
]
where ( C^c ) is the complement of ( C ) with respect to the universal set ( U = {1,2,3,4,5,6,7,8} ).
-
(5 points) Prove that for any sets ( A ) and ( B ),
[
A \setminus (A \setminus B) = A \cap B.
]
Functions and Relations
-
(5 points) Define a function ( f: \mathbb{Z} \to \mathbb{Z} ) by ( f(x) = 3x + 2 ). Is ( f ) injective? Is it surjective? Justify your answers.
-
(5 points) Let ( R ) be a relation on the set ( {1,2,3} ) defined by ( R = {(1,1), (2,2), (3,3), (1,2), (2,3)} ). Is ( R ) reflexive, symmetric, antisymmetric, and/or transitive? Explain.
Combinatorics
-
(5 points) How many 5-letter strings can be formed from the letters ( {A, B, C, D, E} ) if repetition is allowed and the string must contain at least one ( A )?
-
(5 points) From a group of 10 people, how many ways can you select a committee of 4 people if two particular people refuse to serve together?
Number Theory
-
(5 points) Find the greatest common divisor (gcd) of 252 and 198 using the Euclidean algorithm.
-
(5 points) Prove that if ( a \equiv b \pmod{m} ) and ( c \equiv d \pmod{m} ), then ( a + c \equiv b + d \pmod{m} ).
Graph Theory
-
(5 points) Define a simple graph with 6 vertices and 10 edges. What is the maximum possible number of edges in a simple graph with 6 vertices? Is your graph complete?
-
(5 points) Prove or disprove: Every tree with ( n ) vertices has exactly ( n-1 ) edges.
Recurrence Relations and Algorithms
-
(5 points) Solve the recurrence relation:
[
a_n = 3a_{n-1} - 2, \quad a_0 = 4.
]
-
(5 points) Describe the time complexity of the binary search algorithm on a sorted array of size ( n ).
Advanced Topics
-
(5 points) Let ( G = (V, E) ) be a bipartite graph. Prove that ( G ) contains no odd-length cycles.
-
(5 points) Show that the set of all rational numbers ( \mathbb{Q} ) is countable.
-
(5 points) Define a partial order on the set of all subsets of ( {1,2,3} ) by set inclusion. Draw the Hasse diagram.
-
(5 points) Prove that the power set of a finite set with ( n ) elements has ( 2^n ) elements.
-
(5 points) Use mathematical induction to prove that for all ( n \geq 1 ),
[
1 + 2 + 3 + \cdots + n = \frac{n(n+1)}{2}.
]
End of Exam
If you want, I can also provide solutions or hints for any of these questions!