Module 3.1 · Number Theory
Divisibility rules
Contest problems love hidden digits: "The number is divisible by . Find ." You can't try all hundred digit pairs in the time you have. Divisibility rules let you test a number without dividing, and they turn missing-digit puzzles into two short equations.
The rules you should know cold
| Divisor | Test |
|---|---|
| Last digit is even. | |
| Digit sum is divisible by . | |
| Last two digits form a multiple of . | |
| Last digit is or . | |
| Divisible by both and . | |
| Last three digits form a multiple of . | |
| Digit sum is divisible by . | |
| Last digit is . | |
| Alternating sum of digits (add, subtract, add, …) is divisible by . |
Why they work
The rules come from how powers of behave.
- Last-digit rules (2, 4, 5, 8, 10). is divisible by and , is divisible by , and is divisible by . So in , the part is automatically a multiple of . Only the last three digits, , can spoil divisibility by .
- Digit-sum rules (3, 9). Every power of is one more than a multiple of : , , and so on. So is plus a multiple of . The number and its digit sum leave the same remainder when divided by (and by ).
- Alternating rule (11). , , , … The powers of are alternately one less and one more than a multiple of . That is why the digits get alternating signs.
Combine rules for composite divisors
To test divisibility by a composite number, split it into factors that share no common factor and test each one: , , , , , .
Common mistake
The factors must share no common factor. Being divisible by and by does not mean divisible by . For example, is divisible by both, but not by . Use instead.
Worked examples
Worked example: The 11 test
Is divisible by ?
Alternating sum from the left: . Since is a multiple of , so is . (Indeed, .)
Worked example: Two unknown digits, divisor 45
The four-digit number is divisible by . How many such numbers are there?
. For divisibility by , or .
- If : digit sum must be a multiple of , so . The number is .
- If : digit sum must be a multiple of , so . The number is .
There are 2 such numbers.
Worked example: Divisor 72: do the last digits first
The five-digit number is divisible by . Find .
. Start with , because it involves only the last three digits, . Checking through , only works, so .
Now the digit sum: . The next multiple of is , so . (The one after, , would need .)
So . Check: .
Tip
When a problem has two unknown digits, handle the rule that pins down one digit first (the last-digit rules). Then the digit-sum or alternating-sum rule finishes the job.
Practice
Which of the following numbers is divisible by ?
The four-digit number is divisible by . How many different digits could be?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The four-digit number is divisible by . What is the digit ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The five-digit number is divisible by . What is the digit ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which of the following does not divide ?
The five-digit number is divisible by . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the smallest positive multiple of whose digits are all s and s?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many four-digit numbers of the form (with ) are divisible by both and ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Real contest practice
- 2018 AMC 8, Problem 7: a missing digit with the rules for and .
- 2017 AMC 8, Problem 7: a repeated-digit number and the test.