# every prime has a primitive root

Let $p$ be a prime. Recall that an integer $g$ is said to be a primitive root for $p$ (or more concretely for $(\mathbb{Z}/p\mathbb{Z})^{\times}$) if the multiplicative order of $g$ modulo $p$ is $\phi(p)=p-1$. In other words, $g$ is a generator of the cyclic group $(\mathbb{Z}/p\mathbb{Z})^{\times}$, i.e.

 $(\mathbb{Z}/p\mathbb{Z})^{\times}=\{1,2,3,\ldots,p-1\}=\{1,g,g^{2},\ldots,g^{p% -2}\}.$

Before we go into the proof of the main theorem, we define the term “least universal exponent” and prove a lemma.

###### Definition.

Let $N>2$ be a natural number. We say that $n$ is the least universal exponent for $\mathbb{Z}/N\mathbb{Z}$ if $a^{n}\equiv 1\mod N$ for all $a\in(\mathbb{Z}/N\mathbb{Z})^{\times}$ and $n$ is the least positive integer with this property.

It follows from Euler’s theorem that the least universal exponent $n$ of $\mathbb{Z}/N\mathbb{Z}$ is less or equal to the value of Euler’s phi function $\phi(n)$, and in fact, the least universal exponent should divide $\phi(n)$.

###### Lemma.

Let $p$ be a prime and let $n$ be the least universal exponent of $\mathbb{Z}/p\mathbb{Z}$. Then there is a number $a\in(\mathbb{Z}/p\mathbb{Z})^{\times}$ whose order is precisely $n$.

###### Proof.

In this proof we will use the properties of the multiplicative order of an integer. We shall prove that (a) the least universal exponent is the least common multiple of all the orders of all the elements of $(\mathbb{Z}/N\mathbb{Z})^{\times}$, and (b) there is an element whose order is exactly the least common multiple. In order to show (a) and (b), it suffices to show that if $a$ and $b$ have orders $\operatorname{ord}(a)=h$ and $\operatorname{ord}(b)=k$ then there is an element $c$ whose order is $\operatorname{ord}(c)=\operatorname{lcm}(h,k)$. This is clear: if $q$ is a prime and $q^{i}$ divides $h=\operatorname{ord}(a)$ then, there is an element whose order is $p^{i}$ (namely $a^{h/q^{i}}$ has such order); and if $h^{\prime}=\operatorname{ord}(c)$ and $k^{\prime}=\operatorname{ord}(d)$ are relatively prime then $\operatorname{ord}(cd)=h^{\prime}k^{\prime}$. Finally, suppose that $\operatorname{lcm}(h,k)=q_{1}^{i_{1}}\cdots q_{t}^{i_{t}}$, for some distinct primes $q_{1},\ldots,q_{t}$ and positive integers $i_{1},\ldots,i_{t}$. Then, each $q_{j}^{i_{j}}$ divides either $h$ or $k$ and there is an element $c_{j}$ of order exactly $q_{j}^{i_{j}}$. Thus, the element $c=c_{1}\cdots c_{t}$ has exact order $\operatorname{lcm}(h,k)$. ∎

###### Theorem.

Every prime $p$ has a primitive root.

The following proof is due to Legendre.

###### Proof.

If $p=2$ then $g=1$ is a primitive root. Let us assume that $p>2$ is prime and let $n$ be the least universal exponent for $p$, i.e. $n$ is the smallest positive integer such that $x^{n}\equiv 1\mod p$, for all non-zero $x\in\mathbb{Z}/p\mathbb{Z}$. Notice that, in particular by the Lemma, there is some element $g\in\mathbb{Z}/p\mathbb{Z}$ such that $g^{n}\equiv 1$ but $g^{m}\neq 1\mod p$ for any $m, i.e. the multiplicative order of $g$ is precisely $n$. Also, notice that by Fermat’s little theorem, $n\leq p-1$.

Now, the polynomial $f(x)=x^{n}-1$ has at most $n$ roots over the field $\mathbb{Z}/p\mathbb{Z}$ (see http://planetmath.org/node/APolynomialOfDegreeNOverAFieldHasAtMostNRootsthis entry), and $f(x)\equiv 0\mod p$ for all non-zero $x\mod p$. Thus $n\geq p-1$. Hence, $n=p-1$ and $g$ is of exact order $p-1$, therefore $g$ is a primitive root. ∎

Title every prime has a primitive root EveryPrimeHasAPrimitiveRoot 2013-03-22 16:20:41 2013-03-22 16:20:41 alozano (2414) alozano (2414) 6 alozano (2414) Theorem msc 11-00 APolynomialOfDegreeNOverAFieldHasAtMostNRoots ExistenceOfPrimitiveRootsForPowersOfAnOddPrime