I. The congruence notation:
It often happens that for the purposes of a particular calculation, two numbers which differ by a multiple of some fixed number are equivalent, in the sense that they produce the same result. For example, the value of depends only on whether n is odd or even, so that two values of n which differ by a multiple of 2 give the same result. Or again, if we are concerned only with the last digit of a number, then for that purpose two numbers which differ by a multiple of 10 are effectively the same.
The congruence notation, introduced by Gauss, serves to express in a convenient form the fact that the two integers a and b differ by a multiple of a fixed natural number m. We say that a is congruent to b with respect to the modulus m, or in symbols,
The meaning of this, then, is simply that is divisible by m. The notation facilitates calculations in which numbers differing by a multiple of m are effectively the same, by stressing the analogy between congruence and equality. Congruence, in fact, means “equality except for the addition of some multiple of m”.
A few examples of valid congruences are :
A congruence to the modulus 1 is always valid, whatever the two numbers may be, since every number is a multiple of 1. Two numbers are congruent with respect to the modulus 2 if they are of the same parity, that is, both even or both odd.
Two congruences can be added, subtracted or multiplied together, in just the same way as two equations, provided all the congruences have the same modulus. If
The first two of these statements are immediate: for example, is a multiple of m because and are both multiples of m. The third is not quite so immediate because , and is a multiple of m. Next, , for a similar reason. Hence, .
A congruence can always be multiplied throughout by any integer; if the10n . Indeed this is a special case of the third result above, where and are both k. But, it is not always legitimate to cancel a factor from a congruence. For example, , but it is not permissible to cancel the factor 6 from the numbers 42 and 12, since this would give the false result . The reason is obvious: the first congruence states that is a multiple of 10, but this does not imply that is a multiple of 10. The cancellation of a factor from a congruence is legitimate if the factor is relatively prime to the modulus. For, let the given congruence be , where is the factor to be cancelled, and we suppose that a is relatively prime to m. The congruence states that is divisible by m, and hence, is divisible by m.
An illustration of the use of congruences is provided by the well-known rules for the divisibility of a number by 3 or 9 or 11. The usual representation of a number n by digits in the scale of 10 is really a representation of n in the form
where a, b, c, … are the digits of the number, read from right to left, so that a is the number of units, b the number of tens, and so on. Since , we have also , and , and so on. Hence, it follows from the above representation of n that
In other words, any number n differs from the sum of its digits by a multiple of 9, and in particular n is divisible by 9 if and only if the sum of its digits is divisible by 9. The same applies with 3 in place of 9 throughout.
The rule for 11 is based on the fact that so that , and so on. Hence,
It follows that n is divisible by 11 if and only if is divisible by 11. For example, to test the divisibility of 958 by 11 we form 1-8+5-9, or -11. Since this is divisible by 11, so is 9581.
Ref: The Higher Arithmetic by H. Davenport, Eighth Edition, Cambridge University Press.