We have eighteen blue pencils and twenty-four red pencils. We want the largest possible number of identical packs, each with the same number of blue pencils and the same number of red pencils, leaving none over. Adding all pencils and dividing arbitrarily does not solve the problem: each color must also be distributed identically.
Goal: explain divisibility using remainders, distinguish primes from composites, and choose and find a GCD or LCM for an appropriate problem. Prerequisites: multiplication and division with remainders and operation order. We use positive integers for factors and multiples here. Zero may be the number tested by a divisibility rule, but never the divisor.
1. Starting question
Can eighteen counters be packed into groups of four without leftovers? What about groups of three? Write an equality checking each result.
Diagnostic answer
Groups of four give four groups and two leftovers: 18 = 4 × 4 + 2. Groups of three give six groups with no remainder: 18 = 3 × 6. Revisit the remainder section of the four-operations lesson if this check is difficult.
2. Divisors and multiples: two sides of one relationship
When 18 = 3 × 6, eighteen is divisible by three, three is a divisor or factor of eighteen, and eighteen is a multiple of three. Divisibility means an integer quotient and zero remainder. It does not merely mean that the divide button can be pressed: eighteen divided by four can be calculated, but eighteen is not divisible by four.
Find the positive factors of eighteen in pairs: 1 × 18, 2 × 9, 3 × 6. The sorted list is 1, 2, 3, 6, 9, 18. Positive multiples of eighteen come from multiplying by 1, 2, 3, …: 18, 36, 54, … . The factor list is finite; the multiple list continues indefinitely.
To find all factors in pairs, we need not test every number up to the number itself. Once the two members of a pair have exchanged roles, no new pair appears. For thirty-six, 6 × 6 is the boundary: every factor greater than six has a partner smaller than six already tested.
3. Divisibility rules come from place value
By 2, 5 and 10: every ten is divisible by these numbers, so the ones digit decides divisibility in decimal notation. An even ones digit works for two; zero or five for five; zero for ten. Thus 375 is divisible by five, but not two or ten.
By 3 and 9: ten is one more than nine; one hundred is one more than ninety-nine. Each digit's place value can therefore be split into the digit itself and a part divisible by nine. For example:
The first two parts are divisible by nine, hence also by three. The remaining decision depends on the digit sum, twelve. Therefore 372 is divisible by three but not nine. The same reasoning continues for later powers of ten; this is not an unexplained trick.
By 4: every hundred is divisible by four, so only the number formed by the final two digits matters. 1316 consists of thirteen hundreds and sixteen, both divisible by four. For six, both divisibility by two and divisibility by three are required; either condition alone is insufficient.
These tests are shortcuts. When you do not know a rule for a divisor, division and the remainder remain valid methods.
4. Prime, composite and the special case of one
A positive integer greater than one with exactly two positive factors, one and itself, is prime: 2, 3, 5, 7, 11. A number greater than one with another factor is composite, such as twelve, which equals 3 × 4.
One is not prime because it has only one positive factor; it is not composite either. Zero is also outside this prime/composite classification of positive integers. Two is the only even prime: every larger even number is divisible by two, which is then neither one nor the number itself. But odd does not imply prime: nine equals 3 × 3.
To test twenty-nine, checking the prime factors two, three and five is sufficient. Why stop there? If both factors exceeded five, the smallest product would be 6 × 6 = 36, greater than twenty-nine. A composite twenty-nine would have a factor at most five, and that factor would itself contain a prime factor. Twenty-nine is divisible by none of two, three or five, so it is prime. For a larger candidate, the checking boundary changes; those three tests are not always enough.
5. Prime factorization
For sixty, write 60 = 6 × 10 = 2 × 3 × 2 × 5. Reorder to 2 × 2 × 3 × 5. Every final factor is prime. Starting with 4 × 15 reaches the same prime factors in another order. Unique prime factorization states that for every positive integer greater than one, the prime factors and their repetition counts are unique. A full proof requires additional arguments and is outside this lesson.
Here 2² is introduced only as shorthand for 2 × 2; it means using two as a factor twice, not doubling it. General exponent rules come in their own lesson. Thus 60 = 2² × 3 × 5.
A tree ends when every leaf is prime. Stopping at six or fifteen is not a complete prime factorization.
6. GCD: the greatest number of identical packs
The greatest common divisor, or GCD, of two numbers is the greatest positive integer dividing both. Factors of eighteen: 1, 2, 3, 6, 9, 18. Factors of twenty-four: 1, 2, 3, 4, 6, 8, 12, 24. Common factors are 1, 2, 3 and 6; the greatest is six.
In the pencils problem, the number of packs must divide both eighteen and twenty-four without a remainder. Therefore six is the greatest possible number of packs. Each contains three blue and four red pencils. The GCD answers the number of packs; “How many pencils in each pack?” has answer seven. Obtain units from the story.
Using factorization, 18 = 2 × 3 × 3 and 24 = 2 × 2 × 2 × 3. Take only as many copies of each shared prime as both numbers contain: one two and one three, giving six. Taking two threes would fail because twenty-four contains only one.
A shorter route for larger numbers: in 24 = 18 × 1 + 6, every common factor of twenty-four and eighteen also divides their difference, six. Conversely, a common factor of eighteen and six divides their sum, twenty-four. The two pairs therefore have the same common factors. Now 18 = 6 × 3 + 0, giving GCD six. This is the idea of the Euclidean algorithm: replace the pair by the second number and the remainder until the remainder is zero. The last nonzero remainder is the answer.
7. LCM: the first shared repetition
The least common multiple, or LCM, is the smallest positive quantity that is a multiple of both numbers. One light flashes every six seconds and another every eight; they flash together now. Multiples of six are 6, 12, 18, 24, …; multiples of eight are 8, 16, 24, … . Their first later simultaneous flash is twenty-four seconds from now. Zero is the shared starting time, but not the next occurrence.
Using factorization, 6 = 2 × 3 and 8 = 2 × 2 × 2. A common multiple needs all three twos and one three; the smallest choice is 2 × 2 × 2 × 3 = 24. For GCD we took the smaller repetition count of shared factors; for LCM we need the greater repetition count of every factor present.
The LCM is not always the product of the two numbers. For six and eight, forty-eight is a common multiple but not the least. For positive integers, GCD × LCM = first number × second number: for each prime, the smaller and greater repetition counts add to the two original counts. This relationship helps check a result but does not replace choosing the correct kind of problem.
8. Independent practice
- Is 450 divisible by 2, 3, 5, 9 and 10? Explain each answer.
Answer 1
Yes to all. The ones digit is zero and the digit sum is nine. The zero satisfies the tests for two, five and ten; the sum satisfies three and nine. Check nine using 9 × 50 = 450.
- Classify 1, 2, 21 and 31 as prime or composite. For thirty-one, explain the checking boundary.
Answer 2
One is neither; two is prime; twenty-one is composite because 3 × 7 = 21. Thirty-one is prime: testing two, three and five suffices, since two factors both at least six would have product at least thirty-six. None of the tested primes divides thirty-one.
- Find the complete prime factorization of 84.
Answer 3
84 = 2 × 42 = 2 × 2 × 21 = 2 × 2 × 3 × 7. Two, three and seven are prime; twenty-one must not be treated as a finished leaf.
- Pack twenty apples and thirty oranges into the greatest number of identical bags, with no leftovers. How many bags, and how many of each fruit per bag?
Answer 4
GCD of twenty and thirty is ten: ten bags, each with two apples and three oranges. Dividing only the total fifty would not ensure an identical count of each kind.
- Two periodic signals repeat every nine and twelve minutes and coincide now. When is the first later coincidence?
Answer 5
LCM is thirty-six: 9 = 3 × 3 and 12 = 2 × 2 × 3; we need 2 × 2 × 3 × 3. The answer is thirty-six minutes later. The GCD, three, does not answer this question.
- Use repeated division to find the GCD of forty-eight and eighteen; then check the LCM.
Answer 6
48 = 18 × 2 + 12; 18 = 12 × 1 + 6; 12 = 6 × 2 + 0. GCD is six. LCM is 48 × 18 ÷ 6 = 144; 144 is both three times forty-eight and eight times eighteen.
9. Continue and review
Without looking, distinguish a factor from a multiple using twelve. Explain why one is not prime, and why identical packs require a common divisor while repeated events require a common multiple.
Continue when exercises 3, 4 and 5 have explanations, checks and units. If GCD and LCM get confused, ask whether the answer must “divide both quantities” or “be divisible by both.” If prime factors go missing, multiply the tree's leaves back together. In a later review, find the GCD and LCM of twelve and eighteen again: check values are six and thirty-six.
Next: estimation and checking. Content availability does not establish personal learning.
Authorship note
Examples, diagram and arguments were developed for this course. “Euclidean algorithm” names the standard repeated-division method; no date or historical attribution claim is made. Suggested reference: divisibility and factorization in OpenStax, Prealgebra 2e; online review was unavailable in this session. Diagram provenance.