Exercise 2.9.5* (Discrete logarithm in $2$-groups)

Suppose that p is an odd prime, p 1 = m 2 k with m odd. Let z be a quadratic nonresidue of p , and put c z m ( mod p ) . Suppose that n 1 ( mod p ) , and that the order of n is a power of 2 , say 2 k . Let u be chosen, 0 < u < 2 k , so that c u n ( mod p ) . Put n n c ¯ 2 k k ( mod p ) where c c ¯ 1 ( mod p ) . Show that the order of n is 2 k for some k < k . If k > 0 , put n n c ¯ 2 k k ( mod p ) . Continue in this manner. Show that 2 k k + 2 k k + is the binary expansion of u .

Answers

Proof. Let z be a quadratic non residue of p , and put c z m ( mod p ) . Then the order of c is 2 k . Indeed,

c 2 k = z m 2 k = z p 1 1 ( mod p ) ,

so that the order of c is a divisor of 2 k . Moreover

c 2 k 1 = z m 2 k 1 = z p 1 2 1 1 ( mod p ) ,

since z is a quadratic nonresidue. This shows that the order of c modulo p is 2 k .

Write ξ = [ c ] the class of c in p . The order of ξ in the group ( p ) is 2 k , so that the cyclic subgroup G = ξ = { 1 , ξ , ξ 2 , , ξ 2 k 1 } has 2 k elements.

We prove that G is also the set H of the elements of ( p ) whose order is a power of 2 .

To prove this, note first that G H , because the order of ξ is 2 k , thus the order of ξ j divides 2 k , thus is a power of 2 for all j .

Let γ be a generator of ( p ) . If y ( p ) , then y = γ t for some integer t . If y H , then y 2 l = 1 for some l 0 , thus γ t 2 l = 1 . Since the order of γ is p 1 = m 2 k , m 2 k t 2 l , therefore m t 2 l where m 2 l = 1 , hence m t .

Conversely, if m t , then t = qm for some integer q , and

y 2 k = γ t 2 k = ( γ m 2 k ) q = ( γ p 1 ) q = 1 ,

thus the order of y is a power of 2 , and y H . We have proved that

γ t H m t .

Therefore H = γ m , where the order of γ m is 2 k , so that H is a subgroup of order 2 k . Since G H , where | G | = | H | , we obtain G = H .

Suppose that n 1 ( mod p ) , and that the order of n modulo p is a power of 2 , say 2 k , where k k . Then [ n ] H = G = ξ , thus [ n ] = ξ u = [ c ] u , so that

n c u ( mod p ) , 0 < u < 2 k .

(All these facts are proven in the text p. 112 and p. 114.)

Now put n n c ¯ 2 k k ( mod p ) , where c c ¯ 1 ( mod p ) , i.e.

[ n ] = [ n ] ( ξ 1 ) 2 k k .

Since the order of ξ is 2 k , the order of ξ 1 is also 2 k , thus the order of ( ξ 1 ) 2 k k is 2 k , which is also the order of [ n ] . By theorem 2.45, the order of [ n ] = [ n ] ( ξ 1 ) 2 k k is 2 k for some k < k .

Put n 0 = n , k 1 = k , n 1 = n , k 2 = k . If k 2 > 0 , write n 2 n 1 c ¯ 2 k k 2 ( mod p ) , so that the order of n 2 is 2 k 3 for some k 3 < k 2 . We continue in this manner, while k i 0 . Since the sequence ( k i ) is decreasing, there is some rank d for which k d + 1 = 0 (there are at most k steps in this algorithm). Then

n 1 n c ¯ 2 k k 1 ( mod p ) , k 1 k , n 2 n 1 c ¯ 2 k k 2 ( mod p ) , , k 2 < k 1 , n i + 1 n i c ¯ 2 k k i + 1 ( mod p ) , k i + 1 < k i , n d n d 1 c ¯ 2 k k d ( mod p ) , k d < k i , k d + 1 = 0 ,

where 2 k i + 1 is the order of n i for all i . In particular n d has order 2 n d + 1 = 2 0 = 1 , thus n d 1 ( mod p ) .

Therefore

n n 1 c 2 k k 1 n 2 c 2 k k 1 c 2 k k 2 n d c 2 k k 1 c 2 k k 2 c 2 k k d c 2 k k 1 + 2 k k 2 + + 2 k k d ( mod p ) ,

since n d 1 ( mod p ) . So

c u n c 2 k k 1 + 2 k k 2 + + 2 k k d ( mod p ) .

By definition of u , 0 u < 2 k . Moreover,

2 k k 1 + 2 k k 2 + + 2 k k d 2 k 1 + 2 k 2 + + 1 = 2 k 1 ,

so 0 2 k k 1 + 2 k k 2 + + 2 k k d < 2 k . The unicity of u such that n c u ( mod p ) , 0 u < 2 k , shows that

u = 2 k k 1 + 2 k k 2 + + 2 k k d .

Here k k 1 < k k 2 < < k k d , therefore 2 k k 1 + 2 k k 2 + + 2 k k d is the binary expansion of u . □

Numerical example. We solve by this method the same congruence x 2 43 ( mod 97 ) than in p. 113.

Let p = 97 = 2 k m , where k = 5 , m = 3 , and put a = 43 . We find z = 5 as a nonresidue modulo p . Put c z m . Then the order of c is 2 5 , c ¯ 52 ( mod p ) , and

G = [ c ] = { 1 , 28 , 8 , 30 , 64 , 46 , 27 , 77 , 22 , 34 , 79 , 78 , 50 , 42 , 12 , 45 , 96 , 69 , 89 , 67 , 33 , 51 , 70 , 20 , 75 , 63 , 18 , 19 , 47 , 55 , 85 , 52 } .

Then r a ( m + 1 ) 2 6 ( mod p ) , and n a m 64 ( mod p ) , and r 2 an ( mod p ) .

Since the order of n is a power of 2 . We find n 4 1 ( mod p ) , thus the order of n is 2 k = 2 3 , so k = 3 , and c ¯ 2 k k 47 has the same order 2 3 . Therefore n = n c ¯ 2 ( k k ) has an order 2 k , where k < k = 3 . Since n 1 ( mod p ) , k = 0 , this is the end of the loop, and

u = 2 k k = 4 .

We have found the discrete logarithm of n to the base c = 28 , i.e. n c 4 ( mod 97 ) (as we can see in the list of elements of G ). Then n is a quadratic residue modulo p , n ( c 2 ) 2 = 8 2 , thus r 2 an a ( c 2 ) 2 , thus

a ( r c ¯ 2 ) 2 ( 6 ( 52 ) 2 ) 2 2 5 2 ( mod p ) .

So 25 is a solution of x 2 43 ( mod 97 ) . The other root is 72 25 ( mod 97 ) .

User profile picture
2024-10-12 09:40
Comments