Factors of a Number
A factor of a number divides into it evenly, leaving no remainder. If , then both and are factors of .
To find all the factors of a number, work in pairs. Start at and count upward: for each number that divides evenly, write down both partners. Stop once the pairs start to repeat.
Every whole number greater than factors into primes in exactly one way — the fundamental theorem of arithmetic — and that factorization answers most questions about it. The greatest common factor takes the smallest power of each shared prime; the least common multiple takes the largest power of every prime that appears.
Why can you stop searching once the pairs meet? Factors come in pairs whose product is the number, and in each pair one factor is at most the square root and the other is at least the square root. For , , so every pair has a partner of or less; after testing through you have found every factor, both small and large.
Test each number in order and record the factor pairs:
(Note does not divide , so it is skipped.) Collecting both partners in order:
So has factors.
Stopping at the small factors: "the factors of are ." Each of those has a partner: (and itself). A factor list is not complete until every pair is written down.
Every whole number has and itself as factors. When a factor pair is a number times itself (like ), that number is listed only once — this happens for perfect squares.
List every factor of . How many are there?
Show the answerHide the answer
Test to (since ) and record pairs: , , , , , ( does not divide ). The factors are : twelve of them.
Multiples of a Number
A multiple of a number is what you get by multiplying it by In other words, it is any number in that number's “times table.” Multiples go on forever, while factors are a short, finite list.
The multiples of are the landing spots of equal jumps of starting at . That picture makes "is a multiple of ?" a question about landing: jumps reach and reach , so is jumped over. Division says the same thing, since the remainder is how far is past the last landing spot.
List the first five multiples of , then decide whether is a multiple of .
Because the division leaves a remainder, is not a multiple of .
Confusing "multiple of" with "factor of": saying is a multiple of . Multiples are the bigger numbers in the times table: is a multiple of , and is a factor of .
“Factor” and “multiple” are opposite viewpoints of the same fact: since , we can say is a factor of and is a multiple of . Factors are smaller (or equal); multiples are larger (or equal).
List the multiples of between and . Is one of them?
Show the answerHide the answer
The first multiple of past is . Counting up by : . Yes, is on the list.
Prime and Composite Numbers
- A prime number has exactly two factors: and itself. The first primes are
- A composite number has more than two factors — it can be broken into smaller factors.
- The number is neither prime nor composite: it has only one factor.
- is the only even prime; every other even number has as an extra factor.
Arrange dots in a rectangle. Every number can form a single row, ; a composite number can also form a genuine rectangle with at least two rows, and those rows and columns are its other factors. A prime cannot: its dots only ever make one long row. The square-root test works because any rectangle for has a side no longer than .
Classify and .
To test a number, try dividing by the small primes You only need to check primes up to its square root.
Calling prime ("it is only divisible by and itself"). A prime has exactly two different factors; has only one. Keeping out is what makes prime factorizations unique: otherwise would be two different ones.
To check whether a number is prime, you do not have to test every smaller number — only primes up to its square root. For , checking is enough (since ), and none divide it, so is prime.
Is prime? Is prime? Which primes do you need to test?
Show the answerHide the answer
and , so testing the primes is enough for both. , so it is composite. is not divisible by (odd), (digit sum ), (ends in ) or (, ), so is prime.
Divisibility Rules
These shortcuts tell you if a number divides evenly without doing the long division.
- 2: the last digit is even ().
- 3: the sum of the digits is divisible by .
- 4: the number formed by the last two digits is divisible by .
- 5: the last digit is or .
- 6: it passes the tests for both and .
- 9: the sum of the digits is divisible by .
- 10: the last digit is .
Each rule comes from place value. Every power of is a multiple of and of , so only the ones digit can spoil divisibility by or . Every is one more than a multiple of (), so a number leaves the same remainder on division by (or ) as its digit sum does. And is a multiple of , so only the last two digits matter for .
Which of divide ?
- 2: last digit is even ✓
- 3: digits , divisible by ✓
- 4: last two digits ✓
- 5: ends in ✓
- 6: passes and ✓
- 9: digit sum is not divisible by — no
- 10: ends in ✓
So is divisible by and , but not .
Using the digit-sum test for : " is not divisible by , so is not." The digit sum only works for and . For , check the last two digits: , so is divisible by .
The rule for is really the rules for and working together. In the same way, a number divisible by is automatically divisible by — but not the other way around.
Which of divide ?
Show the answerHide the answer
Last digit : divisible by , and . Digit sum : divisible by and . Last two digits : divisible by . Passes and , so divisible by . All seven divide .
Prime Factorization
The prime factorization of a number writes it as a product of prime numbers only. Every composite number has exactly one prime factorization (in some order). A factor tree is the easiest way to find it: split the number into any two factors, then keep splitting until every branch ends in a prime. Finally, write repeated primes using exponents.
A factor tree always ends in the same primes because of the Fundamental Theorem of Arithmetic: every whole number greater than is a product of primes in exactly one way, apart from order. Splitting as or just visits the primes in a different order. That uniqueness is what makes the factorization useful: it is a fingerprint of the number.
Split step by step:
Group and order the primes, then use exponents:
Check: ✓
Stopping at a composite leaf: "." Neither nor is prime; keep splitting until every leaf is prime: and .
No matter which factors you split off first, an honest factor tree always ends with the same set of primes. Starting or leads to the identical answer .
Write the prime factorization of with exponents.
Show the answerHide the answer
Split repeatedly: . So . Check: .
Greatest Common Factor (GCF)
The greatest common factor of two numbers is the biggest number that divides both. There are two reliable methods:
- Listing: list the factors of each number, then pick the largest one they share.
- Prime factorization: factor each number into primes, then multiply the primes they have in common (using the smaller exponent of each shared prime).
Any factor of is built from some of 's primes (), and any factor of from some of its primes (). A common factor can only use primes that both numbers have, so the largest one uses all of the shared primes, , and nothing else. That is the "smaller exponent of each shared prime" rule in pictures.
Listing method:
Shared factors: . The greatest is .
Prime-factorization method:
Take the shared primes at their smaller powers:
Taking the larger power of shared primes: for the GCF of and . That is bigger than both numbers, so it cannot divide either one. The GCF uses the smaller powers: .
The prime-factorization method wins for big numbers where listing every factor is slow. For the GCF, keep only primes that appear in both numbers, each raised to the lower power.
Find the GCF of and using prime factorizations.
Show the answerHide the answer
and . Shared primes at their smaller powers: . Check: and .
Least Common Multiple (LCM)
The least common multiple of two numbers is the smallest number that both divide into — the first multiple they share. Again, two methods:
- Listing: list the multiples of each number until one appears in both lists.
- Prime factorization: factor each number, then multiply every prime that appears in either number, using the larger exponent of each.
A common multiple of and must contain all of 's primes and all of 's, so it needs at least three s and one . The smallest number with exactly that much is . After , the lists keep matching every (), because every common multiple is a multiple of the LCM.
Listing method:
The first shared multiple is .
Prime-factorization method:
Take every prime at its larger power:
Multiplying the numbers and calling it the LCM: . That is a common multiple, but not the least; it double-counts the shared factor . The product equals the LCM only when the GCF is .
For the LCM, use the higher power of every prime; for the GCF, use the lower power of only the shared primes. A handy check: the product of the two numbers. Here ✓
Find the LCM of and , and check that GCF LCM equals .
Show the answerHide the answer
and . Every prime at its larger power: . The GCF uses the smaller powers of shared primes: . Check: .
Word Problems: GCF or LCM?
The hardest part of a word problem is choosing the right tool. Watch for these signals:
- Use the GCF when you split or group things into the largest equal piles, rows, or teams — the numbers get smaller. Clues: “greatest,” “largest,” “equal groups,” “split evenly.”
- Use the LCM when events repeat and you want the next time they line up, or the smallest amount that works for both — the numbers get bigger. Clues: “at the same time,” “again,” “least,” “smallest,” “every.”
The GCF answers "into how many identical groups can both amounts be split?", because the number of groups must divide both amounts, and the largest such number is the greatest common factor. The LCM answers "when do two repeating cycles line up again?", because the meeting time must be a multiple of both cycle lengths. So the test is simple: dividing things up points to factors, repeating in time points to multiples.
A teacher has pencils and erasers. She wants to make identical goody bags using all the supplies, with the greatest number of bags. How many bags, and what is in each?
We are splitting into the largest equal groups GCF.
So bags, each with pencils and erasers.
Using the LCM for the goody bags: bags. There are only pencils, so bags cannot each get one. Splitting into equal groups calls for a common factor, and the greatest is .
One lighthouse flashes every seconds and another every seconds. They just flashed together. When will they next flash at the same time?
Repeating events lining up again LCM.
They flash together again after seconds.
Quick gut-check: if the answer should be smaller than the numbers in the problem (fewer, larger groups), it is a GCF. If the answer should be larger (a later time, a bigger shared total), it is an LCM.
(a) Buses leave every minutes and trains every minutes; both left at . When do they next leave together? (b) A cm by cm board is cut into equal squares with no waste. What is the largest square possible?
Show the answerHide the answer
(a) Repeating cycles lining up: LCM. and , so minutes: at . (b) The square's side must divide both and : GCF. and , so cm squares ( of them).
Going Deeper: Advanced Number Theory
Once a number is written in prime-power form, you can count how many factors it has without listing a single one. If
then the number of divisors is
The idea: when building a divisor, the prime can appear or times — that is independent choices. Multiplying the choices for each prime counts every divisor exactly once.
First factor into primes:
The exponents are and . Add one to each and multiply:
So has exactly divisors — far quicker than hunting for all factor pairs by hand.
A number is a perfect square exactly when every exponent in its prime factorization is even — which forces every to be odd, so is odd. In fact, perfect squares are the only numbers with an odd number of divisors, because the “middle” pair is counted just once.
You can also add up all the divisors straight from the prime factorization. For each prime power, sum the powers from up to , then multiply those sums together:
Multiplying the parentheses out reproduces every divisor of exactly once, so their grand total falls out automatically.
Using , sum each prime's powers separately:
Multiply the three totals:
All divisors of add up to .
For any two whole numbers and , the greatest common factor and least common multiple are locked together by
This makes finding the LCM effortless once you know the GCF (or vice versa): just rearrange.
Why it works: for each prime, the GCF takes the smaller exponent and the LCM takes the larger one — together they use up exactly the two exponents that appear in and .
We have . Instead of listing multiples, use the theorem:
Check: and , so the LCM is ✓
For large numbers, factoring can be slow. The Euclidean algorithm finds the GCF using only repeated division with remainder. Repeatedly replace the larger number by the remainder when it is divided by the smaller:
and stop when the remainder hits . The last nonzero remainder is the GCF. It works because any common factor of and is also a factor of their remainder.
Divide, keep the remainder, repeat:
The last nonzero remainder is , so . Check: and . ✓
Compare a number to the sum of its proper divisors (all its divisors except itself):
- Perfect: the proper divisors add up to the number exactly. The smallest is ; the next is .
- Abundant: the proper divisors sum to more than the number. Example: , since .
- Deficient: the proper divisors sum to less than the number. Example: , since . Every prime is deficient (its only proper divisor is ).
Two numbers are relatively prime (or coprime) when their only common factor is , i.e. . They need not be prime themselves: and are relatively prime because and share no primes. When two numbers are coprime, their LCM is simply their product, since becomes .
Why It Works
For and : a common factor can use at most and (the smaller exponents), so ; a common multiple must contain and (the larger exponents), so . Notice — in general , because each prime's exponent is min + max the sum of the two exponents.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. Once you know the greatest common factor, the least common multiple is free.
Example. , so .
Why it works. Write each number as a product of primes. For each prime, takes the smaller exponent and takes the larger. Smaller larger the two exponents added, which is exactly the exponent in .
Tip. Find the (easier) first, then use .