Skip to content
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
∑ NumeriveMATH
LearningExamsFamily
Make learning comfortable
Changing style, motion, or reading speed keeps your current question, answers, homework, and saved progress. The school band still chooses your task layout. Saved to your learner profile across devices. All lessons and help stay available.
← Discrete Mathematics levels

Discrete Mathematics / LEVEL 1 · DIFFICULTY 4/5

Discrete Mathematics

Read the prerequisite, study a worked example and justify each step in these selected university topics.

2 stages · 16 practice problems · two 4-question assessment forms

Choose a node to explore its lesson.

  1. 1MINI QUEST UDIS 1.1Logic, Sets & RelationsRead the lesson
  2. 2MINI QUEST UDIS 1.2Graphs, Trees & Discrete ModelsRead the lesson
  3. LEVEL CHECKCastle challenge

    4 questions across this level.

    Sign in for the level check →

STAGE UDIS 1.1 · 8 PRACTICE PROBLEMS · 4 NEW-CONTEXT APPLICATIONS

Logic, Sets & Relations

Useful preparation: Product Rule

Open this topic in the university library →

Meaning & notationConditions before calculationWhy the method worksWorked examplesPitfalls & counterexamplesCheck your understanding

For a long equation, swipe sideways inside its formula box to see every term.

Meaning & notation

“Every input has a suitable output” permits different outputs for different inputs; “one output works for every input” does not. Logic makes this distinction precise.

Predicate and quantifier
A predicate P(x) becomes a statement when its variable is specified or quantified. The symbols ∀ and ∃ mean “for every” and “there exists”; the domain determines the allowed choices.
Sets and membership
A union contains elements in either set, an intersection contains elements in both, and A⊆B means every member of A belongs to B.
Relation and equivalence class
A relation R on A is a subset of A×A\displaystyle A \times AA×A. Write xRy for membership of the pair. An equivalence class [x] collects all elements related to x.

Conditions before calculation

  • State every variable’s domain and preserve the order of nested quantifiers. A later existential choice may depend on earlier universally chosen variables.
  • An equivalence relation must be reflexive, symmetric, and transitive on the entire declared set.
  • A partial order instead requires reflexivity, antisymmetry, and transitivity. Antisymmetry permits mutual relatedness only for equal elements.

Why the method works

1. Negate from outside inward

To refute a universal assertion, supply one failing input. To refute an existential assertion, rule out every allowed witness. Repeating these rules handles nested statements.

¬(∀x ∃y P(x,y))  ⟺  ∃x ∀y ¬P(x,y)\neg(\forall x\,\exists y\,P(x,y))\iff\exists x\,\forall y\,\neg P(x,y)¬(∀x∃yP(x,y))⟺∃x∀y¬P(x,y)

2. Translate implication accurately

The implication P⇒Q\displaystyle P \Rightarrow QP⇒Q rules out a true premise with a false conclusion. Its contrapositive describes exactly the same forbidden situation; its converse generally describes something else.

(P⇒Q)  ⟺  (¬Q⇒¬P)(P\Rightarrow Q)\iff(\neg Q\Rightarrow\neg P)(P⇒Q)⟺(¬Q⇒¬P)

3. Explain why classes partition

Reflexivity places each element in its own class. If two classes overlap, symmetry and transitivity transfer membership between them, so they coincide rather than overlap partially.

Worked examples

EXAMPLE 1

Compare “for every integer n, some integer m exceeds n” with the reversed quantifier order.

  1. Choose an arbitrary integer n. The expression m=n+2\displaystyle m = n + 2m=n+2 is an allowed integer witness.

  2. This witness exceeds n, proving the first statement without selecting a special input.

  3. For the reversed claim, any proposed fixed m fails at n=m\displaystyle n = mn=m. Thus no single witness works for all integers.

Conclusion: The first claim is true; the reversed claim is false.

EXAMPLE 2

On the integers, define aRb when 5 divides a−b\displaystyle a - ba−b. Verify equivalence and identify [2].

  1. The difference a−a\displaystyle a - aa−a is zero, a multiple of 5, so reflexivity holds.

  2. Negating a multiple of 5 gives another multiple, proving symmetry.

  3. If a−b=5 u\displaystyle a - b = 5\, ua−b=5u and b−c=5 v\displaystyle b - c = 5\, vb−c=5v, add them; u+v\displaystyle u + vu+v is an integer.

    a−c=5(u+v)a-c=5(u+v)a−c=5(u+v)
  4. All and only integers differing from 2 by a multiple of 5 belong to its class.

    [2]={2+5k:k∈Z}[2]=\{2+5k:k\in\mathbb Z\}[2]={2+5k:k∈Z}

Conclusion: The relation partitions the integers into five remainder classes.

Pitfalls & counterexamples

Tempting claim: Symmetric and antisymmetric mean the same thing.

Correction: Symmetry requires the reverse pair; antisymmetry restricts when both directions can occur.

Test the claim: The relation ≤ on integers is antisymmetric, but 2≤5\displaystyle 2 \le 52≤5 does not imply 5≤2\displaystyle 5 \le 25≤2.

Check your understanding

Negate: for every real x, there exists a real y with y>x\displaystyle y > xy>x.

Write a reason before opening the explanation. This reflection is not graded or saved.

Compare your reasoning

There exists a real x such that every real y satisfies y≤x\displaystyle y \le xy≤x.

Switch both quantifiers and negate the strict inequality. Keep their order.

The idea to remember

An implication is false only when its premise is true and conclusion false. Its contrapositive is logically equivalent.

Remember with 2 flashcards →

Connect this idea

Equivalence classes lead to modular arithmetic and quotient structures. Quantifier order also distinguishes pointwise convergence from uniform convergence.

Practise this topic →Review concept flashcards

Reference reading

Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.

  • Oscar Levin, Discrete Mathematics: Mathematical Statements
  • Oscar Levin, Discrete Mathematics: Rules of Logic
  • Oscar Levin, Discrete Mathematics: Relations and Graphs
Discuss together

This is targeted topic practice in logic, sets & relations. Ask for the reasoning and conditions, then compare independent solves, hint use and application attempts. Automatic checks assess the requested answer or proof step, not a complete written proof or university course completion.

Preview the eight practice prompts
  1. Problem 1

    For the implication “if n is divisible by 4, then n is divisible by 2,” which equivalent form is the contrapositive? Enter 1 for “if not divisible by 2, then not divisible by 4”, or 2 for the converse.

    Practise this exact problem →
  2. Problem 2

    Two finite sets have sizes 6 and 8, with intersection size 2. Find their union size.

    Practise this exact problem →
  3. Problem 3

    On the integers a~b when a−b\displaystyle a - ba−b is divisible by 3. How many equivalence classes are there?

    Practise this exact problem →
  4. Problem 4

    Consider the claim “every integer n is less than 4.” Which negates it? Enter 1 for “some integer n is at least 4”, 2 for “every integer n is at least 4”.

    Practise this exact problem →
  5. Problem 5New context

    A rule says “if n is divisible by 6, then n is divisible by 3,” which equivalent form is the contrapositive? Enter 1 for “if not divisible by 3, then not divisible by 6”, or 2 for the converse.

    Practise this exact problem →
  6. Problem 6New context

    Two membership lists have sizes 7 and 9, with intersection size 3. Find their union size.

    Practise this exact problem →
  7. Problem 7New context

    An integer classification uses a~b when a−b\displaystyle a - ba−b is divisible by 4. How many equivalence classes are there?

    Practise this exact problem →
  8. Problem 8New context

    A program specification claims “every integer n is less than 5.” Which negates it? Enter 1 for “some integer n is at least 5”, 2 for “every integer n is at least 5”.

    Practise this exact problem →
Open stage UDIS 1.1 in the student workspace →

STAGE UDIS 1.2 · 8 PRACTICE PROBLEMS · 4 NEW-CONTEXT APPLICATIONS

Graphs, Trees & Discrete Models

Useful preparation: Logic, Sets & Relations

Open this topic in the university library →

Meaning & notationConditions before calculationWhy the method worksWorked examplesPitfalls & counterexamplesCheck your understanding

For a long equation, swipe sideways inside its formula box to see every term.

Meaning & notation

Graphs retain connections rather than physical distances. Counting edges and degrees can reveal impossible routes before drawing them.

Finite simple undirected graph
G=(V,E)\displaystyle G = \left(V, E\right)G=(V,E) has finitely many vertices and unordered edges between distinct vertices, without loops or repeated edges. Degree counts the edges incident to a vertex.
Path, cycle, and tree
A path has no repeated vertices. A cycle returns to its initial vertex without other repetition. A tree is a connected graph with no cycles.
Euler trail
An Euler trail uses every edge exactly once and may revisit vertices. It is an Euler circuit when it ends where it starts; a Hamilton path instead visits every vertex once.

Conditions before calculation

  • Tree edge counts here concern finite nonempty graphs. Having ∣V∣−1\displaystyle \left|V\right| - 1∣V∣−1 edges characterizes a tree only when connectivity is also known.
  • For an undirected graph with at least one edge, all vertices of positive degree must lie in one connected component for an Euler trail to exist.
  • Under that connectivity condition, zero odd-degree vertices permit a circuit; exactly two permit an open Euler trail. More than two prevent either.

Why the method works

1. Count every edge twice

Each undirected edge has two endpoints, so summing degrees counts it twice. Consequently the number of odd-degree vertices is even.

∑v∈Vdeg⁡(v)=2∣E∣\sum_{v\in V}\deg(v)=2|E|v∈V∑​deg(v)=2∣E∣

2. Understand tree rigidity

A tree has a unique path between two vertices: two different paths would create a cycle. Removing a leaf removes one vertex and one edge, reducing the edge formula to a smaller tree.

∣E∣=∣V∣−1|E|=|V|-1∣E∣=∣V∣−1

3. Pair arrivals with departures

At every internal visit of an Euler trail, one unused edge brings the route in and another takes it out. Only distinct starting and ending vertices can have unpaired incidences.

Worked examples

EXAMPLE 1

A graph has vertices A,B,C,D,E and edges AB, BC, CD, DA, AC, CE. Find an Euler trail.

  1. Its degrees are 3,2,4,2,1 respectively. Their sum is 12, confirming that there are six edges.

  2. All vertices are connected; A and E are the only odd-degree vertices, so an open trail must start and end there.

  3. The route E,C,B,A,D,C,A uses EC, CB, BA, AD, DC, CA once each, verifying existence directly.

Conclusion: An Euler trail runs from E to A; no Euler circuit exists.

EXAMPLE 2

A tree has edges AB, AC, BD, BE, CF, CG. Add the new edge DE. Describe the resulting cycle.

  1. The seven vertices are connected by six edges, and the branching structure has no cycle.

  2. The original unique path from D to E is D,B,E. The added edge closes precisely that path.

  3. Deleting DE restores a tree, so every cycle would have to use DE. Uniqueness of the original path leaves only D,B,E,D.

Conclusion: Exactly one cycle is created, with three edges.

Pitfalls & counterexamples

Tempting claim: Any graph with one fewer edge than vertices is a tree.

Correction: The count must be accompanied by connectivity.

Test the claim: A triangle plus an isolated vertex has four vertices and three edges, but is disconnected and contains a cycle.

Check your understanding

If edge AE is added to the first example, can the new graph have an Euler circuit?

Write a reason before opening the explanation. This reflection is not graded or saved.

Compare your reasoning

Yes.

A and E both become even-degree vertices. The graph remains connected and now all degrees are even.

The idea to remember

A finite tree is connected and has no cycle; with n vertices it has n−1\displaystyle n - 1n−1 edges.

Remember with 2 flashcards →

Connect this idea

Degree sums use double counting. Tree arguments invite induction; connectivity converts local degree information into global route guarantees.

Practise this topic →Review concept flashcards

Reference reading

Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.

  • Oscar Levin, Discrete Mathematics: Trees
  • Oscar Levin, Discrete Mathematics: Euler Trails and Circuits
Discuss together

This is targeted topic practice in graphs, trees & discrete models. Ask for the reasoning and conditions, then compare independent solves, hint use and application attempts. Automatic checks assess the requested answer or proof step, not a complete written proof or university course completion.

Preview the eight practice prompts
  1. Problem 1

    A graph has total degree 14. How many edges does it have?

    Practise this exact problem →
  2. Problem 2

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

    Practise this exact problem →
  3. Problem 3

    A connected graph has 8 vertices, exactly 4 of odd degree. Can a single trail use every edge once? Enter 1 for yes or 0 for no.

    Practise this exact problem →
  4. Problem 4

    A tree has 6 vertices. One new edge is added between two previously nonadjacent vertices. How many independent cycles result?

    Practise this exact problem →
  5. Problem 5New context

    A network has total degree 16. How many edges does it have?

    Practise this exact problem →
  6. Problem 6New context

    A tree-shaped communication network has 10 vertices. How many edges does it have?

    Practise this exact problem →
  7. Problem 7New context

    A connected route network has 9 vertices, exactly 4 of odd degree. Can a single trail use every edge once? Enter 1 for yes or 0 for no.

    Practise this exact problem →
  8. Problem 8New context

    A connected tree network has 7 vertices. One new edge is added between two previously nonadjacent vertices. How many independent cycles result?

    Practise this exact problem →
Open stage UDIS 1.2 in the student workspace →
Browse another level →
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
Discrete Mathematics: lessons and practice | Numerive Math