What Is a Factor?
A factor (also called a divisor) of a positive integer n is any positive integer that divides n evenly — that is, with no remainder.
For example, the factors of 18 are 1, 2, 3, 6, 9, and 18, because each divides 18 without a remainder:
- 18 ÷ 1 = 18 ✓
- 18 ÷ 2 = 9 ✓
- 18 ÷ 3 = 6 ✓
- 18 ÷ 6 = 3 ✓
- 18 ÷ 9 = 2 ✓
- 18 ÷ 18 = 1 ✓
Every positive integer has at least two factors: 1 and itself. Numbers with exactly two factors are prime numbers.
How to Find All Factors
The most efficient method checks every integer from 1 up to √n:
- For each integer i from 1 to √n, check whether n ÷ i leaves no remainder.
- If it divides evenly, both i and n ÷ i are factors.
- If i = √n exactly (a perfect square), add it only once.
Example: factors of 36
√36 = 6, so check i = 1 through 6:
| i | 36 ÷ i | Factors found |
|---|---|---|
| 1 | 36 | 1, 36 |
| 2 | 18 | 2, 18 |
| 3 | 12 | 3, 12 |
| 4 | 9 | 4, 9 |
| 5 | 7.2 | — (not whole) |
| 6 | 6 | 6 (once) |
Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36 — 9 factors total.
Factor Pairs
Factor pairs are two numbers that multiply to give the original number. Every factor has exactly one partner:
Factor pairs of 36:
- 1 × 36
- 2 × 18
- 3 × 12
- 4 × 9
- 6 × 6
When the two numbers in a pair are equal (here, 6 × 6), the original number is a perfect square.
Prime Factorization
Prime factorization expresses a number as a product of prime numbers only. It is unique for every integer greater than 1 (Fundamental Theorem of Arithmetic).
Method: Divide repeatedly by the smallest prime that divides the number.
Example: prime factorization of 360
360 ÷ 2 = 180 → 180 ÷ 2 = 90 → 90 ÷ 2 = 45 → 45 ÷ 3 = 15 → 15 ÷ 3 = 5 → 5 is prime
360 = 2³ × 3² × 5
Worked Examples
Factors of 100
Factors: 1, 2, 4, 5, 10, 20, 25, 50, 100 (9 factors)
Prime factorization: 100 = 2² × 5²
Factors of 64
Factors: 1, 2, 4, 8, 16, 32, 64 (7 factors)
Prime factorization: 64 = 2⁶
Factors of 97
97 is a prime number — its only factors are 1 and 97.
Prime factorization: 97 = 97
Sources
- Wikipedia. Divisor.
- Wikipedia. Integer factorization.