Questions tagged [primitive-roots]

For questions about primitive roots in modular arithmetic, index calculus, and applications in cryptography. For questions about primitive roots of unity, use the (roots-of-unity) tag instead.

If $n$ is a positive integer, a primitive root modulo $n$ is an integer whose multiplicative order modulo $n$ is equal to $\varphi(n)$, Euler's totient function evaluated in $n$.
A primitive root modulo $n$ is often identified with its corresponding element of $\mathbb Z/n\mathbb Z$. With this identification, a number is a primitive root modulo $n$ if and only if it is a generator of the multiplicative group $(\mathbb Z/n\mathbb Z)^\times$, in which case this group is cyclic.
A primitive root modulo $n$ exists if and only if $n$ is equal to $2$, $4$, $p^k$ or $2p^k$ for some odd prime $p$ and some positive integer $k$.

For questions about primitive roots of unity, consider using the tag.

582 questions
0
votes
1 answer

Prove that if the $\mathrm{ord}(p)a =3$, then $\mathrm{ord}(p)(a+1) = 6$, $p$ prime

I couldn't answer this question. This only one. It looks simple, but I got stuck. Here is the image of the question. The number $12$. Sorry for my english. Prove that if the $\mathrm{ord}(p)a=3$, then $\mathrm{ord}(p)(a+1)=6$ Example:…
Curious
  • 369
0
votes
1 answer

Simple question about generating random primitive roots for a large prime

I am sure this question has been answered before but I could not find any similar question. In Diffie-Hellman protocol implementations we can try to find a large primes using safe prime formula (i.e. $p = 2k + 1$ such that $k$ is a prime). So…
Node.JS
  • 1,119
0
votes
1 answer

How does one find the primitive roots of a non-prime number?

Several algorithms exist to find the primitive roots of prime numbers. How does one find the primitive roots of a non-prime number?
paul
  • 1
1
2