WishWasTraining Academy
CDS exam school
← home
Chapter A1-4 · revision sheet · free

Divisibility tests, division algorithm, remainders and unit digits: revision sheet

The chapter on one page, for the last weeks before the exam. Read the full lesson first if any line here is new to you.

Formulas and facts

  • Division rule: Dividend ​=​ Divisor ​\times​ Quotient ​+​ Remainder, with ​0 \le​ Remainder ​<​ Divisor.
Divisor Test
2, 5, 10 last digit
4, 8, 16 number made by the last 2, 3, 4 digits
3, 9 sum of the digits
11 (odd places) minus (even places), counted from the right, is 0 or a multiple of 11
12, 36, 72 two factors with no common factor: ​3 \times 4​, ​4 \times 9​, ​8 \times 9​
  • The tests give the remainder too: last two digits for 4, digit sum for 9 and 3.
  • ​n(n+1)(n+2)​ is always divisible by 6.
  • Remainders add, subtract and multiply. They do not divide.
  • Unit digit cycles: 0, 1, 5, 6 stay. 4: 4, 6. 9: 9, 1. 2: 2, 4, 8, 6. 3: 3, 9, 7, 1. 7: 7, 9, 3, 1. 8: 8, 4, 2, 6.
  • Fermat's rule: ​p​ prime, ​a​ not a multiple of ​p​, then ​a^{p-1}​ leaves remainder 1 on division by ​p​.
Expression Divisible by When
​a^n - b^n​ ​a - b​ every ​n​
​a^n - b^n​ ​a + b​ ​n​ even
​a^n + b^n​ ​a + b​ ​n​ odd

Quick methods

  • Unit digit of a power: divide the power by 4. Remainder 1, 2, 3 gives that place in the cycle; remainder 0 gives the 4th.
  • Large power: look for a small power that is 1 more or 1 less than a multiple of the divisor. ​5^{123}​ on 26: ​5^2 = 26 - 1​, so the answer is ​-5 + 26 = 21​.
  • No 1 or ​-1​ soon: list the remainders until 1 comes; they then repeat.
  • Replace each number by its remainder first: ​2027 \times 2029 \times 2031​ on 13 behaves like ​(-1) \times 1 \times 3​, remainder 10.
  • Last two digits of a product: use the last two digits of each number.

Traps

  • Testing 12 with 2 and 6. They share a factor: 18 passes both but is not a multiple of 12.
  • Power a multiple of 4, then taking the 1st digit. ​2^{20}​ ends in 6, not 2.
  • Leaving a negative remainder. ​-2​ on division by 12 is 10.
  • ​a^n + b^n​ with ​n​ even has no rule. ​53^2 + 47^2 = 5018​ is not a multiple of 100.
  • Fermat's rule needs a prime. ​2^8​ leaves 4 on division by 9, not 1.

Check yourself

  1. Unit digit of ​2^{63}​? [8]
  2. Remainder when ​3^{100}​ is divided by 7? [4]
  3. ​5A72​ is divisible by 9. Find the digit ​A​. [4]