Since primary school, we have known how to tell whether a number is divisible by 2, 3, 4, 5, 6, 8, 10 or 11. With divisors such as 7, 13, 17, 23, 29… or even 271, however, this seems like a high-wire act. Yet it can be done. Let's take a tour of the divisibility tests for integers, from the simplest to the most complicated. When it comes to divisibility, congruences (see box) very often make the task easier.
Brush up on the classics!
To determine whether an integer is divisible by 2 or 5, we do not even need the properties of congruences. A number N is divisible by 2 if its units digit u is even. Separate the units digit u from N, and call the number N with this digit removed d. Then N = 10 d + u. Since 10 is a multiple of 2, N is divisible by 2 if and only if u is—that is, if it is even.
The same applies to divisibility by 5. Since 10 is also a multiple of 5, N is divisible by 5 if and only if u is—that is, if it equals 0 or 5. In the language of congruences, N ≡ u \[2\] and N ≡ u \[5\]. Thus, whether N is divisible by 2 or by 5 can be determined from its units digit.





