Question: Zn = { 0, . . . , n 1 } and Z n = { a Z n : gcd(a, n) = 1 }
Zn = { 0, . . . , n 1 } and Zn = { a Zn : gcd(a, n) = 1 }
Definition: g is a primitive element of Zn if and only if (n) = min{ k Z+ : gk = 1 (mod n) }.
When g is a primitive element of Zn , we have Zn = { g, g2 mod n, g 3 mod n, . . . , g(n) mod n }.
Suppose g is a primitive element of Zn and let dlogg(a) = min{ k > 0 : gk = a (mod n) }. dlogg(a) is called the discrete log of a with respect to g.
Let p is an odd prime and let g be a primitive element of Zp. Show:
dlogg (1) = dlogg(p 1) = (p 1)/2.
Hint: Fermats Little Lemma
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
