Chapter 1 · Number foundations review

Divisibility Rules and Prime Factorization

Use digit patterns to spot the factors of a whole number, then break any whole number greater than one into a product of primes.

15 min read

You already know how to divide. Now you will learn to tell, often before you divide at all, which numbers divide another number with nothing left over. The numbers you test in this lesson are all positive whole numbers: 11, 22, 33 and so on.

A factor of a whole number nn is a whole number aa that you can multiply by some whole number bb to get nn, so n=a×bn = a \times b. For example, 44 is a factor of 3636 because 36=4×936 = 4 \times 9. You can also say that 3636 is divisible by 44, or that 3636 is a multiple of 44. All three statements mean the same thing: the division 36÷4=936 \div 4 = 9 gives a whole number with nothing left over.

A quotient is the result of a division. A quotient that is not a whole number tells you the opposite: since 34÷4=8.534 \div 4 = 8.5, the number 44 is not a factor of 3434.

Dividing every time is slow. A divisibility rule is a shortcut. It uses the digits of nn to tell you whether a certain number is a factor of nn before you divide.

Why can digits tell you about factors? Split a number by place value and use this idea: when one part of a sum is divisible by a positive whole number dd, the whole sum is divisible by dd exactly when the other part is too. The divisible part makes equal groups of dd with nothing left over, so any leftover can only come from the other part.

Take 372=37×10+2372 = 37 \times 10 + 2. Because 10=2×510 = 2 \times 5, the part 37×1037 \times 10 is divisible by 22, by 55 and by 1010. So you only need to check the ones digit. The ones digit 22 is divisible by 22, so 22 is a factor of 372372. It is not divisible by 55 or by 1010, so 55 and 1010 are not factors of 372372. A whole number that is divisible by 22 is called even, and any other whole number is called odd.

For 44, split off the hundreds instead: 372=3×100+72372 = 3 \times 100 + 72. Because 100=4×25100 = 4 \times 25, the part 3×1003 \times 100 is divisible by 44. So you only need to check the number made by the last two digits. Here 72=4×1872 = 4 \times 18, so 44 is a factor of 372372.

The rules for 33 and 99 use every digit. Since 100=99+1100 = 99 + 1 and 10=9+110 = 9 + 1, each hundred and each ten is a multiple of 99 plus 11 more:

372=3×100+7×10+2=(3×99+7×9)+(3+7+2)372 = 3 \times 100 + 7 \times 10 + 2 = (3 \times 99 + 7 \times 9) + (3 + 7 + 2)

The first part is divisible by 99, because 99=9×1199 = 9 \times 11, and so also by 33, because 9=3×39 = 3 \times 3. What is left is the digit sum, the sum of the digits: 3+7+2=123 + 7 + 2 = 12. Since 12=3×412 = 3 \times 4, the number 33 is a factor of 372372. Since 1212 lies between 9×1=99 \times 1 = 9 and 9×2=189 \times 2 = 18, it is not a multiple of 99, so 99 is not a factor of 372372.

Longer numbers work the same way, because 1,000=999+11{,}000 = 999 + 1 and 999=9×111999 = 9 \times 111, and so on for every larger place value.

Rules for any positive whole number, tested on 740. A pass means it is a factor; a fail means it is not.
Possible factorThe number is divisible by it exactly whenTest on 740Factor of 740?
22
the ones digit is 00, 22, 44, 66 or 88
The ones digit is 00.
Yes
33
the digit sum is divisible by 33
7+4+0=117 + 4 + 0 = 11, which lies between 3×3=93 \times 3 = 9 and 3×4=123 \times 4 = 12.
No
44
the number made by its last two digits (tens and ones) is divisible by 44
The last two digits make 4040, and 40=4×1040 = 4 \times 10.
Yes
55
the ones digit is 00 or 55
The ones digit is 00.
Yes
66
it is divisible by both 22 and 33
It passes the test for 22 but fails the test for 33.
No
99
the digit sum is divisible by 99
The digit sum 1111 lies between 9×1=99 \times 1 = 9 and 9×2=189 \times 2 = 18.
No
1010
the ones digit is 00
The ones digit is 00.
Yes

Worked example

Using the rules to find factors

Which of the numbers 22, 33, 44, 55, 66, 99 and 1010 are factors of 2,8352{,}835?

  1. Start with the ones digit, because it settles three of the numbers at once. Split 2,835 into tens and ones. The tens part is divisible by 2, by 5 and by 10, so only the ones digit, 5, matters. It is not 0, 2, 4, 6 or 8, so 2 is not a factor. It is 5, so 5 is a factor. It is not 0, so 10 is not a factor.

    2,835=283×10+52{,}835 = 283 \times 10 + 5
  2. Test 4 with the number made by the last two digits, which is 35. Dividing 35 by 4 gives 8.75. That is not a whole number, so 4 is not a factor.

    35÷4=8.7535 \div 4 = 8.75
  3. Test 3 with the digit sum. The digits add to 18, and 18 is 3 times 6. The digit sum is divisible by 3, so 3 is a factor.

    2+8+3+5=18,18=3×62 + 8 + 3 + 5 = 18, \quad 18 = 3 \times 6
  4. Test 9 with the same digit sum. Because 18 is also 9 times 2, the digit sum is divisible by 9, so 9 is a factor.

    18=9×218 = 9 \times 2
  5. Test 6 by combining two results. A number is divisible by 6 exactly when it is divisible by both 2 and 3. Step 3 showed that 3 is a factor, but step 1 showed that 2 is not, so 6 is not a factor. The division agrees: the quotient is not a whole number.

    2,835÷6=472.52{,}835 \div 6 = 472.5
  6. Check one of the factors you found by dividing. The quotient is a whole number, so 9 really is a factor, and the division turns into a multiplication fact.

    2,835÷9=315,2,835=9×3152{,}835 \div 9 = 315, \quad 2{,}835 = 9 \times 315

Answer

From the list, 33, 55 and 99 are factors of 2,8352{,}835. The numbers 22, 44, 66 and 1010 are not factors of 2,8352{,}835.

You can now spot factors quickly. Factors also sort the whole numbers greater than 11 into two kinds. A prime number has exactly two factors: 11 and itself. A composite number has more than two factors. The number 11 has only one factor, so it is neither prime nor composite.

For example, 77 is prime. Dividing 77 by 22, 33, 44, 55 or 66 never gives a whole number (for instance, 7÷2=3.57 \div 2 = 3.5), so its only factors are 11 and 77. But 1515 is composite, because 15=3×515 = 3 \times 5 gives it the extra factors 33 and 55.

The primes less than 2020 are 22, 33, 55, 77, 1111, 1313, 1717 and 1919. You will use this list to decide when a factor cannot be broken down any further.

Key concept

Every whole number greater than 1 is built from primes

A prime factorization writes a whole number greater than 11 as a product (a multiplication) in which every factor is prime, such as 60=2×2×3×560 = 2 \times 2 \times 3 \times 5. Every whole number greater than 11 has exactly one prime factorization, apart from the order of the factors. For example, starting from 60=6×1060 = 6 \times 10 gives the same primes, because 6=2×36 = 2 \times 3 and 10=2×510 = 2 \times 5. A prime number is its own prime factorization: for 1313, it is just 1313. Divisibility rules help you find the prime factors 22, 33 and 55 quickly.

To build a prime factorization, take out one prime factor at a time. Start with 6060. Its ones digit is 00, so 22 is a factor. A division gives you a multiplication fact: because 60÷2=3060 \div 2 = 30, you know that 60=2×3060 = 2 \times 30. Then do the same to the quotient, and keep going:

60=2×30=2×2×15=2×2×3×560 = 2 \times 30 = 2 \times 2 \times 15 = 2 \times 2 \times 3 \times 5

Each step replaces one factor with an equal product (30=2×1530 = 2 \times 15, then 15=3×515 = 3 \times 5), so the value of the whole product is still 6060. You stop when every factor is prime. Here 22, 33 and 55 are all on the list of primes less than 2020.

It helps to test the primes in order: 22, then 33, then 55, and so on. Keep using the same prime while it still divides the quotient. The divisibility rules make the tests for 22, 33 and 55 quick. For a prime with no rule in this lesson, such as 77, divide and check whether the quotient is a whole number.

Worked example

Prime factorization of 84

Write the prime factorization of 8484.

  1. Test the smallest prime, 2. The ones digit of 84 is 4, so 84 is even and 2 is a factor. Divide by 2, then write the division as a multiplication fact.

    84÷2=42,84=2×4284 \div 2 = 42, \quad 84 = 2 \times 42
  2. Now work on the quotient, 42. Its ones digit is 2, so 42 is even and 2 is a factor again. Replacing 42 with the equal product 2 times 21 keeps the value at 84.

    42÷2=21,84=2×2×2142 \div 2 = 21, \quad 84 = 2 \times 2 \times 21
  3. Work on 21. Its ones digit is 1, so 21 is odd and 2 is no longer a factor. Move to the next prime, 3. The digit sum is 2 + 1 = 3, which is divisible by 3, so 3 is a factor.

    21÷3=7,84=2×2×3×721 \div 3 = 7, \quad 84 = 2 \times 2 \times 3 \times 7
  4. Decide whether you can stop. The factors 2, 3 and 7 are all on the list of primes less than 20, so every factor is prime. The prime 2 is used twice, so write it with the exponent 2.

    84=2×2×3×7=22×3×784 = 2 \times 2 \times 3 \times 7 = 2^2 \times 3 \times 7
  5. Check by multiplying the prime factors back together. The product must equal the number you started with, and it does.

    2×2=4,4×3=12,12×7=842 \times 2 = 4, \quad 4 \times 3 = 12, \quad 12 \times 7 = 84

Answer

The prime factorization of 8484 is 2×2×3×72 \times 2 \times 3 \times 7, which you can also write as 22×3×72^2 \times 3 \times 7.

Worked example

A larger number with repeated primes

Write the prime factorization of 2,4752{,}475. Use exponents for repeated primes.

  1. Test 2: the ones digit is 5, so 2,475 is odd and 2 is not a factor. Test 3: the digit sum is 2 + 4 + 7 + 5 = 18, and 18 is 3 times 6, so 3 is a factor. Divide by 3 and write the multiplication fact.

    2,475÷3=825,2,475=3×8252{,}475 \div 3 = 825, \quad 2{,}475 = 3 \times 825
  2. Work on 825. You do not need to test 2 again: if 2 were a factor of 825, it would also be a factor of 3 times 825, which is 2,475. The digit sum is 8 + 2 + 5 = 15, and 15 is 3 times 5, so 3 is a factor again.

    825÷3=275,2,475=3×3×275825 \div 3 = 275, \quad 2{,}475 = 3 \times 3 \times 275
  3. Work on 275. The digit sum is 2 + 7 + 5 = 14, which lies between 12 and 15, the nearest multiples of 3, so 3 is no longer a factor. Move to the next prime, 5. The ones digit is 5, so 5 is a factor.

    275÷5=55,2,475=3×3×5×55275 \div 5 = 55, \quad 2{,}475 = 3 \times 3 \times 5 \times 55
  4. Work on 55. Its ones digit is 5, so 5 is a factor again. The quotient, 11, is on the list of primes less than 20, so every factor is now prime and you can stop.

    55÷5=11,2,475=3×3×5×5×1155 \div 5 = 11, \quad 2{,}475 = 3 \times 3 \times 5 \times 5 \times 11
  5. Use exponents for the repeated primes. The prime 3 is used twice and the prime 5 is used twice.

    2,475=32×52×112{,}475 = 3^2 \times 5^2 \times 11
  6. Check by multiplying back to the starting number.

    32×52×11=9×25×11=225×11=2,4753^2 \times 5^2 \times 11 = 9 \times 25 \times 11 = 225 \times 11 = 2{,}475

Answer

The prime factorization of 2,4752{,}475 is 32×52×113^2 \times 5^2 \times 11, which means 3×3×5×5×113 \times 3 \times 5 \times 5 \times 11.

The takeaway: a factor divides a whole number with nothing left over, and divisibility rules let you find factors from the digits: the ones digit for 22, 55 and 1010, the last two digits for 44, the digit sum for 33 and 99, and both the 22 test and the 33 test for 66. To write a prime factorization, keep dividing by prime factors until every factor is prime, as in 84=22×3×784 = 2^2 \times 3 \times 7, then multiply back to check. In the next unit, you will learn to find the greatest common factor and the least common multiple.