Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.9.5* (Discrete logarithm in $2$-groups)
Exercise 2.9.5* (Discrete logarithm in $2$-groups)
Suppose that is an odd prime, with odd. Let be a quadratic nonresidue of , and put . Suppose that , and that the order of is a power of , say . Let be chosen, , so that . Put where . Show that the order of is for some . If , put . Continue in this manner. Show that is the binary expansion of .
Answers
Proof. Let be a quadratic non residue of , and put . Then the order of is . Indeed,
so that the order of is a divisor of . Moreover
since is a quadratic nonresidue. This shows that the order of modulo is .
Write the class of in . The order of in the group is , so that the cyclic subgroup has elements.
We prove that is also the set of the elements of whose order is a power of .
To prove this, note first that , because the order of is , thus the order of divides , thus is a power of for all .
Let be a generator of . If , then for some integer . If , then for some , thus . Since the order of is , , therefore where , hence .
Conversely, if , then for some integer , and
thus the order of is a power of , and . We have proved that
Therefore , where the order of is , so that is a subgroup of order . Since , where , we obtain .
Suppose that , and that the order of modulo is a power of , say , where . Then , thus , so that
(All these facts are proven in the text p. 112 and p. 114.)
Now put , where , i.e.
Since the order of is , the order of is also , thus the order of is , which is also the order of . By theorem 2.45, the order of is for some .
Put . If , write , so that the order of is for some . We continue in this manner, while . Since the sequence is decreasing, there is some rank for which (there are at most steps in this algorithm). Then
where is the order of for all . In particular has order , thus .
Therefore
since . So
By definition of , . Moreover,
so The unicity of such that , shows that
Here , therefore is the binary expansion of . □
Numerical example. We solve by this method the same congruence than in p. 113.
Let , where , and put . We find as a nonresidue modulo . Put . Then the order of is , , and
Then , and , and .
Since the order of is a power of . We find , thus the order of is , so , and has the same order . Therefore has an order , where . Since , , this is the end of the loop, and
We have found the discrete logarithm of to the base , i.e. (as we can see in the list of elements of ). Then is a quadratic residue modulo , , thus , thus
So is a solution of . The other root is .