Divisibility tests
How can you tell, in one second, whether is a multiple of ? Long division would take a minute. A divisibility test takes about three seconds , sometimes one. These tricks were known to Indian and Greek mathematicians thousands of years ago and they are still useful today.
Concept
A divisibility test is a quick rule that tells you whether one number divides another, using only the digits. Here are the standard tests for the small divisors.
By . Last digit is even: . Example: ends in , so divisible by .
By . Last digit is or . Example: , yes. , no.
By . Last digit is .
By . Look at the last two digits. If they form a number divisible by , so is the whole. Example: , last two digits , so is divisible by .
Why? , and is a multiple of (since is). So divisibility of by is identical to divisibility of by .
By . Look at the last three digits. Same logic: , so we only need to test the last three. Example: , last three digits , divisible.
By . Add the digits. If the sum is divisible by , so is the whole. Example: , digit sum . Divisible.
By . Same rule but the digit sum must be divisible by . Example: , digit sum . Divisible.
Why does the digit-sum trick work? Because , , etc. So . We will see this idea formally in the next subtopic.
By . Divisible by both and . Example: is divisible by but ends in , so not by .
By . Compute the alternating sum: take digits from right to left, alternately adding and subtracting. If the result is a multiple of (including ), so is the original. Example: , alternating from right: . Not divisible. Now : . Yes, .
Combining tests. A number is divisible by iff it is divisible by both and . By iff by both and . By iff by both and . (The two divisors must be coprime for this combining trick to work.)
Worked examples
Example 1. Is divisible by ?
- Last three digits: .
- , no remainder.
- So yes, is divisible by .
Example 2. Is divisible by ?
- Digit sum: .
- Yes , divisible by .
Example 3. Test for divisibility by .
- Alternating sum from right: .
- is a multiple of . So yes.
Example 4. Find the smallest digit to put in the blank so that is divisible by .
- Digit sum .
- For divisibility by we need , i.e., .
- Smallest such single digit: . So is divisible by .
Try it yourself
- Test for divisibility by and by .
- Test for divisibility by and by .
- Test for divisibility by .
- Find the smallest digit that makes divisible by .
- Is divisible by ? Justify using two simpler tests.
- Find the smallest -digit number divisible by .
- Without dividing, find which of and is divisible by .
- Show that is divisible by but not by . (Check the last three digits and explain.)
Activity
Test the test. Write down ten random -digit numbers. Apply the divisibility-by- test to each. Then check by actual division. Every one of your predictions should be right. Repeat with the test. Once you trust the tests, you have a powerful new shortcut for life.