3.3 Number Theory: Prime Factorization, GCF, LCM & Divisibility Rules
Key Takeaways
The Fundamental Theorem of Arithmetic guarantees that every integer greater than 1 has a unique prime factorization up to the order of factors.
Divisibility tests for 3 and 9 depend on base-10 modular arithmetic, whereas rules for 2, 4, and 8 depend on place-value powers of 10.
For any two positive integers a and b, their Greatest Common Factor and Least Common Multiple satisfy the universal relationship GCF(a,b) * LCM(a,b) = a * b.
In a Venn diagram of prime factors, the intersection yields the GCF, while the union of all factors yields the LCM.
GCF models equal partitioning, cutting, or tiling without leftovers, whereas LCM models periodic synchronization and recurring cycles.
Prime and Composite Numbers: Structural Foundations
Number theory explores the properties of the integers (), with prime numbers serving as the foundational building blocks of multiplicative arithmetic.
Definitions and Special Status of 0 and 1
- A prime number is an integer that has exactly two distinct positive divisors: 1 and itself.
- A composite number is an integer that has more than two distinct positive divisors (i.e., it can be factored into where ).
- The Number 1: By mathematical convention, the number 1 is neither prime nor composite. It is designated as a unit (it has a multiplicative inverse in the integers, namely itself). Defining 1 as prime would break the uniqueness clause of the Fundamental Theorem of Arithmetic, because any integer could then have infinitely many prime factorizations (e.g., ).
- The Number 0: The integer 0 is neither prime nor composite. Every non-zero integer divides 0 (since ), giving 0 infinitely many divisors.
Prime Identification and the Sieve of Eratosthenes
The Sieve of Eratosthenes is an ancient, systematic algorithm for finding all primes up to a given bound :
- List all natural numbers from 2 to .
- Identify the first unmarked number as prime (2) and cross out all its proper multiples ().
- Advance to the next unmarked number (3), declare it prime, and cross out all its multiples ().
- Repeat this procedure for each successive prime .
- The process terminates when , as all remaining unmarked numbers are guaranteed to be prime.
There are exactly 25 prime numbers less than 100:
Note that 2 is the only even prime number; all other even integers are multiples of 2 and therefore composite.
The Primality Testing Boundary
To determine whether a specific integer is prime, one only needs to test for divisibility by prime numbers . Proof: If is composite, it can be written as where . If both and , then , which is a contradiction. Thus, at least one factor must satisfy . If no prime less than or equal to divides , then must be prime.
For example, to test whether 173 is prime, note that , so . We only test primes :
- is odd (not divisible by 2).
- Sum of digits (not divisible by 3).
- Ends in 3 (not divisible by 5).
- (not divisible by 7).
- (not divisible by 11).
- (not divisible by 13). Because none of these primes divide 173, 173 is prime.
The Fundamental Theorem of Arithmetic
The Fundamental Theorem of Arithmetic (Unique Factorization Theorem) states that:
Every integer can be expressed uniquely as a product of prime numbers, up to the order of the factors: where each is a prime number such that , and each is a positive integer.
This expression is the canonical prime factorization of .
Determining the Total Number of Positive Divisors
The canonical prime factorization allows one to directly compute the total number of positive divisors without enumerating each factor. Any divisor of must take the form:
Because there are independent choices for each exponent (ranging from 0 to ), the Multiplication Principle of counting gives:
For example, consider :
The total number of positive divisors is:
Divisibility Rules and Modular Algebraic Proofs
Divisibility tests are mental shortcuts based on our base-10 positional notation. Any integer with digits can be represented as a polynomial in powers of 10:
1. Rules for 2, 5, and 10 (Last Digit Tests)
Because the base , 10 is divisible by 2, 5, and 10. Consequently, every term for is a multiple of 10 and contributes zero to the remainder modulo 2, 5, or 10:
- Divisibility by 2: The units digit must be even ().
- Divisibility by 5: The units digit must be or .
- Divisibility by 10: The units digit must be .
2. Rules for 4 and 8 (Sub-Block Tests)
- Divisibility by 4: Since , all terms for are divisible by 4. Thus: An integer is divisible by 4 if and only if its last two digits form a number divisible by 4 (e.g., in 73,528, , so 73,528 is divisible by 4).
- Divisibility by 8: Since , all terms for are divisible by 8. An integer is divisible by 8 if and only if its last three digits form a number divisible by 8 (e.g., in 54,832, , so 54,832 is divisible by 8).
3. Rules for 3 and 9 (Sum of Digits Tests)
Notice that , , and generally , where is divisible by 9 (and thus by 3):
Substituting this into the base-10 polynomial expansion:
Because the first sum is a multiple of 9, leaves the exact same remainder as the sum of its digits:
- Rule for 3: An integer is divisible by 3 if the sum of its digits is divisible by 3.
- Rule for 9: An integer is divisible by 9 if the sum of its digits is divisible by 9.
4. Rule for 6 (Composite Divisibility)
Because and , an integer is divisible by 6 if and only if it is divisible by both 2 and 3 simultaneously. Thus, the number must be even and the sum of its digits must be a multiple of 3.
5. Rule for 11 (Alternating Sum of Digits)
Notice that . Therefore, powers of 10 alternate signs modulo 11:
Substituting into the expansion yields:
An integer is divisible by 11 if and only if the alternating sum of its digits (starting with the units digit as positive) is a multiple of 11 (including 0). For example, test :
Since 11 is divisible by 11, is divisible by 11 ().
6. Rule for 7 (Truncation and Doubling)
To test an integer (where is the last digit and is the truncated prefix), subtract twice the last digit from the prefix: . Proof: Consider the linear combination:
Because is a multiple of 7, . Because , is divisible by 7 if and only if is divisible by 7. For example, test 2,464:
- Prefix 246, last digit 4: .
- Repeat for 238: Prefix 23, last digit 8: . Since 7 is divisible by 7, 2,464 is divisible by 7 ().
Reference Table: Divisibility Rules
| Divisor | Test Criterion | Mathematical Justification | Application Example |
|---|---|---|---|
| 2 | Last digit is or | ; only units digit affects parity | : ends in 6 (divisible) |
| 3 | Sum of digits is divisible by 3 | ; each place value contributes face value | : (divisible) |
| 4 | Last two digits form a number divisible by 4 | ; powers of 10 above tens are multiples of 4 | : (divisible) |
| 5 | Last digit is 0 or 5 | ; only units digit affects remainder | : ends in 5 (divisible) |
| 6 | Satisfies both rule for 2 and rule for 3 | ; composite divisor property | : even and (divisible) |
| 7 | Truncated number minus twice the last digit is divisible by 7 | : (divisible) | |
| 8 | Last three digits form a number divisible by 8 | ; thousands and higher are multiples of 8 | : (divisible) |
| 9 | Sum of digits is divisible by 9 | ; sum of digits equals remainder mod 9 | : (divisible) |
| 10 | Last digit is 0 | : ends in 0 (divisible) | |
| 11 | Alternating sum of digits is divisible by 11 | : (divisible) |
Algorithmic Methods for GCF and LCM
- The Greatest Common Factor (GCF), or Greatest Common Divisor (GCD), of two positive integers and is the largest positive integer that divides both and without remainder. Note that .
- The Least Common Multiple (LCM) of two positive integers and is the smallest positive integer that is a multiple of both and . Note that .
Method 1: Prime Factorization and Min/Max Exponent Rules
Express and in their canonical prime factorizations using all prime factors present in either number (assigning exponent 0 if a prime does not divide a number):
- GCF Formula: Take the minimum exponent for each shared prime factor:
- LCM Formula: Take the maximum exponent across all prime factors:
For example, to find the GCF and LCM of and :
- .
- .
Method 2: The Venn Diagram Representation
Draw two overlapping circles representing numbers and :
- Place each instance of a common prime factor in the intersection ().
- Place remaining prime factors unique to in the left region, and those unique to in the right region.
- GCF is the product of all prime factors in the intersection.
- LCM is the product of all prime factors in the entire union ().
Method 3: The Ladder (Cake / Upside-Down Division) Method
Write and side by side and divide both concurrently by a common prime factor. Repeat until the resulting quotients are coprime (share no common factor other than 1):
- The GCF is the product of the divisors along the left vertical column: .
- The LCM is the product of the left vertical column and the bottom quotient row (forming an "L" shape): .
Method 4: The Euclidean Algorithm
For large integers where prime factorization is computationally difficult, the Euclidean Algorithm computes the GCF in a few steps. It relies on the principle that the greatest common divisor of two integers divides their difference and remainder:
Applying successive division with remainder: , then . The process terminates when the remainder reaches 0; the last non-zero remainder is the GCF.
The Fundamental Product Identity
For any two positive integers and :
Proof: In the prime factorization formulas, each prime contributes to the GCF and to the LCM. Because for any two real numbers , multiplying the two yields:
Taking the product across all primes reproduces . Note: this product identity holds strictly for two numbers and does not generalize directly to three or more numbers without inclusion-exclusion adjustments.
Real-World Applications and Problem Solving
A critical competency on educator certification exams is distinguishing between word problems that require finding the GCF versus those that require finding the LCM.
Contexts Requiring GCF (Partitioning and Tiling)
GCF problems typically involve breaking down quantities into smaller, equal subsets without leftovers:
- Equal Partitioning: Creating identical gift bags, medical kits, or care packages from different quantities of items (e.g., distributing 48 pens and 64 notebooks into identical kits).
- Cutting Materials: Cutting boards, fabrics, or wires of lengths and into pieces of the greatest possible equal length without any waste.
- Geometric Tiling: Paving a rectangular floor of dimensions with the largest possible congruent square tiles without cutting any tiles.
Contexts Requiring LCM (Synchronization and Cycles)
LCM problems typically involve periodic events that repeat at fixed time or distance intervals and ask when the events will synchronize again:
- Periodic Synchronization: Two or more blinking lighthouses, bell chimes, or traffic signals that flash or chime at intervals of and seconds, asking when they will flash simultaneously next.
- Track Laps: Runners running around a circular track who complete one lap in and minutes, asking when they will meet again at the starting line.
- Packaging Discrepancies: Hot dogs packaged in packs of 10 and hot dog buns in packs of 8, asking for the minimum number of each package to buy so that no hot dogs or buns remain unmatched.
Worked Number Theory Examples
Worked Example 1: Divisor Count and Factor Analysis
Problem: Find the canonical prime factorization and total number of positive divisors for 720.
Solution: Step 1: Factor 720 using a factor tree or successive division:
Step 2: Apply the divisor formula :
Therefore, 720 has exactly 30 positive divisors.
Worked Example 2: The Euclidean Algorithm for Large Integers
Problem: Find the GCF of 546 and 126 using the Euclidean algorithm, and then compute their LCM using the product identity.
Solution: Step 1: Execute successive divisions with remainder:
Because the remainder is 0, the last non-zero remainder is 42. Thus:
Step 2: Use the identity :
Worked Example 3: Floor Tiling Application (GCF)
Problem: A rectangular craft table measures 140 cm by 84 cm. A teacher wishes to cover the entire tabletop completely with congruent square tiles of the largest possible whole-number side length, without cutting any tiles. What is the side length of the tile, and how many tiles are required?
Solution: Step 1: Identify that tiling without cutting requires a common divisor of both length and width. The largest tile requires the GCF of 140 and 84. Factor both numbers:
The side length of the largest square tile is 28 cm.
Step 2: Determine total tile count:
- Number of tiles along length: .
- Number of tiles along width: .
- Total tiles needed: .
Worked Example 4: Cyclic Synchronization Application (LCM)
Problem: Three city transit buses depart a central terminal at 6:00 AM. Route A bus departs every 12 minutes, Route B bus departs every 18 minutes, and Route C bus departs every 30 minutes. At what time will all three buses depart the central terminal together again?
Solution: Step 1: Identify that finding the next simultaneous departure requires finding the Least Common Multiple of the three cycle periods: .
Step 2: Prime factorize each time interval:
Step 3: Apply the maximum exponent formula across all three prime factorizations:
Step 4: Convert minutes to hours:
Adding 3 hours to 6:00 AM gives 9:00 AM as the next simultaneous departure.
A rectangular courtyard measuring 168 feet by 180 feet is to be completely paved with congruent square tiles without cutting any tiles. What is the side length of the largest square tile that can be used, and how many total tiles will be required?
Tile side: 6 feet; Total tiles: 840 tiles
Tile side: 12 feet; Total tiles: 210 tiles
Tile side: 24 feet; Total tiles: 105 tiles
Tile side: 4 feet; Total tiles: 1,890 tiles
Why does the divisibility test for 9 state that an integer is divisible by 9 if and only if the sum of its digits is divisible by 9?
Because in base 10, every power of 10 can be expressed as 10^k = (99...9) + 1, meaning 10^k is congruent to 1 modulo 9, so each digit contributes exactly its face value to the remainder modulo 9.
Because 9 is an odd composite number, and all composite numbers share the digit-sum property with their prime factors.
Because the last digit of any multiple of 9 must be 9 or 0, requiring the remaining leading digits to sum to a multiple of 9.
Because dividing 10 by 9 yields a terminating decimal remainder of 0.1, which preserves place value sums across all powers of 10.
Two positive integers a and b have a Greatest Common Factor of 18 and a Least Common Multiple of 1,080. If one of the numbers is 216, what is the value of the other number?
72
120
90
144
Sections you finish are checked off in the contents.