Discrete Mathematics & Math MCQ
Test your Discrete Mathematics & Math knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.
How This Practice Test Works
Every question below expands right on this page — click a question to reveal its four options, pick the one you think is correct, and you'll get instant feedback along with the correct answer and a short explanation of the reasoning. Questions are grouped by difficulty, so start with the 40 beginner questions to confirm your fundamentals, work through the 40 intermediate ones, and finish with the 20 advanced questions that mirror what exams and technical screenings actually ask. There's no sign-up, no timer, and no limit — retake the test as often as you like.
Curated by Tech Baithak Editorial Team · Last updated: June 2026
1
What is a set?
Correct Answer
A well-defined, unordered collection of distinct objects
Explanation
A set is an unordered collection of distinct objects (elements). {1,2,3} = {3,1,2}. Sets are defined by membership; the empty set ∅ has no elements.
2
What is the power set of {1,2}?
Correct Answer
{∅, {1}, {2}, {1,2}}
Explanation
The power set P(S) is the set of all subsets of S including ∅ and S itself. For S={1,2}: P(S) = {∅, {1}, {2}, {1,2}}. |P(S)| = 2^|S| = 4.
3
What is a proposition in logic?
Correct Answer
A declarative statement that is either true or false, not both
Explanation
A proposition (statement) has a definite truth value (T or F). "2+2=4" is a proposition (T). "What time is it?" is not (it's a question). Compound propositions use connectives (∧, ∨, ¬, →, ↔).
4
What is the truth value of p ∧ q when p=T and q=F?
Correct Answer
False
Explanation
p ∧ q (p AND q) is true only when both p and q are true. If either is false, the conjunction is false. Truth table: T∧T=T, T∧F=F, F∧T=F, F∧F=F.
5
What is De Morgan's Law?
Correct Answer
¬(p∧q) ≡ ¬p ∨ ¬q and ¬(p∨q) ≡ ¬p ∧ ¬q
Explanation
De Morgan's Laws: NOT(A AND B) = (NOT A) OR (NOT B); NOT(A OR B) = (NOT A) AND (NOT B). Fundamental for circuit design and logical simplification.
6
What is a function in mathematics?
Correct Answer
A set of input-output pairs where every input maps to exactly one output
Explanation
A function f: A→B assigns to each element in A exactly one element in B. Domain (A), codomain (B), range (actual outputs). f(x)=x² is a function; ±√x is not a function (one input, two outputs).
7
What is the difference between injective (one-to-one) and surjective (onto) functions?
Correct Answer
Injective: different inputs give different outputs; Surjective: every codomain element has at least one preimage
Explanation
Injective (1-to-1): f(a)=f(b)→a=b (no two inputs share output). Surjective (onto): range = codomain (every y has an x with f(x)=y). Bijective: both — enables invertibility.
8
What is mathematical induction?
Correct Answer
A proof technique proving a base case, then showing if it holds for n it holds for n+1, establishing truth for all natural numbers
Explanation
Strong induction: prove P(1) (base), then assume P(k) for all k≤n and prove P(n+1). Used to prove formulas like 1+2+...+n = n(n+1)/2 and properties of recursively defined sequences.
9
What is a graph in discrete mathematics?
Correct Answer
A mathematical structure G=(V,E) consisting of vertices (V) and edges (E) connecting pairs of vertices
Explanation
Graphs model relationships: vertices are entities, edges are connections. Simple graphs: no self-loops or multi-edges. Directed graphs (digraphs): edges have direction. Applications: social networks, routing, scheduling.
10
What is a tree in graph theory?
Correct Answer
A connected, undirected graph with no cycles — equivalently, a connected graph with n-1 edges for n vertices
Explanation
Trees are minimally connected graphs. Any two vertices are connected by exactly one path. Rooted trees have a designated root with parent-child relationships. Spanning trees connect all vertices of a graph.
11
What is a relation?
Correct Answer
A subset of the Cartesian product A×B defining how elements of A relate to elements of B
Explanation
Relations generalize functions. R ⊆ A×B: (a,b) ∈ R means a relates to b. Properties: reflexive (aRa), symmetric (aRb→bRa), transitive (aRb∧bRc→aRc), antisymmetric (aRb∧bRa→a=b).
12
What is an equivalence relation?
Correct Answer
A relation that is reflexive, symmetric, and transitive — partitioning the set into equivalence classes
Explanation
Equivalence relations (=, ≡ mod n, "same parity") partition a set into disjoint equivalence classes. Every element belongs to exactly one class. Modular arithmetic partitions integers into n residue classes.
13
What is the Pigeonhole Principle?
Correct Answer
If n+1 items are placed in n containers, at least one container must hold more than one item
Explanation
Pigeonhole: with n+1 objects in n boxes, at least one box has 2+ objects. Generalized: n objects in k boxes → some box has ≥ ⌈n/k⌉ objects. Application: among 367 people, at least two share a birthday.
14
What is a permutation?
Correct Answer
An ordered arrangement of items from a set — P(n,r) = n!/(n-r)!
Explanation
P(n,r) = n!/(n-r)! counts ordered arrangements of r items from n. Arranging 3 of 5 people in a line: P(5,3) = 60. Order matters: ABC ≠ CBA.
15
What is a combination?
Correct Answer
An unordered selection of r items from n: C(n,r) = n! / (r!(n-r)!)
Explanation
C(n,r) = ₙCᵣ = "n choose r" counts subsets of size r. Choosing 3 from 5 people for a committee: C(5,3) = 10. Order doesn't matter: {A,B,C} = {C,A,B}.
16
What is the complement of a set A?
Correct Answer
All elements in the universal set U that are not in A
Explanation
Complement Ā = U - A = {x | x ∈ U ∧ x ∉ A}. De Morgan's laws apply to sets: (A∪B)ᶜ = Aᶜ ∩ Bᶜ and (A∩B)ᶜ = Aᶜ ∪ Bᶜ.
17
What is modular arithmetic?
Correct Answer
Arithmetic on integers with a fixed modulus n, where numbers "wrap around" — a ≡ b (mod n) if n | (a-b)
Explanation
17 ≡ 2 (mod 5) because 17-2=15 is divisible by 5. Used in cryptography (RSA, Diffie-Hellman), hash functions, and cyclic data structures.
18
What is a Boolean algebra?
Correct Answer
An algebraic structure with two operations (AND, OR) and complement over {0,1} satisfying commutativity, associativity, distributivity, identity, and complement laws
Explanation
Boolean algebra (George Boole) is the foundation of digital logic and set theory. Operations: +/∪ (OR), ·/∩ (AND), ¬/complement. Identities: x+0=x, x·1=x, x+x'=1, x·x'=0.
19
What is a Hamiltonian path/circuit in graph theory?
Correct Answer
A path visiting every vertex exactly once (Hamiltonian path) or a cycle doing the same (Hamiltonian circuit)
Explanation
Hamiltonian path: visit each vertex exactly once. Hamiltonian circuit: visit each vertex exactly once and return to start. NP-complete to determine if one exists. Related to Traveling Salesman Problem.
20
What is an Euler path in graph theory?
Correct Answer
A path traversing every edge exactly once — exists iff the graph is connected and has exactly 0 or 2 vertices with odd degree
Explanation
Euler path theorem (Königsberg bridge problem): exists iff ≤2 odd-degree vertices. If exactly 2 odd vertices: path starts at one and ends at other. If 0 odd vertices: Euler circuit (starts and ends same place).
21
What is graph coloring?
Correct Answer
Assigning colors to vertices such that no two adjacent vertices share the same color, with the chromatic number being the minimum colors needed
Explanation
Graph coloring models scheduling, register allocation, and map coloring. The 4-Color Theorem: any planar graph can be colored with 4 colors. Bipartite graphs: 2-colorable. NP-hard in general.
22
What is the GCD (Greatest Common Divisor)?
Correct Answer
The largest positive integer that divides both a and b without remainder
Explanation
GCD(12,8) = 4. Computed by the Euclidean algorithm: GCD(a,b) = GCD(b, a mod b). Fundamental for fractions, modular inverse, and Euclidean algorithm-based cryptography.
23
What is the LCM (Least Common Multiple)?
Correct Answer
The smallest number divisible by both a and b
Explanation
LCM(4,6) = 12. LCM(a,b) = a*b / GCD(a,b). Used in fractions (finding common denominators) and cyclic event scheduling.
24
What is a prime number?
Correct Answer
Both A and C are correct
Explanation
A prime p > 1 has exactly two positive divisors: 1 and p. Composite: has more divisors. 2 is the only even prime. Infinitely many primes (Euclid). Fundamental Theorem of Arithmetic: unique prime factorization.
25
What is a binary number system?
Correct Answer
A number system using digits 0 and 1 (base 2)
Explanation
Binary (base 2) uses digits 0 and 1. 1011₂ = 8+0+2+1 = 11₁₀. Used in computing: all data is ultimately binary. Hexadecimal (base 16) is a shorthand for binary (4 bits per hex digit).
26
What is a valid argument in propositional logic?
Correct Answer
An argument where if all premises are true, the conclusion must be true — the form is logically valid regardless of content
Explanation
Valid argument: the conclusion follows necessarily from premises (the form is a tautology). Sound argument: valid + all premises are true. Modus ponens: (p→q, p) ⊢ q is a valid argument form.
27
What is a tautology in logic?
Correct Answer
A compound proposition that is always true regardless of the truth values of its atomic components
Explanation
Tautologies: p ∨ ¬p (law of excluded middle), p → p. Contradictions (always false): p ∧ ¬p. Contingencies: true for some assignments. Tautologies are the theorems of propositional logic.
28
What is a recursive definition?
Correct Answer
A definition with a base case and a recursive (inductive) case building larger structures from smaller ones
Explanation
Recursive definitions: factorial(0)=1 (base), factorial(n)=n*factorial(n-1) (recursive). Fibonacci: F(1)=F(2)=1, F(n)=F(n-1)+F(n-2). Induction proves properties of recursively-defined objects.
29
What is a lattice in discrete mathematics?
Correct Answer
A partially ordered set where every pair of elements has a unique least upper bound (join) and greatest lower bound (meet)
Explanation
Lattices generalize set operations: {∩, ∪} forms a lattice on power sets. Distributive lattices (like sets) satisfy additional rules. Used in formal verification, type systems, and cryptography (lattice-based crypto).
30
What is the principle of inclusion-exclusion?
Correct Answer
A counting formula: |A∪B| = |A| + |B| - |A∩B|, generalized to n sets by alternately adding and subtracting intersections
Explanation
|A∪B∪C| = |A|+|B|+|C| - |A∩B| - |A∩C| - |B∩C| + |A∩B∩C|. Avoids double-counting. Applications: counting derangements, the sieve of Eratosthenes, scheduling conflicts.
31
What is a bijection?
Correct Answer
A function that is both injective (one-to-one) and surjective (onto), enabling a perfect pairing between domain and codomain
Explanation
Bijections (1-1 correspondences) prove two sets have the same cardinality. Inverses always exist for bijections. Bijections from a set to itself are permutations. Cantor used bijections to compare infinite set sizes.
32
What is Euler's formula for planar graphs?
Correct Answer
V - E + F = 2, where V=vertices, E=edges, F=faces (including outer face)
Explanation
Euler's formula for connected planar graphs: V - E + F = 2. For K₄ (4 vertices, 6 edges, 4 faces): 4-6+4=2. Used to prove K₅ and K₃,₃ are non-planar.
33
What is a sequence?
Correct Answer
An ordered list of elements following a pattern, indexed by natural numbers
Explanation
Sequences: a₁, a₂, a₃, ... A function from ℕ to some set. Arithmetic (a_n = a + (n-1)d), geometric (a_n = ar^(n-1)), Fibonacci, etc. Convergence: whether the sequence approaches a limit.
34
What is a generating function?
Correct Answer
A formal power series ∑ a_n x^n encoding a sequence as coefficients, enabling algebraic manipulation to solve combinatorial problems
Explanation
Generating functions: G(x) = ∑ a_n x^n. Ordinary GF for Fibonacci: F(x) = x/(1-x-x²). Exponential GF: ∑ a_n x^n/n!. Operations on GFs correspond to operations on sequences (convolution, shifting).
35
What is the floor and ceiling function?
Correct Answer
⌊x⌋ (floor): greatest integer ≤ x; ⌈x⌉ (ceiling): smallest integer ≥ x
Explanation
⌊3.7⌋ = 3, ⌈3.2⌉ = 4, ⌊-1.3⌋ = -2, ⌈-1.3⌉ = -1. Used in algorithm analysis (e.g., ⌊log₂ n⌋ + 1 = bits to represent n), hashing (⌊n/m⌋ for bucketing), and pagination.
36
What is Bayes' theorem?
Correct Answer
P(A|B) = P(B|A) * P(A) / P(B)
Explanation
Bayes' theorem: P(A|B) = P(B|A)P(A)/P(B). Updates prior P(A) with likelihood P(B|A) given evidence B. Foundation of Bayesian statistics, Naive Bayes classifiers, and spam filtering.
37
What is Big O notation informally?
Correct Answer
An upper bound on the growth rate of a function — f(n) is O(g(n)) if f(n) grows no faster than g(n) asymptotically
Explanation
Big O: ignores constants and lower-order terms. O(n²) is worse than O(n log n) for large n. 100n is O(n), not O(100n). Used to analyze algorithm scalability independent of hardware.
38
What are the four basic operations on sets?
Correct Answer
Union, intersection, complement, difference
Explanation
A∪B (union: in A or B), A∩B (intersection: in both), A-B or A\B (difference: in A but not B), Ā (complement: not in A). These satisfy De Morgan's laws and distributive properties.
39
What is a bipartite graph?
Correct Answer
A graph whose vertices can be divided into two disjoint sets such that every edge connects a vertex in one set to a vertex in the other
Explanation
Bipartite graphs (2-colorable): no odd-length cycles. Used for matching problems (job assignments, marriage problem). König's theorem: in bipartite graphs, max matching = min vertex cover.
40
What is a recurrence relation?
Correct Answer
An equation defining a sequence term in terms of previous terms — solved to find closed-form expressions
Explanation
T(n) = 2T(n/2) + n (merge sort). Solved by Master Theorem: T(n) = O(n log n). Fibonacci: F(n) = F(n-1) + F(n-2) with closed form F(n) = φⁿ/√5 (Binet's formula).
1
What is the Chinese Remainder Theorem (CRT)?
Correct Answer
Given pairwise coprime moduli, a system of simultaneous congruences has a unique solution modulo their product
Explanation
CRT: x ≡ 2 (mod 3), x ≡ 3 (mod 5), x ≡ 2 (mod 7) has unique solution mod 105. Used in RSA (reduces computation via modular arithmetic), and efficient parallel computation.
2
What is Fermat's Little Theorem?
Correct Answer
Both A and B are equivalent statements
Explanation
Fermat's Little Theorem: if p is prime and gcd(a,p)=1 then a^(p-1) ≡ 1 (mod p), equivalently aᵖ ≡ a (mod p). Foundation of RSA (a^φ(n) ≡ 1 mod n for Euler's theorem generalization).
3
What is Euler's totient function φ(n)?
Correct Answer
The count of integers from 1 to n-1 that are coprime to n
Explanation
φ(n) counts integers ≤ n coprime to n. φ(p)=p-1 for prime p. φ(pq)=(p-1)(q-1) for distinct primes. Used in RSA: d·e ≡ 1 (mod φ(n)).
4
What is a partial order?
Correct Answer
A binary relation that is reflexive, antisymmetric, and transitive — not requiring all pairs to be comparable
Explanation
Partial orders (≤, ⊆, divisibility) may leave some pairs incomparable. Total orders (⊆ where all pairs comparable): integers, reals. Hasse diagrams visualize partial orders. Used in scheduling and type systems.
5
What is the Master Theorem?
Correct Answer
A formula for solving recurrences T(n) = aT(n/b) + f(n) arising from divide-and-conquer algorithms
Explanation
Master Theorem: compare f(n) with n^(log_b a). If f(n) = O(n^(log_b a - ε)): T(n) = Θ(n^(log_b a)). If equal: Θ(n^(log_b a) log n). If f(n) dominates: Θ(f(n)). Merge sort: T(n)=2T(n/2)+n → O(n log n).
6
What is strong induction vs weak induction?
Correct Answer
Weak induction: assume P(k), prove P(k+1). Strong induction: assume P(1)...P(k), prove P(k+1) — equivalent but sometimes easier
Explanation
Both are equivalent in proving power. Strong induction: the inductive hypothesis assumes all cases up to k (not just k). Useful for recursion where f(n) depends on f(k) for multiple k<n (Fibonacci).
7
What is the inclusion-exclusion principle for derangements?
Correct Answer
D(n) = n! * Σ (-1)^k / k! ≈ n!/e — the number of permutations with no fixed points (derangements)
Explanation
A derangement is a permutation where no element stays in its original position. D(n) = n!(1 - 1/1! + 1/2! - 1/3! + ... + (-1)^n/n!). D(3)=2, D(4)=9. D(n)/n! → 1/e ≈ 0.368.
8
What is the Stirling number of the second kind S(n,k)?
Correct Answer
The number of ways to partition a set of n elements into exactly k non-empty subsets
Explanation
S(n,k) = k*S(n-1,k) + S(n-1,k-1). S(4,2) = 7 (ways to partition {1,2,3,4} into 2 groups). Related to Bell numbers (sum over k), which count total partitions.
9
What is Cayley's formula?
Correct Answer
The number of labeled trees on n vertices is nⁿ⁻² (proved by Prüfer sequences)
Explanation
Cayley's formula: T(n) = nⁿ⁻². Proved by Prüfer sequences (bijection between labeled trees and sequences of length n-2 from {1,...,n}). K₄ has 4² = 16 labeled spanning trees.
10
What is Kirchhoff's matrix tree theorem?
Correct Answer
The number of spanning trees of a graph G equals any cofactor of the Laplacian matrix L = D - A
Explanation
The Laplacian L has degree matrix D minus adjacency matrix A. Any cofactor of L (determinant of (n-1)×(n-1) submatrix) counts spanning trees. Generalizes Cayley's formula for non-complete graphs.
11
What is a formal language in discrete mathematics?
Correct Answer
A set of strings over an alphabet — the foundation of automata theory, compilers, and computability
Explanation
Formal language L over alphabet Σ: L ⊆ Σ*. Operations: concatenation, union, Kleene star. Recognized by automata (FA for regular, PDA for CFL, TM for RE). Bridges discrete math and computability theory.
12
What is the Principle of Mathematical Induction and Well-Ordering?
Correct Answer
Both are equivalent: induction is based on the well-ordering principle (every non-empty subset of ℕ has a minimum element), and each implies the other over ℕ
Explanation
Well-ordering principle: every non-empty set of natural numbers has a least element. This is equivalent to (strong) mathematical induction. Both are axioms of ℕ, each derivable from the other.
13
What is a graph's chromatic polynomial?
Correct Answer
P(G,k): the number of proper k-colorings of graph G — a polynomial in k giving the chromatic polynomial
Explanation
P(G,k) counts proper colorings using k colors. For K_n: k(k-1)(k-2)...(k-n+1). P(G,χ(G))>0 where χ(G) is chromatic number. Deletion-contraction: P(G,k)=P(G-e,k)-P(G/e,k).
14
What is the Ramsey number R(m,n)?
Correct Answer
The minimum N such that any red-blue coloring of K_N's edges contains a red K_m or blue K_n
Explanation
R(3,3)=6: any 2-coloring of K₆ edges has a monochromatic triangle. R(m,n) grows rapidly and is notoriously hard to compute. Erdős: "If aliens demand R(5,5) or they destroy Earth, we should compute; for R(6,6), we should attack."
15
What is the difference between countable and uncountable infinity?
Correct Answer
Countable: can be put in bijection with ℕ (e.g., ℤ, ℚ); Uncountable: strictly larger (ℝ, P(ℕ)) — proved by Cantor's diagonalization
Explanation
Cantor: ℝ is uncountable (diagonal argument). ℕ, ℤ, ℚ are countably infinite (ℵ₀). |ℝ| = 2^ℵ₀ = ℵ₁ (assuming CH). Between ℵ₀ and 2^ℵ₀ there is no set (Continuum Hypothesis — independent of ZFC).
16
What is a generating function approach to Fibonacci numbers?
Correct Answer
F(x) = x/(1-x-x²) is the ordinary GF for Fibonacci; partial fractions yield Binet's formula F(n) = (φⁿ - ψⁿ)/√5
Explanation
F(x) = Σ F_n x^n = x/(1-x-x²). Partial fraction decomposition gives Binet: F_n = (φⁿ - ψⁿ)/√5 where φ=(1+√5)/2, ψ=(1-√5)/2. GFs provide closed forms for many combinatorial sequences.
17
What is Zorn's Lemma?
Correct Answer
If every chain in a non-empty partially ordered set has an upper bound, then the set contains a maximal element — equivalent to Axiom of Choice
Explanation
Zorn's Lemma is equivalent to the Axiom of Choice (and Well-Ordering Theorem). Used to prove: every vector space has a basis, every ring has a maximal ideal, Tychonoff's theorem. Controversial but indispensable.
18
What is the handshaking lemma in graph theory?
Correct Answer
The sum of all vertex degrees equals twice the number of edges: Σ deg(v) = 2|E|
Explanation
Each edge contributes 2 to the degree sum (one to each endpoint). Corollary: the number of odd-degree vertices is always even. Fundamental for proving impossibility results (e.g., Königsberg bridges).
19
What is the four color theorem?
Correct Answer
Every planar graph can be properly colored with at most 4 colors (proved by computer in 1976, first major computer-assisted proof)
Explanation
4CT (Appel & Haken 1976): any planar map can be 4-colored. Also proved by Robertson, Sanders, Seymour, Thomas (1996). Notorious for requiring computer case-checking of 1,476 configurations.
20
What is the Fundamental Theorem of Arithmetic?
Correct Answer
Every integer n > 1 has a unique prime factorization (up to order of factors)
Explanation
FTA: n = p₁^a₁ * p₂^a₂ * ... * pₖ^aₖ uniquely. Existence (proved by strong induction) and uniqueness (proved using Euclid's lemma: if p|ab and p is prime, then p|a or p|b). Foundation of number theory.
21
What is a Boolean function and its normal forms?
Correct Answer
A function f: {0,1}ⁿ → {0,1} expressible in DNF (sum of products) or CNF (product of sums) normal form
Explanation
DNF (disjunctive normal form): OR of AND-clauses (minterms). CNF (conjunctive): AND of OR-clauses (maxterms). Any Boolean function has unique canonical DNF and CNF. Used in SAT solvers and logic synthesis.
22
What is Stirling's approximation?
Correct Answer
n! ≈ n^n * e^(-n) * √(2πn)
Explanation
Stirling's approximation (more precisely option d): n! ≈ √(2πn) * (n/e)^n. Option a is also correct notation. Used in algorithm analysis for log(n!) = Θ(n log n) and combinatorics. Proves information-theoretic Ω(n log n) sorting lower bound.
23
What is a poset and what is Dilworth's theorem?
Correct Answer
A poset is a partially ordered set. Dilworth's theorem: in any finite poset, the minimum number of chains needed to cover it equals the maximum antichain size
Explanation
Dilworth (1950): min chain cover = max antichain. Mirsky's dual: min antichain cover = max chain length. Used in scheduling (minimum processors = maximum concurrent tasks) and combinatorics.
24
How many distinct ways can you arrange the letters of the word "LEVEL"?
Correct Answer
30
Explanation
LEVEL has 5 letters with L repeated twice and E repeated twice, so the count of distinct arrangements is 5!/(2!·2!) = 120/4 = 30. This is the standard formula for permutations of a multiset with repeated elements.
25
Using proof by contradiction, what assumption do you start with to prove "√2 is irrational"?
Correct Answer
Assume √2 = a/b for integers a, b with gcd(a,b)=1, then derive that both a and b must be even, contradicting gcd(a,b)=1
Explanation
The classic contradiction proof assumes √2 is rational in lowest terms a/b, shows 2b² = a² forces a even, then b even too, contradicting gcd(a,b)=1. This pattern (assume the negation, derive a contradiction) is the template for irrationality proofs.
26
In a connected simple graph with 7 vertices, what is the minimum number of edges required for the graph to remain connected?
Correct Answer
6
Explanation
A connected graph on n vertices needs at least n-1 edges, achieved exactly by a tree. For n=7, the minimum is 6 edges; fewer would disconnect the graph (it would form a forest with multiple components).
27
What does it mean for a relation R on set A to be antisymmetric?
Correct Answer
For all a, b in A, if aRb and bRa then a = b
Explanation
Antisymmetry forbids two distinct elements from relating to each other in both directions: aRb and bRa together force a = b. The divisibility relation "a | b" on positive integers is antisymmetric, which is part of why it forms a partial order.
28
How many different committees of 4 people can be formed from a group of 10 people, if two specific people refuse to serve together?
Correct Answer
182
Explanation
Total committees: C(10,4) = 210. Committees containing both specific people together: C(8,2) = 28 (choosing the remaining 2 members from the other 8 people). Valid committees = 210 - 28 = 182, an application of complementary counting.
29
What is the chromatic number of a cycle graph C₅ (a 5-vertex cycle)?
Correct Answer
3
Explanation
Odd cycles cannot be 2-colored because the last edge would force two adjacent vertices to share a color, but they can always be properly colored with 3 colors. So χ(C₅) = 3, while even cycles have χ = 2 (they are bipartite).
30
Using the Euclidean algorithm, what is gcd(252, 105)?
Correct Answer
21
Explanation
252 = 2(105) + 42; 105 = 2(42) + 21; 42 = 2(21) + 0. The last nonzero remainder is 21, so gcd(252,105) = 21. Each step replaces (a,b) with (b, a mod b) until the remainder is zero.
31
What technique is typically used to solve a linear homogeneous recurrence relation like a_n = 5a_{n-1} - 6a_{n-2}?
Correct Answer
Form the characteristic equation x² = 5x - 6, solve for its roots, and write the general solution as a linear combination of those roots raised to the n-th power
Explanation
For a_n = 5a_{n-1} - 6a_{n-2}, the characteristic equation x² - 5x + 6 = 0 factors as (x-2)(x-3) = 0, giving roots 2 and 3. The general solution is a_n = A·2ⁿ + B·3ⁿ, with A and B determined by initial conditions.
32
In propositional logic, what is the contrapositive of "If it rains, then the ground is wet"?
Correct Answer
If the ground is not wet, then it does not rain
Explanation
The contrapositive of p → q is ¬q → ¬p, which is logically equivalent to the original statement. "If the ground is not wet, then it does not rain" preserves the same truth value as "If it rains, the ground is wet," unlike the converse (option a) or inverse (option c).
33
How many onto (surjective) functions are there from a 4-element set to a 2-element set?
Correct Answer
14
Explanation
Total functions from a 4-set to a 2-set: 2⁴ = 16. Subtract the 2 constant functions (mapping everything to one element), which are not onto: 16 - 2 = 14. This matches the inclusion-exclusion formula for surjections: Σ(-1)^k C(2,k)(2-k)⁴.
34
Which of the following degree sequences could NOT belong to any simple graph?
Correct Answer
(3,3,2,1)
Explanation
By the handshaking lemma, the sum of all vertex degrees must be even (it equals twice the number of edges). The sequence (3,3,2,1) sums to 9, an odd number, so no simple graph can have it; the other sequences all have even sums and are realizable.
35
What is the value of C(n,0) + C(n,1) + C(n,2) + ... + C(n,n)?
Correct Answer
2ⁿ
Explanation
By the Binomial Theorem, setting x=y=1 in (x+y)ⁿ = Σ C(n,k) xᵏ y^(n-k) gives Σ C(n,k) = 2ⁿ. This counts all subsets of an n-element set, since C(n,k) counts the k-element subsets and there are 2ⁿ subsets total.
36
Which proof technique would you use to show that every integer greater than 1 has a prime factor, by assuming a smallest counterexample exists?
Correct Answer
Proof by minimal counterexample (a variant of proof by contradiction relying on the well-ordering principle)
Explanation
Proof by minimal counterexample assumes the set of counterexamples is non-empty, invokes the well-ordering principle to pick the smallest one, and derives a contradiction by finding an even smaller counterexample. It is logically equivalent to strong induction.
37
In how many ways can 5 distinct books be distributed among 3 distinct shelves, if each shelf may hold any number of books (including zero)?
Correct Answer
243
Explanation
Each of the 5 distinct books independently chooses one of 3 shelves, giving 3^5 = 243 distributions. This is the standard counting rule for placing distinguishable objects into distinguishable bins with no restriction.
38
What does Kruskal's algorithm compute, and what greedy rule does it follow?
Correct Answer
A minimum spanning tree, by repeatedly adding the smallest-weight edge that does not create a cycle
Explanation
Kruskal's algorithm sorts all edges by weight and greedily adds each edge to the growing forest as long as it does not form a cycle (checked via union-find), producing a minimum spanning tree. Prim's algorithm achieves the same goal by growing a single tree from a vertex.
39
What is the multiplicative inverse of 3 modulo 7?
Correct Answer
5
Explanation
We need x such that 3x ≡ 1 (mod 7). Testing: 3·5 = 15 = 14+1 ≡ 1 (mod 7), so x = 5. The inverse exists because gcd(3,7) = 1; it can also be found via the Extended Euclidean Algorithm.
40
What is the negation of the statement "For all x, there exists a y such that x + y = 0"?
Correct Answer
There exists an x such that for all y, x + y ≠ 0
Explanation
Negating ∀x∃y P(x,y) flips each quantifier and negates the predicate, giving ∃x∀y ¬P(x,y): "There exists an x such that for all y, x + y ≠ 0." This quantifier-negation rule (∀↔∃ swap with inner negation) is essential for writing correct proofs and counterexamples.
1
What is the Axiom of Choice and its significance?
Correct Answer
A set-theory axiom stating that given any collection of non-empty sets, there exists a choice function selecting one element from each set — equivalent to Zorn's Lemma and Well-Ordering
Explanation
AC (Cohen 1963): independent of ZF — cannot be proved or disproved from other set theory axioms. Implies Banach-Tarski paradox (sphere decomposition). Most mathematicians accept it. Constructivists reject it.
2
What is the Gödel incompleteness theorem?
Correct Answer
Any consistent formal system capable of basic arithmetic contains true statements that cannot be proved within the system; it also cannot prove its own consistency
Explanation
First Incompleteness: any consistent, complete, recursively enumerable formal system (containing PA) is incomplete — there are true but unprovable statements. Second: such a system cannot prove its own consistency. Profound limits on formal mathematics.
3
What is Ramsey Theory's general principle?
Correct Answer
All statements A, B, and C are aspects of the same principle
Explanation
Ramsey theory: "complete disorder is impossible." Van der Waerden: k-color a large enough set of integers → monochromatic arithmetic progression. Ramsey: large K_n → monochromatic K_m. Hales-Jewett: n-d tic-tac-toe always has a winning line.
4
What is the Lovász Local Lemma (LLL)?
Correct Answer
A probabilistic tool proving that a finite set of "bad events" can all be avoided simultaneously if each bad event has low enough probability and depends on few others
Explanation
LLL (symmetric version): if each bad event has probability ≤ p and depends on ≤ d others, and ep(d+1) ≤ 1, then with positive probability no bad event occurs. Non-constructive; algorithmic version (Moser-Tardos) gives efficient algorithm.
5
What is the probabilistic method in combinatorics?
Correct Answer
Proving combinatorial objects with desired properties exist by showing a randomly chosen object has positive probability of having those properties
Explanation
Erdős's probabilistic method: if Pr(good structure) > 0, then good structure exists. Non-constructive but powerful. Examples: Ramsey lower bounds, existence of high-girth high-chromatic graphs, graph discrepancy results.
6
What is algebraic graph theory's spectral theory?
Correct Answer
Using eigenvalues of graph matrices (adjacency, Laplacian) to determine graph properties: connectivity, expansion, diameter, chromatic number bounds
Explanation
Spectral graph theory: λ₁ (largest Laplacian eigenvalue) bounds chromatic number (χ ≤ λ₁+1). λ₂ (Fiedler value) measures connectivity/mixing. Expanders have large spectral gap. Used in clustering (spectral clustering, NCut).
7
What is the Tutte polynomial?
Correct Answer
A two-variable polynomial T(G;x,y) encoding all deletion-contraction properties of a graph, specializing to chromatic polynomial, reliability polynomial, and partition function
Explanation
T(G;x,y) = Σ (x-1)^(r-r(A)) (y-1)^(|A|-r(A)). Specializations: T(G;1+λ,1)=P(G,1+λ) (chromatic), T(G;1,2)=spanning trees, T(G;2,1)=acyclic orientations. #P-hard to compute in general.
8
What is the probabilistic analysis of quicksort?
Correct Answer
With random pivot selection, the expected number of comparisons is 2n ln n ≈ 1.386 n log₂ n, analyzed using indicator random variables and linearity of expectation
Explanation
E[comparisons] = Σᵢ<ⱼ 2/(j-i+1) = 2n(H_n - 1) ≈ 2n ln n. Elements i,j compare iff one of them is the first pivot chosen from {i,...,j}. This linearity-of-expectation proof is elegant and standard.
9
What is the polynomial hierarchy in descriptive complexity?
Correct Answer
Fagin's theorem: NP = ∃SO (properties expressible in existential second-order logic over ordered structures) — founding result of descriptive complexity
Explanation
Fagin (1974): NP = ∃SO on ordered finite structures. Immerman: P = FO+LFP (first-order logic + least fixpoint). This gives machine-independent characterizations: complexity classes are exactly certain logics.
10
What is the algebraic structure of RSA and why it works?
Correct Answer
RSA exploits Euler's theorem: in (ℤ/nℤ)*, a^φ(n) ≡ 1 (mod n), making ed ≡ 1 (mod φ(n)) imply (m^e)^d ≡ m (mod n)
Explanation
RSA: n=pq, φ(n)=(p-1)(q-1), e·d ≡ 1 (mod φ(n)), encrypt: c = m^e mod n, decrypt: m = c^d mod n = m^(ed) mod n = m^(1+kφ(n)) ≡ m (Euler's theorem). Security: factoring n to find φ(n) is believed hard.
11
What is the Bonferroni inequalities and their use in probability?
Correct Answer
Alternating inequalities bounding P(A₁∪...∪Aₙ) from above and below using sums of k-wise intersection probabilities — used to compute probability of at least one event
Explanation
Inclusion-exclusion alternates: P(∪) ≤ Σ P(Aᵢ) (union bound), P(∪) ≥ Σ P(Aᵢ) - Σ P(Aᵢ∩Aⱼ), etc. Odd sums upper bound, even sums lower bound. Used in derangements, hat-check problems, and prime sieve analysis.
12
What is the matrix-tree theorem and its connection to random walks?
Correct Answer
The number of spanning trees equals a Laplacian cofactor; this also equals the number of random walk cycles and connects to electrical resistance (effective resistance = 1/spanning trees)
Explanation
Spanning trees ↔ effective resistance ↔ random walk hitting times. The effective resistance R(u,v) = sum of 1/eigenvalues weighted by eigenvector differences. These connections power spectral sparsification algorithms.
13
What is a matroid and its connection to greedy algorithms?
Correct Answer
An abstraction of linear independence satisfying exchange axioms — the greedy algorithm finds a maximum weight basis in any matroid, exactly capturing when greedy is optimal
Explanation
Matroids (Whitney 1935): ground set + independent sets satisfying hereditary and augmentation properties. The greedy algorithm on a matroid always finds a maximum weight basis. Graphic (spanning trees), linear, uniform, partition, and transversal matroids.
14
What are category theory's functors and natural transformations?
Correct Answer
Functors are structure-preserving maps between categories; natural transformations are structure-preserving maps between functors — the framework for "abstract nonsense" in mathematics
Explanation
Category theory: objects + morphisms. Functor F:C→D maps objects to objects and morphisms to morphisms preserving composition. Natural transformation η:F⟹G maps components faithfully. Monads = functors with unit and multiplication.
15
What is the Lovász theta function and its applications?
Correct Answer
A semidefinite programming relaxation sandwiched between the clique number and chromatic number: ω(G) ≤ ϑ(Ḡ) ≤ χ(G) — achieves the Shannon capacity of graphs
Explanation
ϑ(G) (Lovász 1979): computable by SDP in polynomial time. ϑ(C₅) = √5 = Shannon capacity of the pentagonal channel. Separates graph parameters that are NP-hard to compute. Pioneered connection between combinatorics and semidefinite programming.
16
What is the connection between Boolean functions and algebraic normal form?
Correct Answer
Every Boolean function has a unique multilinear representation over GF(2): f(x₁,...,xₙ) = Σ cₛ ∏ xᵢ (sum over subsets S), the Algebraic Normal Form or Zhegalkin polynomial
Explanation
ANF over GF(2): each Boolean function has unique multilinear XOR-of-products representation. The degree of the ANF measures non-linearity. Low-degree ANF means susceptibility to algebraic attacks in cryptography (correlation attacks on stream ciphers).
17
What is the Möbius function in combinatorics?
Correct Answer
A function on posets μ(x,y) enabling Möbius inversion — the generalization of inclusion-exclusion and the number-theoretic Möbius function
Explanation
Möbius function μ on a poset: μ(x,x)=1, μ(x,y)=-Σ μ(x,z) for x≤z<y. Möbius inversion: f(x)=Σg(y) ↔ g(x)=Σ f(y)μ(y,x). Generalizes PIE; specializes to number-theoretic μ on divisibility poset.
18
What is Szemerédi's regularity lemma and its impact?
Correct Answer
Any sufficiently dense graph can be approximated by a "regular partition" (pseudorandom bipartite graphs) — foundational for graph theory and additive combinatorics
Explanation
Szemerédi regularity lemma (1975): any dense graph has an ε-regular partition. Applications: Szemerédi's theorem (arithmetic progressions in dense sets), graph removal lemma, property testing. Tower-type bounds but non-constructive.
19
Why is the discrete logarithm problem considered hard, and how does it underpin Diffie-Hellman key exchange?
Correct Answer
Because no known classical polynomial-time algorithm computes x given gˣ ≡ h (mod p) in a large cyclic group, while computing gˣ itself is efficient via fast exponentiation — this asymmetry lets two parties derive a shared secret from public exchanges
Explanation
Diffie-Hellman relies on a one-way function: computing gˣ mod p is fast (repeated squaring), but recovering x from gˣ mod p — the discrete logarithm — has no known efficient classical algorithm for well-chosen groups. Both parties compute g^(ab) mod p from exchanged values g^a and g^b without ever transmitting a or b.
20
When solving the non-homogeneous recurrence a_n = 2a_{n-1} + 2ⁿ by the method of undetermined coefficients, why must the trial particular solution be A·n·2ⁿ rather than simply A·2ⁿ?
Correct Answer
Because 2 is a root of the homogeneous characteristic equation x = 2, so plain A·2ⁿ would be absorbed into the homogeneous solution and cancel to 0 = 2ⁿ — multiplying by n yields an independent form
Explanation
The associated homogeneous recurrence a_n = 2a_{n-1} has characteristic root 2, with general solution A·2ⁿ. Since the forcing term 2ⁿ shares this base ("resonance"), substituting the naive trial A·2ⁿ makes both sides cancel identically, giving no information. Multiplying by n (trial A·n·2ⁿ) breaks the degeneracy and yields a valid particular solution — the standard resonance rule for linear non-homogeneous recurrences and differential equations alike.