Tests of divisibility
Doing long division just to know whether is divisible by is a waste. Mathematicians long ago discovered divisibility tricks , quick checks based on the digits of a number that let you answer "divisible or not" in seconds.
Concept
Here are the most useful divisibility rules:
Divisible by . The number ends in , or (i.e. its last digit is even).
- Examples: , , .
Divisible by . The sum of its digits is divisible by .
- Example: . Digit sum . is divisible by . So is divisible by .
Divisible by . The last two digits form a number divisible by .
- Example: . Last two: . . Yes, divisible by .
Divisible by . The last digit is or .
- Examples: , , .
Divisible by . Divisible by both and .
- Example: . Even ✓. Digit sum , divisible by ✓. So divisible by .
Divisible by . The sum of its digits is divisible by .
- Example: . Digit sum . . Yes.
Divisible by . The last digit is .
- Examples: , , .
Divisible by . Take the alternating sum of digits (from the right or left). If that is divisible by (including ), the number is divisible by .
- Example: . Alternating sum: . Divisible by ✓.
Why these rules work
For divisibility by : notice that , , , and so on. So a number like . The first part is always a multiple of . So the whole number is divisible by exactly when is. Same idea works for since is a multiple of .
Divisibility tests turn a "calculate" question into a "look" question, and they save real time when you are working with prime factorisation, fractions, or any factor-finding work.
Worked examples
Example 1. Is divisible by ? By ?
- Digit sum . Divisible by both and .
- So yes to both.
Example 2. Is divisible by ?
- Last two digits: . .
- Not divisible by .
Example 3. Is divisible by ?
- Alternating sum (right to left): . Yes, divisible by .
Example 4. Find the smallest digit such that is divisible by .
- Digit sum: .
- Need divisible by . Smallest non-negative that works: ✓.
- So . The number is divisible by .
Example 5. Is divisible by and by ?
- Last digit , so divisible by both and .
Try it yourself
- Is divisible by ? By ? By ?
- Is divisible by ?
- Is divisible by ? By ?
- Find the smallest digit such that is divisible by .
- Find the smallest digit such that is divisible by .
- Is divisible by ? If not, by what is it short?
- Why do divisibility tests for and both use the digit sum?
- Investigate: design a divisibility test for . (Hint: look at the last two digits.)
Activity
Phone number game. Pick any -digit phone number (yours or a friend's). Test it for divisibility by , , , , and using the rules above. Write down which divisibility tests it passes. Repeat with two more phone numbers. Are any of them prime? (Hint: a number divisible by and not equal to cannot be prime.)