Self-Assessment Quiz: Number Theory Foundations

Twenty questions to check your grip on divisibility, primes, the Division Algorithm, gcd, Bézout, and the Fundamental Theorem of Arithmetic. Answer before opening the key. Aim for 16+.


Question 1

The statement $a \mid b$ means:

A) the fraction $a/b$ is an integer B) there exists an integer $k$ with $b = ak$ (and $a \neq 0$) C) there exists an integer $k$ with $a = bk$ D) the remainder $a \bmod b$ is zero

Question 2

Which of the following is true?

A) $a \mid b$ always implies $b \mid a$ B) $0 \mid 5$ C) $a \mid 0$ for every nonzero integer $a$ D) $1$ is prime

Question 3

By the Division Algorithm, $-17 = 5q + r$ with $0 \le r < 5$ has:

A) $q = -3,\ r = -2$ B) $q = -4,\ r = 3$ C) $q = -3,\ r = 2$ D) $q = 3,\ r = -2$

Question 4

In Python, the value of -17 % 5 is:

A) -2 B) 2 C) 3 D) -3

Question 5

The integer $1$ is excluded from the primes primarily because:

A) it has only one divisor B) it is too small to be useful C) including it would destroy the uniqueness of prime factorization D) it is even

Question 6

In the Sieve of Eratosthenes, when crossing out multiples of a prime $p$, the inner loop starts at $p^2$ rather than $2p$ because:

A) $2p$ is sometimes prime B) every multiple of $p$ below $p^2$ already carries a smaller prime factor and was crossed earlier C) starting at $p^2$ finds more primes D) it avoids crossing out $p$ itself

Question 7

Euclid's proof of the infinitude of primes concludes that the constructed number $N = p_1 p_2 \cdots p_r + 1$:

A) is itself always prime B) is always composite C) has a prime divisor not on the list $p_1, \dots, p_r$ D) equals the next prime after $p_r$

Question 8

The key lemma behind the Euclidean algorithm states that, for $a = bq + r$:

A) $\gcd(a, b) = \gcd(a, r)$ B) $\gcd(a, b) = \gcd(b, r)$ C) $\gcd(a, b) = \gcd(q, r)$ D) $\gcd(a, b) = q \cdot r$

Question 9

The Euclidean algorithm on $\gcd(48, 18)$ returns:

A) $2$ B) $3$ C) $6$ D) $9$

Question 10

Bézout's identity guarantees that, for $a, b$ not both zero, there exist integers $x, y$ with:

A) $ax + by = 1$ always B) $ax + by = \operatorname{lcm}(a, b)$ C) $ax + by = \gcd(a, b)$ D) $ax - by = ab$

Question 11

Bézout coefficients $x, y$ for $\gcd(a, b)$ are:

A) always positive B) unique C) often signed (one may be negative) and not unique D) always equal in magnitude

Question 12

Why does $\gcd(a, n) = 1$ guarantee that $a$ has a modular inverse mod $n$?

A) because $a$ is then prime B) because Bézout gives $ax + ny = 1$, so $ax \equiv 1 \pmod n$ C) because $n$ is then prime D) because $a$ and $n$ are then equal

Question 13

Euclid's Lemma says: if $p$ is prime and $p \mid ab$, then:

A) $p \mid a$ and $p \mid b$ B) $p \mid a$ or $p \mid b$ C) $p \mid (a + b)$ D) $p = ab$

Question 14

For which $m$ does the statement "$m \mid xy \Rightarrow m \mid x$ or $m \mid y$" fail?

A) $m = 2$ B) $m = 3$ C) $m = 4$ D) $m = 7$

Question 15

The uniqueness half of the Fundamental Theorem of Arithmetic relies crucially on:

A) the well-ordering principle alone B) Euclid's Lemma C) the Sieve of Eratosthenes D) Bézout's identity used directly (no lemma)

Question 16

Given $360 = 2^3 \cdot 3^2 \cdot 5$ and $84 = 2^2 \cdot 3 \cdot 7$, $\gcd(360, 84) =$

A) $6$ B) $12$ C) $24$ D) $2520$

Question 17 (True/False, justify)

True or false: The number $2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13 + 1$ is prime. Justify in one sentence.

Question 18 (True/False, justify)

True or false: The worst case for the Euclidean algorithm (the most division steps relative to input size) occurs on consecutive Fibonacci numbers. Justify in one sentence.

Question 19 (Short answer)

State the three-word recipe this chapter uses for every elementary divisibility proof, and name the one rewriting move you should make the instant you see $a \mid b$.

Question 20 (Short answer)

Using $\gcd(a,b) \cdot \operatorname{lcm}(a,b) = ab$, compute $\operatorname{lcm}(252, 198)$ given that $\gcd(252, 198) = 18$. Show the arithmetic.


Answer Key

Q Ans Note
1 B Definition of divisibility: $b = ak$ for some integer $k$, with $a \neq 0$.
2 C $a \mid 0$ via $0 = a \cdot 0$. (A is false — not symmetric; B false — $0$ divides nothing nonzero; D false — $1$ is neither prime nor composite.)
3 B $-17 = 5(-4) + 3$, and $0 \le 3 < 5$.
4 C Python follows the Division Algorithm: canonical $0 \le r < d$, so 3. (C/Java give -2.)
5 C Allowing $1$ would let you insert arbitrarily many factors of $1$, breaking uniqueness.
6 B Smaller multiples of $p$ have a smaller prime factor and are already crossed out.
7 C $N$ forces a new prime divisor; $N$ itself need not be prime.
8 B $\gcd(a,b) = \gcd(b, r)$ — the two pairs share all common divisors.
9 C $48 = 2\cdot18+12$, $18=1\cdot12+6$, $12=2\cdot6+0$; last nonzero remainder $6$.
10 C Bézout: $ax + by = \gcd(a,b)$ (equals $1$ only when coprime).
11 C Coefficients are usually signed and never unique (add $b/g$ to $x$, subtract $a/g$ from $y$).
12 B $ax + ny = 1 \Rightarrow ax \equiv 1 \pmod n$; the $ny$ term vanishes mod $n$.
13 B Euclid's Lemma: a prime dividing a product divides one of the factors.
14 C $4 \mid 2\cdot 6 = 12$ but $4 \nmid 2$ and $4 \nmid 6$; the property needs $m$ prime.
15 B Euclid's Lemma forces a prime in one factorization to match one in the other.
16 B $\min$ of shared primes: $2^2 \cdot 3 = 12$.
17 False It equals $30031 = 59 \times 509$, composite — Euclid's $N$ need not be prime.
18 True Consecutive Fibonacci numbers force every quotient to be $1$, the maximum number of steps for that size.
19 "Unpack–combine–repackage"; rewrite $a \mid b$ as $b = ak$.
20 $\operatorname{lcm} = (252 \cdot 198)/18 = 49896/18 = 2772$.

Topics to review by question

Questions Topic
1, 2, 19 Definition of divisibility and its basic properties (§22.1)
5, 6, 7 Primes, the Sieve, and the infinitude of primes (§22.2)
3, 4 The Division Algorithm and Python's % (§22.3)
8, 9, 18 The Euclidean algorithm and its worst case (§22.4)
10, 11, 12 Bézout's identity and modular inverses (§22.5)
13, 14 Euclid's Lemma (§22.5)
15, 16, 17, 20 Fundamental Theorem of Arithmetic; gcd/lcm from factorizations (§22.6)