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.
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.
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.
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.
List the first five multiples of , then decide whether is a multiple of .
Because the division leaves a remainder, is not a multiple 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).
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.
Classify and .
To test a number, try dividing by the small primes You only need to check primes up to its square root.
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.
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 .
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 .
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.
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.
Split step by step:
Group and order the primes, then use exponents:
Check: ✓
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 .
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).
Listing method:
Shared factors: . The greatest is .
Prime-factorization method:
Take the shared primes at their 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.
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.
Listing method:
The first shared multiple is .
Prime-factorization method:
Take every prime at its larger power:
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 ✓
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.”
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.
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.
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 .
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 .