Primitive Roots Modulo $p$: The $(p-1)/2$ Rule

In summary, for $g$ to be a primitive root modulo $p$, the order of $g$ must be $p-1$ modulo $p$. The congruence $g^{(p-1)/2} \equiv -1 \pmod p$ is not enough to guarantee this, as shown by the example of $p=7$ and $g=6$. Therefore, the statement that $g$ is a primitive root modulo $p$ if and only if $g^{(p-1)/2} \equiv -1 \pmod p$ is not always true.
  • #1
alexmahone
304
0
Is it true that $g$ is a primitive root modulo $p$ if and only if $g^{(p-1)/2} \equiv -1 \pmod p$?
 
Mathematics news on Phys.org
  • #2
Alexmahone said:
Is it true that $g$ is a primitive root modulo $p$ if and only if $g^{(p-1)/2} \equiv -1 \pmod p$?
No. For example, take $p=7$ and $g=6$. The congruence is satisfied, but $6$ is not a primitive root$\mod 7$.
 
  • #3
Alexmahone said:
Is it true that $g$ is a primitive root modulo $p$ if and only if $g^{(p-1)/2} \equiv -1 \pmod p$?

Hi Alexmahone,

I assume that $p$ is supposed to be an odd prime?

If so, then it is true that $g$ is a primitive root modulo $p$ if and only if the order of $g$ is $p-1$ modulo $p$.

So what we need is that the order of $g$ is $p-1$.
From $g^{(p-1)/2} \equiv -1 \pmod p$, we can only conclude that the order of $g$ is not $(p-1)/2$, but it could still be $(p-1)/3$ or some such.

Opalg's example is showing exactly that, which is the simplest counter example. He picked the smallest odd prime for which $(p-1)/k$ is an integer with $k>2$, and he found a $g$ to match. :)
 

FAQ: Primitive Roots Modulo $p$: The $(p-1)/2$ Rule

What is a primitive root modulo p?

A primitive root modulo p is an integer g that has the property that every integer from 1 to p-1 can be expressed as a power of g modulo p. In other words, g is a generator of the multiplicative group of integers modulo p.

What is the $(p-1)/2$ rule for finding primitive roots modulo p?

The $(p-1)/2$ rule is a method for finding primitive roots modulo p. It states that if p is a prime number, then the primitive roots modulo p are the numbers that have a power of (p-1)/2 equal to -1 modulo p. These numbers can be found by testing integer values from 1 to p-1 until one is found that satisfies this condition.

Is there always a primitive root modulo p?

No, not every prime number has a primitive root modulo p. In fact, there are only a limited number of prime numbers that have primitive roots. These numbers are known as "primitive prime numbers".

Why are primitive roots modulo p important?

Primitive roots modulo p are important in number theory and cryptography. They have applications in public-key encryption, discrete logarithm problem, and the construction of pseudo-random number generators.

How can I determine if a number is a primitive root modulo p?

To determine if a number g is a primitive root modulo p, you can use the $(p-1)/2$ rule or perform a discrete logarithm calculation. If g satisfies the $(p-1)/2$ rule, then it is a primitive root modulo p. Additionally, if the discrete logarithm of g to the base g is a multiple of p-1, then g is a primitive root modulo p.

Back
Top