Let be a positive integer. A primitive root mod n is an integer g such that every integer relatively prime to n is congruent to a power of g mod n. That is, the integer g is a primitive root (mod n) if for every number a relatively prime to n there is an integer z such that a ≡ (gz (mod n)).
EXAMPLE 2 is a primitive root mod 5, because for every number, a relatively prime to 5 there is an. 2z ≡ a. All the numbers relatively prime to 5 are 1, 2, 3, 4, and each of these (mod 5) is itself (for instance 2 (mod 5) = 2). |
EXAMPLE 4 is not a primitive root mod 5, because for every number relatively prime to 5 (again: 1, 2, 3, 4) there is not a power of 4 that is congruent. Powers of 4 (mod 5) are only congruent to 1 or 4. There is no power of 4 that is congruent to 2 or 3. |
When primitive roots exist, it is often very convenient to use them in proofs and explicit constructions; for instance, if p is an odd prime and g is a primitive root mod p, the quadratic residues mod p are precisely the even powers of the primitive root. Primitive roots are also important in cryptological applications involving the discrete log problem, most notably the Diffie-Hellman key exchange protocol.
Terminology and a formal definition
Define
So Z*n has φ(n) elements, where φ is Euler's totient function.
DEFINATION A primitive root mod n is an element g ∈ Z*n whose powers generate all of Z*n. That is, every element b ∈ Z*n can be written as gx mod n, for some integer x. |
Background and motivation
The set has an important property: it is closed under multiplication mod n. That is, if and c is the positive integer less than n which is congruent to ab mod n, then as well. This is because ab and n have no common factor (by unique factorization), and so c and n have no common factor either (because if d|c and d|n, then d|ab as well, because ab = c +nx some integer x)
This property, together with other basic properties of multiplication mod n, imply that is a group under multiplication.
For any element a ∈ Z*n, consider the sequence of its powers . All of the powers of a are in the finite set , so the sequence of powers a of repeats eventually. In fact, Euler's theorem implies that it repeats with period
So another characterization of primitive roots in terms of this sequence is: Primitive roots are the elements for which the sequence of powers of a has minimum period
Example The powers of 1 are 1,1,1,... The order of 1 is 1. The powers of 2 are 2,4,8,7,5,1,... The order of 2 is 6. The powers of 4 are 4,7,1,... The order of 4 is 3. The powers of 5 are 5,7,8,4,2,1,... The order of 5 is 6. The powers of 7 are 7,4,1,.. The order of 7 is 3. The powers of 8 are 8,1,... The order of 8 is 2. So the primitive roots mod 9 are 2 and 5. |
Existence of primitive roots
Primitive roots do not necessarily exist mod n for any n. Here is a complete classification:
THEOREM There are primitive roots mod n if and only if n = 1,2,4,pk or 2pk where p is an odd prime. |
Finding primitive roots
The proof of the theorem (part of which is presented below) is essentially non-constructive: that is, it does not give an effective way to find a primitive root when it exists. Once one primitive root g has been found, the others are easy to construct: simply take the powers ga where a is relatively prime to But finding a primitive root efficiently is a difficult computational problem in general.
There are some special cases when it is easer to find them; for example:
EXANPLE Suppose p is a prime such that 2p + 1 is also prime. (Such p are called Sophie Germain primes.) Show that if p ≡ 1 mod 4, then 2 is a primitive root mod 2p +1. Solution: The point is that the list of possible orders of elements of is very short: the order of 2 divides so it is either It can't be 1 or 2 so we only need to rule out P. But is the Legendre symbol; this is by Euler's criterion. But by the second supplement to quadratic reciprocity, So the only remaining possibility is that the order of 2 mod 2p +1 is 2p. |
For instance, this shows that 2 is a primitive root mod 83.
Applications
When there is a primitive root g mod n, the elements of Z*n can be written as Multiplying two elements corresponds to adding their exponents mod That is, the multiplicative arithmetic in Z*n reduces to additive arithmetic in
EXAMPLE Let k be an integer and p an odd prime number. How many nonzero kth powers are there mod p? The question certainly depends on the relationship between k and p. When k = 2 the answer is p-1/2 (see quadratic residues), but when k = p - 1 the answer is 1 (by Fermat's little theorem). As an illustration, take Then it's easy to check that g = 2 is a primitive root mod p. The ninth powers mod p are but we can consider the exponents mod 12 because So we get so there are four 9th powers mod 13. The exponents are multiples of 3, which is gcd. (9,13 -1). There are 13 - 1/3 = 4 of these. In general, since every nonzero element of Zp can be written as ga mod p for some integer x, the equation xk ≡ y mod p can be rewritten mod p. Because g is a primitive root, this happens if and only if So the question becomes: as a ranges over Zp-1, how many values can ak mod p-1 take on? In fact, the extended Euclidean algorithm implies that is the set of multiples of gcd There are exactly such values, so this is the answer. |
Here is another problem where it can help to write the elements of Z*p as powers of a primitive root.
Partial proof of the theorem
One half of this theorem is not hard to prove: Suppose where a and b are relatively prime and > 3. Suppose x is relatively prime to ab. Then since mod a and mod b, it follows that
But are both even, so their lcm is strictly less than their product. So the order of x is strictly less than So there is no primitive root mod ab.
The only n that cannot be written in this way are and higher powers of 2. But for any odd x,
which can be proved by the LTE lemma (or by induction). Since there is no primitive root mod
Some of the proof of the other direction can be found in the wiki on orders.
556 videos|198 docs
|
1. What are primitive roots in algebra? |
2. How can one determine if an integer is a primitive root modulo a prime number? |
3. What is the significance of primitive roots in number theory? |
4. Can a composite number have primitive roots modulo it? |
5. Are all prime numbers guaranteed to have primitive roots? |
556 videos|198 docs
|
|
Explore Courses for Mathematics exam
|