Divisibility rules
These divisibility rules help determine when integers are divisible by particular other integers.
By
A number is divisible by if the last digits of the number are divisible by .
By 3
A number is divisible by 3 if the sum of its digits is divisible by 3.
By
A number is divisible by if the last n digits are divisible by that power of 5.
By 9
A number is divisible by 9 if the sum of its digits is divisible by 9.
By 11
A number is divisible by 11 if the alternating sum of the digits is divisible by 11.
By 7
Rule 1: Partition into 3 digit numbers from the right (). If the alternating sum () is divisible by 7 then the number is divisible by 7.
Rule 2: Truncate the last digit of , and subtract twice that digit from the remaining number. If the result is divisible by 7, then the number is divisible by 7. This process can be repeated for large numbers.
By 13
See rule 1 for divisibility by 7, a number is divisible by 13 if the same specified sum is divisible by 13.