Finding factors of a number

Finding factors of a number

Finding factors of a number

A factor of a number is any whole number that divides it exactly, with no remainder. The job is to list every factor — without missing any.

Start with 1, work up

For any number, 1 and the number itself are always factors. Start there, then check 2, 3, 4, …

Factors of 24:

Try dividing 24 byDoes it work?Pair
1yes1 × 24
2yes (24 ÷ 2 = 12)2 × 12
3yes (24 ÷ 3 = 8)3 × 8
4yes (24 ÷ 4 = 6)4 × 6
5no (24 ÷ 5 leaves a remainder)
6yes (24 ÷ 6 = 4) — already found!

So the factors of 24 are: 1, 2, 3, 4, 6, 8, 12, 24 — eight factors, four pairs.

You can stop at the square root

Notice in the table that the pairs are symmetric: 1×24, 2×12, 3×8, 4×6. Once the two factors in the pair get close to each other, you're about to start repeating.

A neat shortcut: stop checking once you reach .

  • For 24, ≈ 4.9. So you only need to test 1, 2, 3, 4. Every factor you find before that has a "partner" larger than 4.9 — you don't need to look for it separately.
  • For 36, exactly. Test 1, 2, 3, 4, 5, 6. When 6 × 6 = 36 you've reached the middle of the pairs.

Square numbers have an odd number of factors

When a number is a perfect square (like 36), one of its factor pairs is a number times itself (6 × 6). That gives an odd total count of factors.

Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36 — nine factors.

Other numbers have an even count, because every factor has a different partner.

Quick divisibility tricks

To test divisibility byTrick
2the number is even (ends in 0, 2, 4, 6, 8)
3the sum of the digits is a multiple of 3
5the number ends in 0 or 5
9the sum of the digits is a multiple of 9
10the number ends in 0

For 24: 2 + 4 = 6, which is a multiple of 3, so 24 is divisible by 3. ✓

What's next

Try it out