In the previous chapter the finite sets of natural numbers were introduced. For example P12 = {1,2,3,4,5,6,7,8,9,10,11,12} provides the numbers on the face of a clock. But P12 is part of the collection of natural numbers which are represented geometrically as labeled markers lying on a straight line. In the listing for P12 there are no numbers that appear after the last number 12 nor before the first number 1.
The finite collection J12 = {0,1,2,3,4,5,6,7,8,9,10,11} also has 12 numbers, but instead of the number 12, it has zero. Therefore it is part of the non-negative integers. But instead of lying on a straight line segment, J12 is best represented geometrically as labeled markers lying equally spaced on a circle. The numbers are arranged in a counterclockwise (+) circular direction (opposite to the forward motion of the hands of a clock). In this system noon and midnight are represented as zero.
Markers on a circle provide a physical-geometrical method of addition, always done by counting markers in the + direction. In J12 this special addition is called mod 12 addition. To the sum 9 + 5, start with marker 9 and go 5 more markers in the + circular direction. The motion stops at the marker with the label 2. (9 o'clock plus 5 hours is equal to 2 o'clock.) It is customary to write 9 + 5 = 2 (mod 12).
A geometrical interpretation of this addition if the following. The marker for 9 is part way (more exactly 3/4 the way) around the circle in the + direction. Going 5 more markers continues past 0 and continues on for 2 more markers. Thus the motion makes a complete revolution around the circle plus 2 more markers.
The geometrical interpretation ignores the number of revolutions and considers the number of markers past 0. This suggests the division algorithm, which is the algebraic method for computing the sum mod 12. Perform ordinary addition (as done in the system of non-negative integers) to get the sum. Then divide 12 into the sum and look at the remainder:
The above example is a particular case of the system of integers Jn mod n. The systems
For example, find 9 + 8 (mod 10). 9 + 8 = 17, 17 = 10(1) + 7. Therefore 9 + 8 = 7 (mod 10).
mod addition can be easily extended to non-negative integers. To find 356 + 879 (mod 10),
The problem may be phrased, reduce 1234 to a number in J7. Apply the division algorithm.
Multiplication of numbers in Jn mod n in a way similar to addition of the numbers. To find 7x9 (mod 6):
There are infinitely many non-negative integers, but only a finite number n of numbers in Jn. It is certain that many non-negative integers all reduce to the same number in Jn. For example,
Another question: do the integers 4321 and 4907 reduce to the same number in J8 ? The answer is yes, because
4321 = 8(540) + 3 and 4907 = 8(613) + 3
That is 4321 = 3 (mod 8) and 4907 = 3 (mod 8).
Therefore 4321 = 4907 (mod 8).
The following fact shows a much quicker way to see if two integers are equivalent mod n:
[4.1] (Equivalence mod n) Two integers are equivalent mod n iff their difference is completely divisible by n.
u =v (mod n) if and only if u - v is divisible by n.
This statement is often used as the definition of two integers being equivalent mod n. Click here for the proof.
The integers 105 and 25 are equivalent mod 10 because 105 - 25 = 80 is completely divisible by 10. Subtraction the other way produces the difference -80, which is also divisible by 10.
It is possible to expand these collections by repeated subtractions. By subtracting 7 from 2 and subtracting 7 from 5 repeatedly, the following collections of integers are obtained: