The concept
Start with something familiar
You have 47 laddoos to pack into boxes of 6. You fill 7 boxes () and 5 laddoos are left over. Those 5 are the remainder. If you'd had 48 laddoos, nothing would be left over, and you'd say 48 is divisible by 6.That's all divisibility and remainders are: what's left after you pack into equal groups. GATE questions on this topic look scary because the numbers are huge, like . But the tricks in this part let you work with the leftovers alone, and the leftovers are always small.Idea 1: divisibility rules come from how 10 behaves
You can test divisibility without dividing, by looking at the digits. Each rule works for a reason, and the reason is how 10 behaves with that divisor.| Divisor | Test | Why it works |
|---|---|---|
| 2, 5, 10 | last digit | 10 is a multiple of each |
| 4 | last two digits | 100 is a multiple of 4 |
| 8 | last three digits | 1000 is a multiple of 8 |
| 3, 9 | sum of digits | 10 is 1 more than 9 |
| 11 | alternating sum | 10 is 1 less than 11 |
Key idea
To test for 3 or 9, add the digits. For 4 or 8, look at the last two or three digits. For 11, take the alternating sum of digits from the right.
Example
Test 73,512 for 8, 9 and 11.
8: the last three digits are 512, and , so yes. 9: , a multiple of 9, so yes. 11: from the right, , not a multiple of 11, so no (the remainder is 10).
8: the last three digits are 512, and , so yes. 9: , a multiple of 9, so yes. 11: from the right, , not a multiple of 11, so no (the remainder is 10).
Idea 2: for a bigger divisor, test co-prime factors
To test for 12, you could divide by 12. But it's faster to split 12 into two factors that share no common factor, here 3 and 4, and test both. If a number is divisible by both 3 and 4, it is divisible by 12.| Divisor | Split into | Not into |
|---|---|---|
| 12 | 3 and 4 | 2 and 6 |
| 18 | 2 and 9 | 3 and 6 |
| 24 | 3 and 8 | 4 and 6 |
| 36 | 4 and 9 | 6 and 6 |
Example
Is 7,356 divisible by 12?
By 3: , yes. By 4: the last two digits are 56, and , yes. Both pass, so 7,356 is divisible by 12. (Indeed .)
By 3: , yes. By 4: the last two digits are 56, and , yes. Both pass, so 7,356 is divisible by 12. (Indeed .)
Idea 3: in sums and products, replace each number by its remainder
Every division can be written as:The useful consequence: when you add or multiply numbers, the remainder of the result depends only on the remainders of the numbers. So you can throw away the big parts and keep the leftovers.Example
Find the remainder when is divided by 6.
and , so both leave 5. Multiply the remainders: , and . The remainder is 1. (Check: .)
and , so both leave 5. Multiply the remainders: , and . The remainder is 1. (Check: .)
Idea 4: powers repeat in cycles
For a power like , you can't multiply it out. But the last digit (the remainder on dividing by 10) of the powers of 7 runs in a cycle:| Power | Value | Last digit |
|---|---|---|
| 7 | 7 | |
| 49 | 9 | |
| 343 | 3 | |
| 2,401 | 1 | |
| 16,807 | 7 |
Key idea
Find the cycle of remainders, divide the power by the cycle length, and read off the position given by the remainder (a remainder of 0 means the last position).
Example
Find the remainder when is divided by 7.
Powers of 2 leave 2, 4, 1, then 2, 4, 1 again: a cycle of length 3. , so is in position 1 of the cycle. The remainder is 2.
Powers of 2 leave 2, 4, 1, then 2, 4, 1 again: a cycle of length 3. , so is in position 1 of the cycle. The remainder is 2.
Idea 5: the same remainder from several divisors means LCM plus that remainder
"A number leaves remainder 3 when divided by 4, 5 or 6." Take 3 away and the number becomes divisible by all of 4, 5 and 6, so it is a multiple of their LCM, which is 60.A close cousin: "remainders 2, 3, 4 when divided by 3, 4, 5". Each remainder is 1 less than its divisor, so adding 1 makes the number divisible by all three:Here each remainder is less than its divisor.Example
Find the smallest two-digit number that leaves remainder 3 when divided by 4, 5 or 6.
, so . With , , which is one digit. With , . Check: .
, so . With , , which is one digit. With , . Check: .
How to spot which idea you need
| The question says... | Use |
|---|---|
| "is it divisible by 3, 4, 8, 9, 11" | Idea 1: digit tests |
| divisible by 12, 18, 24, 36 | Idea 2: co-prime factors |
| remainder of a sum or product | Idea 3: keep only the remainders |
| remainder or last digit of a big power | Idea 4: find the cycle |
| "leaves remainder r when divided by a, b, c" | Idea 5: LCM plus r |
Worked example 1warm-up
Find the remainder when is divided by 9.Solution
Step 1. Find each remainder with the digit sumIdea 1
, and leaves 5 on division by 9. , which leaves 3.
Step 2. Multiply the remaindersIdea 3
.
Step 3. Reduce
, so the remainder is 6.
Step 4. Check
. Its digit sum is , and 33 leaves 6 on division by 9.
Worked example 2GATE level
Find the units digit of .Solution
Step 1. Find the cycle for 7Idea 4
Last digits 7, 9, 3, 1: length 4.
Step 2. Place
, position 3, so ends in 3.
Step 3. Find the cycle for 3
give last digits 3, 9, 7, 1: also length 4. , position 2, so ends in 9.
Step 4. Multiply the last digitsIdea 3: the units digit of a product depends only on the units digits
, so the product ends in 7.
Step 5. Check
Computing the full product (a computer can) gives a number ending in 7.
All the equations at a glance
| Idea | Equation |
|---|---|
| Digit tests | 3, 9: digit sum; 4, 8: last 2, 3 digits; 11: alternating sum |
| Co-prime split | , , |
| Remainders | ; sums and products use only |
| Cycles | power ÷ cycle length; remainder 0 means last position |
| Same remainder |