To compute φ(pq), we use the fact that
Note that the last term in the above expression needs to be there because when we take the numbers from 1 to pq and remove the ones that are divisible by p and the ones that are divisible by q, the ones that are divisible by pq are "removed twice". Of the numbers from 1 to pq, there are pq/p = q such numbers that are divisible by p. Likewise, there are pq/q = p such numbers that are divisible by q. The only number in this range that is divisible by both p and q is pq. Thus, φ(pq) = pq - p - q + 1 = (p-1)(q-1).
To compute φ(pqr), we again count using "exclusion-inclusion". We have
In Z9, we have 21=2, 22=4, 23=8, 24=7, 25=5, 26=1. Here we observe that all of the units are obtained by powers of 2. (Here we don't count the elements 0,3 and 6 since they are not relatively prime to the mod.)
When powers of an element yield all of the units in a certain mod, we say that element is a generator -- so 2 is a generator in Z7 and 3 is a generator in Z7.
Look at Zm for m = 2,3,...,19 and try to find a generator in each of these mods. (Some of the larger mods may try your patience -- nonetheless, be thorough in your computations.)
Look carefully at your results and formulate a conjecture that describes exactly when Zm has a generator.
mod | a generator |
2 | 1 |
3 | 2 |
4 | 3 |
5 | 2 |
6 | 5 |
7 | 3 |
8 | none |
9 | 2 |
10 | 3 |
11 | 2 |
12 | none |
13 | 2 |
14 | 3 |
15 | none |
16 | none |
17 | 3 |
18 | 5 |
19 | 2 |
Using the "magic table" yields:
1 | i | 2 | ||
0 | 1 | 1 | 1+i | 3+2i |
1 | 0 | 1 | i | 1+2i |
and we see that x=1+i and y=-i solves the given equation.
Proof: Every step in the proof of this fact in Z immediately generalizes except for the fact that the product of two non-zero Gaussian integers is again non-zero. We prove this below as a lemma.
Proof I: Let α = a + bi and β = c + di. Then αβ = (a+bi)(c+di) = (ac-bd) + (ad+bc)i. Since this is assumed to be zero, we have ac=bd and ad=-bc. Multiplying the first equation by d yields acd=bd2 and substituting in the second equation yields -bc2=bd2. If b is non-zero, then cancellation in Z yeilds -c2 = d2. This is only possible is c=d=0. Thus, β=0.
Thus, we may assume that b=0. The first equation then shows that either a=0 or c=0. If a=0, we are done since then α=0. If c=0, then by the second equation either a=0 or d=0. Again, if a=0 we are done and if d=0 then &beta=0 and we are done.