Dec 30, 2010

Modular division

Sorry, I've been very lazy about adding content here. In this entry I will consider modular division.

If the modulus m is not prime, some divisions have multiple results and others have none. Here, for example, is the division table for mod 10):



We see that 1, for example, is divisible only by itself, 3, 7, and 9. By contrast, 2 is divisible by every number except 5 and 0, but some of the results overlap: 2/2 equals both 1 and 6; conversely both 2/2 and 2/7 equal 6. The number 5 is rather special: It can be divided by every odd number; 5/5 can equal any odd number, and 0/5 can equal any even number; also, 5 shows up as a second quotient when 0 is divided by an even number.

In terms of regular, non-modular arithmetic, we may interpret the results as follows: 1/1=1 (the result shown in column 1, row /1) means that if an integer ending in 1 is evenly divisible by another integer ending in 1, the quotient will also end in 1, for example, 1/1, 11/1, 11/11, 111/1, and 121/11. And 6/8=2, 7 (column 6, row /8) means that means that if an integer ending in 6 is evenly divisible by an integer ending in 8, the quotient may end in either 2, as with 16/8, 36/18, and 96/8, or 7, as with 56/8, 126/18, and 136/8.

Where/how did I find these results? Well, the way I actually did it was slightly (?) messy, but the simple answer is that they can all be derived from the mod 10 multiplication table:



For example, consider the /2 row of the division table. To fill in the values, we must find 1/2, 2/2, 3/2, etc. In other words, we are looking for the values that satisfy a=1/2, b=2/2, c=3/2, d=4/2 and so forth. We can rewrite the equalities as 2a=1, b=2, 2c=3, 2d=4. etc. Having done so, we can look for a simply by running our eye down column 2 and finding the row(s) in which the result is 1, meaning that 2a=1. There aren't any. No number can be multiplied by 2 to give a result of 1 in mod 10.

With d=4/2, by contrast, if we follow the same procedure, rewriting the equality as 2d=4, and looking down column 2, we find a result of 4 in row 2 and again in row 7.

Comparing the two tables, we see that division by 1 (row /1 in the division table) is equivalent to multiplication by 1. This of course is not very surprising or interesting. Rather more interesting is that division by 3 turns out to be equivalent to multiplication by 7, and vice versa. Also, division by 9 is equivalent to multiplication by 9.

Now let's try switching to ±mod 10, meaning a notation using both positive and negative numbers (as introduced in my previous entry). This means replacing 9 with –1, 8 with –2, 7 with –3, and 6 with –4. For balance, let's add + signs to 1, 2, 3, and 4, and so as to leave no number unsigned, let's add ± signs to 5 and 0. Here's how the division table looks with this notation:


Just as with multiplication (see my previous entry), using ±mod notation gives all sorts of additional symmetry to the table. Above I wrote, "Division by 3 turns out to be equivalent to multiplication by 7, and vice versa. Also, division by 9 is equivalent to multiplication by 9." These results become less surprising here. In mod 10, 3*7 = 1, which we take as just one of the many results of multiplication. But in ±mod 10, we can easily derive (+3)*(–3) = –9 = +1. This strikes me as more satisfying, though of course it is simply a matter of using different notation. And the second result, concerning division and multiplication by 9, becomes downright trivial when presented as "division by –1 is equivalent to multiplication by –1."

So that's mod 10 division. Things get much more interesting, IMO, when we consider prime moduli, which I plan to do in my next entry.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I just revised the final table (Division, ±mod 10) and made a couple of other minor corrections. (Jan. 11, 2011)

    ReplyDelete