1.2 Number Theory, Divisibility, Primes & Modular Arithmetic
Key Takeaways
The Division Algorithm guarantees that for any integers a and b with b > 0, there exist unique integers q and r such that a = qb + r with 0 ≤ r < b; negative dividends require r ≥ 0, which forces the quotient to round down toward negative infinity.
The Fundamental Theorem of Arithmetic establishes unique prime factorization for every integer n > 1, providing prime-exponent representations for gcd(a, b) and lcm(a, b) such that gcd(a, b) · lcm(a, b) = |ab|.
The Euclidean Algorithm computes gcd(a, b) via successive remainders in logarithmic time O(log(min(a, b))), while the Extended Euclidean Algorithm computes Bézout coefficients x, y ∈ ℤ such that ax + by = gcd(a, b).
A linear Diophantine equation ax + by = c has integer solutions if and only if gcd(a, b) divides c, generating an infinite family of integer solutions parameterized by t ∈ ℤ once a particular solution (x₀, y₀) is known.
Modular congruence a ≡ b (mod m) preserves addition, subtraction, and multiplication, but division requires multiplying by the modular inverse a⁻¹, which exists if and only if gcd(a, m) = 1.
1.2 Number Theory, Divisibility, Primes & Modular Arithmetic
Number theory provides secondary mathematics educators with a deep repertoire of algebraic structures, discrete algorithms, and problem-solving contexts. From divisibility rules and prime factorization in middle school to cryptographic ciphers (such as RSA) and modular congruences in advanced coursework, the principles of number theory anchor algebraic fluency in discrete mathematical reasoning.
1. The Division Algorithm & Divisibility Foundations
Let with . We say that divides (written ) if there exists an integer such that . When does not divide , the fundamental division structure of the integers is governed by the Division Algorithm:
Theorem (The Division Algorithm): Given integers (dividend) and (divisor) with , there exist unique integers (quotient) and (remainder) such that:
The Negative Dividend Pedagogical Trap
A widespread point of confusion in secondary mathematics arises when dividing a negative integer by a positive integer. Consider dividing by :
- Common Student Error: Many students perform truncation division (as seen in standard handheld calculators): . They write , reporting a remainder of . This violates the definition, which strictly requires .
- Correct Mathematical Procedure: The quotient must round down toward , giving . Then:
Here and , satisfying . In modular arithmetic, this yields .
- Teaching Strategy: Have students visualize integer division on a number line. To represent using jumps of size from the origin, taking steps left reaches , which is not far enough to the left to add a positive remainder. Taking steps left reaches ; from , one must step to the right to land on .
2. Prime Factorization, GCD, and LCM
A prime number is an integer whose only positive divisors are and . Integers that are not prime are composite.
The Fundamental Theorem of Arithmetic (Unique Factorization)
Every integer can be expressed uniquely as a product of prime powers:
where are distinct primes and , up to the order of factors.
The uniqueness proof hinges on Euclid's Lemma: if a prime divides a product , then or . This lemma distinguishes prime elements from arbitrary composite numbers.
Prime Testing Strategy
To test whether an integer is prime, one only needs to test prime divisors .
- Proof: Suppose is composite. Then with . If both and , then , a contradiction. Therefore, the smaller factor satisfies . By the Fundamental Theorem of Arithmetic, has at least one prime divisor .
GCD, LCM, and Their Universal Identity
For integers and , the greatest common divisor and least common multiple are:
Because for all real exponents, we obtain the universal identity:
3. The Euclidean & Extended Euclidean Algorithms
Factoring large integers into primes is computationally inefficient. The Euclidean Algorithm computes in logarithmic time ( steps by Lamé's Theorem) by applying the recurrence:
Bézout's Identity and the Extended Euclidean Algorithm
Bézout's Identity asserts that is the smallest positive integer that can be expressed as an integer linear combination of and :
The integers and are called Bézout coefficients.
Worked Example: Compute and find its Bézout representation
Forward Euclidean Algorithm:
- The last non-zero remainder is 6, so .
Reverse Extended Euclidean Algorithm (Back-Substitution):
- From equation (2):
- From equation (1):
- Substitute into the expression for :
Rewriting: . The Bézout coefficients are and .
4. Modular Congruence & Linear Diophantine Equations
Two integers and are congruent modulo (), written , if . Modular congruence partitions into equivalence classes .
Algebraic Compatibility and the Cancellation Caveat
If and , then:
Caution
The Modular Cancellation Rule: One cannot divide across congruences arbitrarily. If , then: Canceling without changing the modulus is valid if and only if .
Modular Multiplicative Inverses
The linear congruence has a solution if and only if . By Bézout's identity, , which reduces modulo to .
- If is prime, Fermat's Little Theorem ( for ) gives the inverse explicitly as .
Linear Diophantine Equations:
A linear Diophantine equation seeks integer solutions .
- Solvability Criterion: Solutions exist if and only if divides .
- General Solution Formula: If is a particular solution found via the Extended Euclidean Algorithm, all integer solutions are given by:
5. Pedagogical Scenarios & Diagnosing Misconceptions
Classroom Context: Calendar Arithmetic (Modulo 7)
Calendar systems provide a natural anchor for modular arithmetic. Days of the week map to residue classes modulo 7: Sunday = 0, Monday = 1, ..., Saturday = 6.
- Scenario: If today is Wednesday (day 3), what day of the week will it be in days?
- Solution: Compute . Using the Division Algorithm: . Since , the day will be Saturday.
Misconception Analysis: Illegal Cancellation in Congruences
When asked to solve , students frequently divide both sides by 6 and conclude .
- Teacher Diagnostic: Dividing by requires dividing the modulus by , yielding . In the original modulo 8 system, this produces two distinct residue solutions: and . Dividing without altering the modulus omits half of the valid solution set.
An accomplished teacher guides students to solve the linear congruence 7x ≡ 5 (mod 11). What is the smallest positive integer value of x satisfying this congruence?
x = 4
x = 5
x = 6
x = 7
When applying the Division Algorithm a = qb + r to divide a = -43 by b = 7, what are the unique integer values of the quotient q and remainder r?
q = -7, r = 6
q = -6, r = -1
q = -6, r = 1
q = -7, r = -1
A student attempts to solve the linear congruence 6x ≡ 18 (mod 8) by dividing both sides by 6, concluding that x ≡ 3 (mod 8). How should the teacher assess this work and guide the student?
The work is entirely correct because non-zero constants can always be cancelled across modular congruences without modifying the modulus.
The student incorrectly preserved the modulus; dividing by c = 6 requires dividing the modulus by gcd(6, 8) = 2, yielding x ≡ 3 (mod 4), which corresponds to two solutions modulo 8: x ≡ 3 (mod 8) and x ≡ 7 (mod 8).
The equation has no integer solutions because 6 and 8 are not relatively prime.
The student should have subtracted 18 from both sides rather than dividing, as division is undefined for all modular congruences.
Sections you finish are checked off in the contents.