Sub topic 4
Divisibility Rules for 2, 3, 4, 5, 6, 8, 9, 10, and 11
Assume you can add integers, read place value, and work with remainders. A number is divisible by another number when the division has remainder 0. For example, 42 is divisible by 6 because \(42 \div 6=7\).
The main divisibility rules
| Divisor | Test | Example |
|---|---|---|
| 2 | The last digit is even: 0, 2, 4, 6, or 8 | 1,238 |
| 3 | The sum of the digits is divisible by 3 | \(1+2+6=9\) |
| 4 | The last two digits form a number divisible by 4 | 1,316: \(16\div4=4\) |
| 5 | The last digit is 0 or 5 | 2,475 |
| 6 | The number is divisible by both 2 and 3 | 234 |
| 8 | The last three digits form a number divisible by 8 | 5,192: \(192\div8=24\) |
| 9 | The sum of the digits is divisible by 9 | \(4+5+9=18\) |
| 10 | The last digit is 0 | 3,470 |
| 11 | The alternating digit sum is divisible by 11 | 1,452: \((1-4+5-2)=0\) |
For the rule for 11, subtract alternating groups of digits. You may begin from either end. For 4, 8, and 10, digits farther left do not affect the test because the place values there are multiples of the divisor.
How to combine rules
The rule for 6 is especially useful. A number must pass both the 2 test and the 3 test:
- 318 is even.
- Its digit sum is \(3+1+8=12\), which is divisible by 3.
- Therefore, 318 is divisible by 6.
Passing only one test is not enough. For example, 124 is divisible by 2, but its digit sum is 7, so it is not divisible by 6.
A number divisible by 9 is automatically divisible by 3, but the reverse is not always true. For example, 12 is divisible by 3 but not by 9.
def divisible_by_rules(n):
value = abs(n)
digits = [int(d) for d in str(value)]
digit_sum = sum(digits)
alternating_sum = sum(digits[::2]) - sum(digits[1::2])
return {
2: value % 2 == 0,
3: digit_sum % 3 == 0,
4: value % 4 == 0,
5: value % 5 == 0,
6: value % 6 == 0,
8: value % 8 == 0,
9: value % 9 == 0,
10: value % 10 == 0,
11: alternating_sum % 11 == 0,
}
print(divisible_by_rules(1452))>callout note > A divisibility rule gives a quick test, not necessarily the quotient. If a question asks for the quotient, divide after confirming divisibility.
Common GRE errors
- Using the 3 rule for 4 or 8. Digit sums do not test powers of 2.
- Checking only the final digit for 4 or 8.
- Assuming divisibility by 2 or 3 alone proves divisibility by 6.
- Forgetting that a negative integer follows the same tests as its absolute value.
- Treating a digit sum of 11 as proof of divisibility by 11. The alternating sum, not the ordinary sum, is required.
Exercise
Is 7,326 divisible by 2, 3, 4, 6, 9, and 11?
Show answer
It is divisible by 2 because it ends in 6, by 3 because \(7+3+2+6=18\), by 6 because it passes both tests, and by 9 because 18 is divisible by 9. It is not divisible by 4 because 26 is not divisible by 4, and not by 11 because \(7-3+2-6=0\) actually is divisible by 11; therefore it is divisible by 11 as well.