Skip to content

Discrete Mathematics final exam review

The topics, worked on a live board with an AI tutor.

Units

  1. Logic

    • Propositions and truth tables
    • Logical equivalence
    • Predicates and quantifiers

    Practice

    Give the truth values of ¬p, p ∧ q and p ∨ q when p is true and q is false.Answer

    F, F, T

    Hint: Use the row TF

    Is p ∨ (p ∧ q) equivalent to p? Compare columns over TT, TF, FT, FF.Answer

    Yes; both columns read T, T, F, F

    Hint: p ∧ q reads T, F, F, F

  2. Methods of proof

    • Direct proof
    • Contrapositive and contradiction

    Practice

    Prove that the sum of two odd integers is even; write the key line.Answer

    m = 2a + 1, n = 2b + 1, so m + n = 2a + 2b + 2 = 2(a + b + 1), which is even

    Hint: Write both numbers with the definition of odd

    State the contrapositive of "if n² is divisible by 3, then n is divisible by 3".Answer

    If n is not divisible by 3, then n² is not divisible by 3

    Hint: Swap and negate both parts

  3. Induction and recursion

    • Mathematical induction
    • Strong induction
    • Recursive definitions

    Practice

    Explain in two sentences why the base case alone does not prove P(n) for all n, and why the step alone does not either.Answer

    The base case gives only P(1); the step only passes truth along, so if no statement is true to begin with, nothing is proved

    Hint: Use the dominoes

    Write the factor tree of 84 and say which earlier cases a proof by strong induction would use.Answer

    84 = 4 · 21 = (2 · 2)(3 · 7); the earlier cases are 4 and 21 and then 2, 2, 3, 7

    Hint: Split into any two factors greater than 1

  4. Sets, functions and relations

    • Sets and set operations
    • Functions
    • Relations

    Practice

    Write {1, 4, 9} in set-builder notation using U = {1, ..., 10}.Answer

    {x ∈ U : x is a perfect square}

    Hint: What do 1, 4 and 9 share?

    Write f as a set of ordered pairs.Answer

    {(1, a), (2, b), (3, b), (4, d)}

    Hint: One pair per arrow

  5. Counting

    What exams ask

    Lottery odds, poker probabilities, the number of possible teams or test schedules, and the number of bit strings with a given weight all come down to choosing r items from n with or without order.

    • The product and sum rules
    • Permutations and combinations
    • The binomial theorem and Pascal's triangle
    • The pigeonhole principle
    • Inclusion and exclusion

    Practice

    How many one-to-one functions are there from {1, 2, 3} to {a, b, c, d, e}?Answer

    5 · 4 · 3 = 60

    Hint: The image of 2 must differ from the image of 1

    How many 3-letter strings with no repeated letter can be made from A, B, C, D, E?Answer

    P(5, 3) = 5 · 4 · 3 = 60

    Hint: Three slots

  6. Number theory

    • Divisibility and primes
    • The Euclidean algorithm
    • Modular arithmetic
    • Public-key cryptography

    Practice

    Write 200 = q · 13 + r with 0 ≤ r < 13, and decide whether 13 | 200.Answer

    200 = 15 · 13 + 5; 13 does not divide 200

    Hint: 15 · 13 = 195

    Find gcd(1071, 462) by the Euclidean algorithm.Answer

    21: 1071 = 2 · 462 + 147, 462 = 3 · 147 + 21, 147 = 7 · 21 + 0

    Hint: The last nonzero remainder

  7. Recurrence relations

    • Modelling with recurrences
    • Solving linear recurrences

    Practice

    Iterate aₙ = 3aₙ₋₁ + 2 with a₀ = 1, guess a closed form and check it for n = 3.Answer

    1, 5, 17, 53; aₙ = 2 · 3ⁿ − 1, and 2 · 27 − 1 = 53

    Hint: Add 1 to each term

    Solve aₙ = 5aₙ₋₁ − 6aₙ₋₂ with a₀ = 1, a₁ = 4.Answer

    aₙ = 2 · 3ⁿ − 2ⁿ

    Hint: Roots 2 and 3; α + β = 1 and 2α + 3β = 4

  8. Graphs and trees

    What exams ask

    A map, an exam timetable and a radio-frequency plan are all graphs.

    • Graphs and degrees
    • Paths, Euler circuits and Hamilton cycles
    • Trees
    • Planar graphs and colouring

    Practice

    A graph has vertices {1,2,3,4} and edges {12, 23, 34, 41, 13}. How many edges, and is it simple?Answer

    5 edges, yes simple

    Hint: Check for loops and repeats, then count the pairs listed

    Is the route A–C–D–B–A (one A–C bridge, then C–D, D–B, and one A–B bridge) a path, a circuit, both or neither?Answer

    a circuit only: it uses 4 distinct edges and returns to A, but A is repeated so it is not a path

    Hint: Check whether the start vertex appears twice

Questions

What does the Discrete Mathematics review cover?

Every unit of the course, 8 in all. Pick one and Helio teaches it on the board, then asks you questions. Logic; Methods of proof; Induction and recursion; Sets, functions and relations; Counting; Number theory; Recurrence relations; Graphs and trees.

Can it help the week before my final?

Yes. Pick a topic, and Helio explains it, checks you and goes over what you miss.

Is it the same as my class?

It follows the usual topics of Discrete Mathematics. For anything else on your syllabus, type the topic and Helio teaches that too.

How much is free?

30 minutes a month for one learner, with no card. Starter is free for 7 days with a card: cancel in time and pay nothing.

A tutor you can talk to

30 minutes every month. No card.