← Back To Notes↑ Back To Top

Discrete Math Practice

GitHub Changelog -

  • 1

0 of 27 completed

Create worksheet

Selected problems

No problems selected.

    Direct

    1.1Negate a Universal Implication

    Exam I | Problem 1.1 |

    Write the negation of the statement:

    $$ \forall n \in \mathbb{Z},\ n \text{ prime } \to n \text{ odd} $$

    1.2Write the Contrapositive

    Exam I | Problem 1.2 |

    Write the contrapositive of the statement:

    $$ \text{If } n \text{ is divisible by } 4,\text{ then } n \text{ is even.} $$

    1.3Use De Morgan's Law

    Exam I | Problem 1.3 |

    Simplify the negation:

    $$ \neg (p \lor q) $$

    1.4Compute a Set Union and Intersection

    Exam I | Problem 1.4 |

    Let

    $$ A = \{1,2,3,5\} \quad \text{and} \quad B = \{3,4,5,6\}. $$

    Find $A \cap B$ and $A \cup B$.

    1.5Count the Subsets of a Set

    Exam I | Problem 1.5 |

    If a set $A$ has $4$ elements, how many subsets does $A$ have?

    1.6Classify a Function

    Exam I | Problem 1.6 |

    Let $f : \{1,2,3\} \to \{a,b\}$ be defined by

    $$ f(1)=a,\quad f(2)=b,\quad f(3)=a. $$

    Is $f$ injective, surjective, both, or neither?

    1.7Find the Size of a Cartesian Product

    Exam I | Problem 1.7 |

    If $|A| = 3$ and $|B| = 7$, how many ordered pairs are in $A \times B$?

    1.8Check a Partial Order

    Exam I | Problem 1.8 |

    Let

    $$ R = \{(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)\} $$

    be a relation on $\{1,2,3\}$. Is $R$ a partial order?

    1.9Solve a Congruence Modulo 5

    Exam I | Problem 1.9 |

    Solve for $x$:

    $$ 2x \equiv 1 \pmod 5 $$

    1.10Count the Edges in a Tree

    Exam I | Problem 1.10 |

    A tree has $14$ vertices. How many edges does it have?

    Integrated

    2.1Negate a Quantified Statement

    Exam II | Problem 2.1 |

    Write the negation of:

    $$ \forall n \in \mathbb{Z},\ n \text{ even } \to n^2 \text{ even} $$

    2.2Use Congruence Modulo 4

    Consider the relation on integers defined by

    $$ a \sim b \iff a \equiv b \pmod 4. $$

    Explain why this is an equivalence relation, and describe the equivalence class of $7$.

    2.3Prove a Divisibility Claim by Contrapositive

    Exam II | Problem 2.3 |

    Prove that if $n^2$ is even, then $n$ is even.

    2.4Prove a Summation Formula by Induction

    Exam II | Problem 2.4 |

    Use mathematical induction to prove that

    $$ 1 + 2 + \cdots + n = \frac{n(n+1)}{2} $$

    for all $n \ge 1$.

    2.5Count Committees with a Required Member

    Exam II | Problem 2.5 |

    From a group of $8$ students, how many $3$-person committees can be formed if one specific student must be included?

    2.6Compute a Conditional Probability

    Exam II | Problem 2.6 |

    In a club of $12$ students, $7$ are in math club and $4$ are in both math club and robotics club.

    If a student is known to be in math club, what is the probability that the student is also in robotics club?

    2.7Apply the Euclidean Algorithm

    Find $\gcd(252,198)$.

    2.8Compare Two Growth Rates

    Exam II | Problem 2.8 |

    Which grows faster as $n$ becomes large: $n \log n$ or $n^2$?

    Applied

    3.1Count Committees with a Restriction

    Final | Problem 3.1 |

    A school needs a $4$-person committee from $10$ students. Two students are the team captains, and the committee must include at least one captain.

    How many committees are possible?

    3.2Apply the Pigeonhole Principle

    Final | Problem 3.2 |

    What is the smallest number of students needed to guarantee that at least $3$ students were born in the same month?

    3.3Find the Expected Value of a Simple Game

    Final | Problem 3.3 |

    A fair die is rolled. You win \$5 if the result is even and lose \$2 if the result is odd. What is the expected value of the game?

    3.4Use Modular Arithmetic on a Calendar

    Final | Problem 3.4 |

    Today is Wednesday. What day of the week will it be $100$ days from now?

    3.5Solve a Geometric Recurrence

    Final | Problem 3.5 |

    A bacteria culture starts with $2$ bacteria and triples each hour.

    If $a_n$ is the number of bacteria after $n$ hours, find a formula for $a_n$ and compute $a_4$.

    Challenge

    4.1Prove Prime Factorization by Strong Induction

    Prove that every integer $n \ge 2$ can be written as a product of primes.

    4.2Count Multiples with Inclusion-Exclusion

    Final | Problem 4.2 |

    How many integers from $1$ to $100$ are divisible by $2$, $3$, or $5$?

    4.3Use Degrees to Test a Tree

    Final | Problem 4.3 |

    A connected graph has $6$ vertices with degree sequence

    $$ 3,3,2,2,1,1. $$

    Use the handshaking lemma to find the number of edges, then decide whether the graph can be a tree.

    4.4Verify a Loop Invariant

    Consider the algorithm:

    total = 0
    for k from 1 to n:
        total = total + k

    State a loop invariant and use it to explain why the algorithm returns

    $$ 1 + 2 + \cdots + n. $$