Roots of Unity in Finite Fields

This article explains what Roots of Unity in a Finite Field are and how they are intertwined with multiplicative subgroups. The reader is expected to be familiar with the prior chapter about the Fundamental Theorem of Cyclic Groups.

That theorem states that, given a multiplicative group Fq\mathbb{F}_q^* of order q1q-1, there exists a unique subgroup of order kk when kk divides q1q-1. Otherwise, if kk does not divide q1q-1, no subgroup of order kk exists.

It also states that, if gg is a generator of Fq\mathbb{F}_q^*, then gq1kg^\frac{q-1}{k} generates the subgroup of order kk.

In this article, we will show that all elements of this subgroup are what are called kk-th roots of unity, and that the generator ω\omega is what is called a primitive kk-th root of unity.

Motivation and goal for this chapter

The square roots of 11 in a finite field are easy to compute: they are the numbers congruent to 11 and negative 11 (which are 11 and q1q - 1 respectively. Remember that, in a field Fq\mathbb{F}_q, the number x-x is congruent to qxq-x ). In other words, 1={1,q1}\sqrt{1} = \{1, q-1 \}. This set is the set of solutions of the equation a21a^2 \equiv 1, where aa is an element of the finite field.

But what if we want to compute the cube roots of 11, or more generally, the kk-th roots of 1, i.e., 1k\sqrt[^k]{1}? By definition, kk-th roots of unity are the elements that satisfy the equation ak1a^k \equiv 1. But how can we find them?

We could try all elements one by one — a brute-force approach — but that would be infeasible when the field contains many elements. Fortunately, there is a simple way to find them all. In the finite field Fq\mathbb{F}_q, the kk-th roots of unity are precisely the elements of the multiplicative subgroup of order kk. This definition assumes kk divides q1.q-1.

To state it in the strongest possible terms: If an element aa in a finite field is part of a multiplicative subgroup of order kk, then it is a kk-th root of unity, and ak1a^k\equiv1. And if an element aa is a kk-th root of unity (meaning ak1)a^k\equiv1), then it is part of a multiplicative subgroup of order k.

Equivalence of terminology

It may seem like we are just adding a new terminology for the same entity (an element in a multiplicative group) and pointing out that raising it to the kk-th power equals 1.

In a certain sense, yes, we are introducing a new term for the same entity: a kk-th root of unity is an element in a multiplicative subgroup of order kk and vice-versa. Normally, giving the same entity two names leads to confusion, so we need to justify introducing the term “root of unity.”

When we speak about cyclic groups of order kk in the most general sense, we do not have the guarantee that taking an element in that group and applying the binary operator to that element and itself kk times results in the identity element, i.e., ak1a^k\equiv1 , or more generally for a binary operator \star:

aaak=identity\underbrace{a\star a\star\dots\star a}_k=\text{identity}

For cyclic groups in general, the above property is not guaranteed to hold, but for roots of unity in a finite field, it is guaranteed.

Therefore, we can say that roots of unity have all the properties the Fundamental Theorem of Cyclic groups says they should have, and they have the property that ak1.a^k\equiv1.

So, to put the reader’s mind at ease, you already know a good bit about roots of unity in a finite group simply because you understand the Fundamental Theorem of Cyclic Groups. Since roots of unity in a finite field are a cyclic subgroup, the Fundamental Theorem of Cyclic Groups applies to them.

However, the added guarantee that ak1a^k\equiv1 unlocks additional properties that efficient ZK algorithms directly leverage. These properties enable us to create efficient algorithms like the Number Theoretic Transform and other Zero-Knowledge Proof algorithms, such as PLONK and ZK-STARKs.

We study these additional properties of roots of unity in later chapters. This chapter focuses on definitions and examples to build the understanding that an element aa in a finite field has the property ak1a^k\equiv1 if and only if it is part of a multiplicative subgroup of order k.k.

Computing k-th roots of unity is the same as finding the multiplicative subgroup of order k

In the article on the Fundamental Theorem of Cyclic Groups, we learned how to find all the elements of a multiplicative subgroup of order kk. First, we obtain a generator of this subgroup from the generator of the multiplicative group Fq\mathbb{F}_q^*. Then, using this generator, we can find all the elements of the subgroup of order kk.

Thus, finding the kk-th roots of unity of Fq\mathbb{F}_q is no different from finding the multiplicative subgroup of order kk, if kk divides q1q-1, which we already know how to do.

Our aim in this chapter is to prove this equivalence - between the group of all kk-th roots of unity and the multiplicative subgroup of order kk, if kk divides q1q-1.

To do this, we need to prove the following two statements:

  1. Every element aa within the multiplicative subgroup of order kk satisfies ak1a^k\equiv 1.
  2. Suppose kk divides q1q-1. Then, every element aa in Fq\mathbb{F}_q^* that satisfies ak1a^k\equiv 1 belongs to the unique subgroup of order kk.

We will explore these two statements through examples to illustrate that they hold true. Since the formal proofs can be somewhat mathematically demanding, we will defer some of them to the appendix for the interested reader, though we have made the effort to make the proofs as widely understandable as possible.

1. Every element aa in the subgroup of order kk satisfies ak1a^k\equiv 1

This first statement shows that all elements of the multiplicative subgroup of order kk are kk-th roots of unity.

However, this is NOT sufficient to establish the equivalence between the group of all kk-th roots of unity and the multiplicative subgroup of order kk (when kk divides q1q-1) since it does not guarantee that all kk-th roots of unity belong to this subgroup — which will be discussed in Statement 2.

We will begin this section with a proof of this statement, and then show through examples that this statement holds true.

Proof of Statement 1

Recall from the article on the Fundamental Theorem of Cyclic Groups that a unique subgroup of order kk is generated by ω=gq1k\omega = g^{\frac{q-1}{k}}, where gg is a generator of the multiplicative group Fq\mathbb{F}_{q}^*. We refer to ω\langle\omega\rangle as the elements generated by taking successive powers of ω\omega modulo qq:

ω={ω0,ω1,ω2,,ωk1}.\langle\omega\rangle = \{\omega^{0},\omega^{1},\omega^{2},\dots ,\omega^{k-1}\}.

Let ωm\omega^m be an arbitrary element in ω\langle\omega\rangle for some 0mk10\le m\le k-1. The goal is to prove that (ωm)k1(\omega^m)^k\equiv 1.

The proof below assumes that the generator has the property ωk1\omega^k \equiv 1; see Appendix A for the proof of this fact.

Let’s compute (ωm)k(\omega^m)^k as follows:

(ωm)k=(ωmk)Power of a power rule =(ωkm)Commutativity of exponents=(ωk)mFactoring the exponent(1)mBased on the discussion in the appendix A: ωk11One raised to an arbitrary power is 1.\begin{aligned} (\omega^m)^k &= (\omega^{mk}) &&\qquad\text{Power of a power rule }\\ &= (\omega^{km}) &&\qquad\text{Commutativity of exponents}\\ &=(\omega^k)^m&&\qquad\text{Factoring the exponent}\\ &\equiv (1)^m&&\qquad\text{Based on the discussion in the appendix A: $\omega^k\equiv 1$}\\ &\equiv 1&&\qquad\text{One raised to an arbitrary power is 1}. \end{aligned}

Therefore, every element in the subgroup of order kk, when raised to the power kk, equals 1.

Example of Statement 1 in F7={0,1,2,3,4,5,6}\mathbb{F}_7 = \{0,1,2,3,4,5,6\}

In this example, we have q1=71=6q-1 = 7-1 = 6. Also, the element g=3g = 3 is a generator of the multiplicative group Fq={1,2,3,4,5,6}\mathbb{F}_q^* = \{1,2,3,4,5,6\}.

How to find the generator of the multiplicative group will not be covered in this article, but the galois library provides a quick way to do it. Given the field Fq\mathbb{F}_q, one way to find the generator is by using the primitive_element property, as shown below.

import galois
GF = galois.GF(7) # define the field
GF.primitive_element # GF(3, order=7) 

Subgroup of order 3

Since 3 divides q1=6q-1 = 6, the Fundamental Theorem of Cyclic Groups guarantees the existence of a unique subgroup of order 3.

This subgroup is generated by 3q1k=363=32=92(mod7)3^{\frac{q-1}{k}} = 3^{\frac{6}{3}} = 3^{2} = 9\equiv 2\pmod{7}. Thus,

2={20,21,22}={1,2,4}.\langle 2\rangle = \{2^0,2^1,2^2\} = \{1, 2, 4\}.

Now, we want to verify that every element aa in 2\langle 2\rangle satisfies a31a^3\equiv 1. This is done below:

131(mod7)2381(mod7)431642481(mod7)\begin{aligned} &1^3 \equiv \boxed{1}\pmod{7}\\ &2^3 \equiv 8 \equiv \boxed{1}\pmod{7}\\ &4^3 \equiv 16 \cdot 4 \equiv 2 \cdot 4 \equiv 8 \equiv \boxed{1}\pmod{7}\\ \end{aligned}

So, the elements 1,21, 2 and 44 satisfy a31(mod7)a^3\equiv 1\pmod{7}. Therefore, the condition is satisfied.

Subgroup of order 2

Since 2 divides q1=6q-1 = 6, the Fundamental Theorem of Cyclic Groups guarantees the existence of a unique subgroup of order 2.

This subgroup is generated by 3q1k=362=33=276(mod7)3^{\frac{q-1}{k}} = 3^{\frac{6}{2}} = 3^{3} = 27\equiv 6\pmod{7}. Thus,

6={60,61}={1,6}.\langle 6\rangle = \{6^0,6^1\} = \{1, 6\}.

Now, we want to verify that every element aa in 6\langle 6\rangle satisfies a21a^2\equiv 1.

121(mod7)62=361(mod7)\begin{aligned} &1^2 \equiv \boxed{1}\pmod{7}\\ &6^2 = 36 \equiv \boxed{1}\pmod{7} \end{aligned}

So, the elements 11 and 66 satisfy a21(mod7)a^2\equiv 1\pmod{7}. Therefore, the condition is satisfied.

Exercise. Verify that every element aa in F7\mathbb{F}_7^* satisfies a61a^6\equiv 1.

2. If kk divides q1q-1, then every element aa in Fq\mathbb{F}_q^* with ak1a^k\equiv 1 belongs to the unique subgroup of order kk

This statement asserts that ALL kk-th roots of unity belong to the multiplicative subgroup of order kk, provided that kk divides q1q-1.

In this section, we illustrate this claim through a few examples. The full proof is provided in Appendix B for the interested reader.

Before moving on, let’s consider the case where kk does not divide q1q-1. In this situation, the Fundamental Theorem of Cyclic Groups tells us that there is no subgroup of order kk, and therefore no equivalence can exist.

Example in F7={0,1,2,3,4,5,6}\mathbb{F}_7 = \{0,1,2,3,4,5,6\}

In this example, we have q1=71=6q-1 = 7-1 = 6. Also, the element g=3g = 3 is a generator of the multiplicative group Fq={1,2,3,4,5,6}\mathbb{F}_q^* = \{1,2,3,4,5,6\}.

Subgroup of order k=3k=3

Since 3 divides q1=6q-1 = 6, there exists a unique subgroup of order 3. This subgroup is generated by 3q1k=363=32=92(mod7)3^{\frac{q-1}{k}} = 3^{\frac{6}{3}} = 3^{2} = 9\equiv 2\pmod{7}. Thus,

2={20,21,22}={1,2,4}.\langle 2\rangle = \{2^0,2^1,2^2\} = \{1, 2, 4\}.

We want to verify that every element aa in F7\mathbb{F}_{7}^* satisfying a31a^3\equiv 1 belongs to this unique subgroup of order k=3k = 3 in F7\mathbb{F}_{7}^*. Let’s find all such elements aa in F7\mathbb{F}_{7}^*, as follows:

131(mod7)2381(mod7)3393236(mod7)431642481(mod7)5325545206(mod7)63366166(mod7).\begin{aligned} &\boxed{1^3 \equiv 1}\pmod{7}\\ &\boxed{2^3 \equiv 8 \equiv 1}\pmod{7}\\ &3^3 \equiv 9 \cdot 3 \equiv 2 \cdot 3 \equiv 6\pmod{7}\\ &\boxed{4^3 \equiv 16 \cdot 4 \equiv 2 \cdot 4 \equiv 8 \equiv 1}\pmod{7}\\ &5^3 \equiv 25 \cdot 5 \equiv 4 \cdot 5 \equiv 20 \equiv 6\pmod{7}\\ &6^3 \equiv 36 \cdot 6 \equiv 1 \cdot 6 \equiv 6\pmod{7}. \end{aligned}

The elements 1,21, 2 and 44 satisfy a31(mod7)a^3\equiv 1\pmod{7}. These three elements are exactly the members of the subgroup of order k=3k =3 in F7\mathbb{F}_{7}^*. Therefore, every element aa in F7\mathbb{F}_{7}^* with a31a^3\equiv 1 belongs to the unique subgroup of order k=3k = 3.

Exercise. Verify that every element aa in F7\mathbb{F}_7^* satisfying a21a^2\equiv 1 belongs to the unique subgroup of order k=2k = 2.

Example in F17={0,1,2,,16}\mathbb{F}_{17} = \{0,1,2,\dots,16\}

In this example, we have q1=171=16q-1 = 17-1 = 16. Also, the element g=3g = 3 is a generator of the multiplicative group Fq={1,2,,16}\mathbb{F}_q^* = \{1,2,\dots,16\}, which can be verified using the galois library:

GF = galois.GF(17) # define the field
GF.primitive_element # GF(3, order=17) 

Subgroup of order k=4k=4

Since 4 divides q1=16q-1 = 16, there exists a unique subgroup of order 4. This subgroup is generated by 3q1k=3164=34=8113(mod17)3^{\frac{q-1}{k}} = 3^{\frac{16}{4}} = 3^{4} = 81\equiv 13\pmod{17}. Thus,

13={130,131,132,133}={1,13,16,4}.\langle 13\rangle = \{13^0,13^1,13^2, 13^3\} = \{1, 13, 16, 4\}.

We want to verify that every element aa in F17\mathbb{F}_{17}^* satisfying a41a^4\equiv 1 belongs to this unique subgroup of order k=4k = 4 in F17\mathbb{F}_{17}^*. Let’s find all such elements aa in F17\mathbb{F}_{17}^*, as follows:

14=124=16≢134=8113≢1441616(1)(1)1542525774915≢1643636224≢17449491515(2)(2)4≢184(23)4=(24)3(1)3116≢1(mod17)94=81811313(4)(4)16≢11041001001515(2)(2)4≢1114121121224≢11241441448813≢11341691691616(1)(1)1144(3)49913≢1154(2)416≢1164(1)41.\begin{aligned} &\boxed{1^4 = 1}\\ &2^4 = 16\not\equiv 1\\ &3^4 = 81 \equiv 13\not\equiv 1\\ &\boxed{4^4 \equiv 16 \cdot 16 \equiv (-1) \cdot (-1) \equiv 1}\\ &5^4 \equiv 25 \cdot 25 \equiv 7 \cdot 7 \equiv 49 \equiv 15\not\equiv 1\\ &6^4 \equiv 36 \cdot 36 \equiv 2 \cdot 2 \equiv 4\not\equiv 1\\ &7^4 \equiv 49 \cdot 49 \equiv 15 \cdot 15 \equiv (-2) \cdot (-2)\equiv 4\not\equiv 1\\ &8^4 \equiv (2^3)^4 = (2^4)^3 \equiv (-1)^3 \equiv -1\equiv 16\not\equiv 1\qquad\qquad\pmod{17}\\ &9^4 = 81 \cdot 81 \equiv 13 \cdot 13 \equiv (-4) \cdot (-4) \equiv 16\not\equiv 1\\ &10^4 \equiv 100 \cdot 100 \equiv 15 \cdot 15 \equiv (-2) \cdot (-2) \equiv 4\not\equiv 1\\ &11^4 \equiv 121 \cdot 121 \equiv 2 \cdot 2 \equiv 4\not\equiv 1\\ &12^4 \equiv 144 \cdot 144 \equiv 8 \cdot 8 \equiv 13\not\equiv 1\\ &\boxed{13^4 \equiv 169 \cdot 169 \equiv 16 \cdot 16 \equiv (-1) \cdot (-1)\equiv 1}\\ &14^4 \equiv (-3)^4 \equiv 9 \cdot 9\equiv 13\not\equiv 1\\ &15^4\equiv (-2)^4\equiv 16\not\equiv 1\\ &\boxed{16^4 \equiv (-1)^4 \equiv 1}. \end{aligned}

The elements 1,4,131, 4, 13 and 1616 satisfy a41(mod17)a^4\equiv 1\pmod{17}. These four elements are exactly the members of the subgroup of order k=4k =4 in F17\mathbb{F}_{17}^*. Therefore, every element aa in F17\mathbb{F}_{17}^* with a41a^4\equiv 1 belongs to the unique subgroup of order k=4k = 4.

Exercise. Verify that every element aa in F17\mathbb{F}_{17}^* satisfying a81a^8\equiv 1 belongs to the unique subgroup of order k=8k = 8.

Primitive kk-th root of unity

A primitive kk-th root of unity is a special kk-th root of unity: it is a kk-th root of unity that generates all other kk-th roots of unity.

Since the group of kk-th roots of unity we are interested in is the same as the subgroup of order kk, the primitive kk-th roots of unity are exactly the generators of this subgroup.

Note: In the case where kk does not divide q1q-1 (considering finite fields Fq\mathbb{F}_q), there may still be kk-th roots of unity, but in this case there are NO primitive kk-th roots of unity.

Thus, finding a primitive kk-th root of unity is straightforward: it is the same as finding a generator of the subgroup of order kk, and the Fundamental Theorem of Cyclic Groups tells us how to do this.

A formal definition of a primitive kk-th root of unity is that it is a kk-th root of unity with order kk, where the order of an element aa is the smallest positive integer greater than zero rr such that ar1a^r \equiv 1.

For example, 44 is a 6th root of unity in F7\mathbb{F}_7 because 461(mod7)4^6\equiv 1\pmod{7}, but it is not a primitive 6th root because there is a power lower than 6 that makes it 11, specifically 3, i.e. 431(mod7)4^3 \equiv 1\pmod{7}.

The number of primitive kk-th roots of unity

Just as a subgroup of order kk can have more than one generator, there can be more than one primitive kk-th root of unity. The number of primitive kk-th roots of unity is the same as the number of generators of the subgroup of order kk.

The number of primitive kk-th roots of unity (and generators) is given by Euler’s totient function ϕ(k)\phi(k). The proof of this fact is beyond the scope of this article. For the application we are considering—the Number Theoretic Transform—we only need a primitive kk-th root of unity, which can be found using the Fundamental Theorem, assuming we know a generator for Fq\mathbb{F}_q^*.

In the rest of this chapter, we will present examples showing how to use the Fundamental Theorem to find a primitive kk-th root of unity, and then all kk-th roots of unity for a given kk.

Example of 4th roots of unity in F17\mathbb{F}_{17}^*

A generator of the multiplicative group F17\mathbb{F}_{17}^* is the element 33, which can be found using the galois library.

A generator for the subgroup of order 4 is then ω=3164=3413\omega = 3^{\frac{16}{4}} = 3^4 \equiv 13.

Based on our discussion, this generator is a primitive 4th root of unity. Let us check that using the definition of a primitive kk-th root of unity. We need to show that:

  1. Element 1313 is a 4th root of unity. This can be seen by checking that 1341(mod17)13^4 \equiv 1 \pmod{17}.
  2. The order of element 1313 is 4. This means that 4 is the smallest positive integer rr such that 13r1(mod17)13^r \equiv 1 \pmod{17}. Let us check that below:
131=13,13216,(mod17)13313164,1341616111.\begin{aligned} &13^1 = 13,\\ &13^2 \equiv 16,&&\pmod{17}\\ &13^3 \equiv 13 \cdot 16 \equiv 4,\\ &\boxed{13^4 \equiv 16 \cdot 16\equiv -1 \cdot -1 \equiv 1}. \end{aligned}

Therefore, element 1313 is a primitive 4th root of unity, and we can use element 1313 to generate the subgroup of all 4th roots of unity, as follows:

ω={ω0,ω1,ω2,ω3,ω4}={130,131,132,133}={1,13,16,4}.\begin{aligned} \langle\omega\rangle &= \{ \omega^0, \omega^1, \omega^2, \omega^3, \omega^4\}\\ &= \{13^0, 13^1, 13^2, 13^3\}\\ &=\{1, 13, 16, 4\}. \end{aligned}

Example of 8th roots of unity in F17\mathbb{F}_{17}^*

Since g=3g =3 is a generator of the multiplicative group F17\mathbb{F}_{17}^*, a generator for the subgroup of order 88 is ω=3168=329\omega = 3^{\frac{16}{8}} = 3^2 \equiv 9.

Let us check that it is also a primitive 8th root of unity. We need to check that:

  1. Element 99 is a 8th root of unity. This can be seen by checking that 981(mod17)9^8 \equiv 1 \pmod{17}.
  2. The order of element 99 is 8. This means that 8 is the smallest positive integer rr such that 9r1(mod17)9^r \equiv 1 \pmod{17}. Let us check that below:
91=9,9213,9391315,941313(4)(4)16,(mod17)959168,96984,97942,9892=181.\begin{aligned} &9^1 = 9,\\ &9^2 \equiv 13,\\ &9^3 \equiv 9 \cdot 13 \equiv 15,\\ &9^4 \equiv 13 \cdot 13 \equiv (-4) \cdot (-4)\equiv 16,\qquad\pmod{17}\\ &9^5 \equiv 9 \cdot 16 \equiv 8,\\ &9^6 \equiv 9 \cdot 8 \equiv 4,\\ &9^7 \equiv 9 \cdot 4 \equiv 2,\\ &\boxed{9^8 \equiv 9 \cdot 2 = 18\equiv 1}. \end{aligned}

Therefore, element 99 is a primitive 8th root of unity, and we can use element 99 to generate the subgroup of all 8th roots of unity, as follows:

ω={ω0,ω1,ω2,ω3,ω4,ω5,ω6,ω7}={90,91,92,93,94,95,96,97}={1,9,13,15,16,8,4,2}.\begin{aligned} \langle\omega\rangle &= \{ \omega^0, \omega^1, \omega^2, \omega^3, \omega^4, \omega^5, \omega^6, \omega^7\}\\ &= \{9^0, 9^1, 9^2, 9^3, 9^4, 9^5, 9^6, 9^7\}\\ &=\{1, 9, 13, 15, 16, 8, 4, 2\}. \end{aligned}

Exercise. Find a primitive 2nd root of unity in F17\mathbb{F}_{17}^* and the subgroup of all 2nd roots of unity.

Conclusion and summary

An efficient method is needed to find all kk-th roots of unity, which is what we studied in this article. In summary, we established that:

  • An element aa of a finite field Fq\mathbb{F}_q is a kk-th root of unity if ak1a^k \equiv 1.
  • If kk divides q1q-1, then the subgroup of Fq\mathbb{F}_q^* containing all kk-th roots of unity is the unique subgroup of order kk guaranteed by the Fundamental Theorem of Cyclic Groups.
  • A primitive kk-th root of unity generates the subgroup of all kk-th roots of unity. If gg is a generator of the multiplicative group Fq\mathbb{F}_q^* and kk divides q1q-1, then the element ω=gq1k\omega = g^{\frac{q-1}{k}} is a primitive kk-th root of unity.

Appendix A

The generator ω\omega of the subgroup of order kk satisfies**: ωk1\omega^k \equiv 1**

Let gg be a generator of the multiplicative group Fq\mathbb{F}_q^*. Recall from the Fundamental Theorem of Cyclic Groups that the element ω=gq1k\omega = g^{\frac{q-1}{k}} generates the unique subgroup of order kk. We aim to prove that ωk1\omega^k \equiv 1.

Proof. Fermat’s Little Theorem states that if qq is a prime number, then for any integer gg:

gqg(modq).g^{q}\equiv g\pmod{q}.

For example, if g=2g = 2 and q=7q=7, then 272(mod7)2^7\equiv 2\pmod{7}.

If gg is not divisible by qq, we can divide both sides of the equation above by gg. This shows that Fermat’s Little Theorem is equivalent to the statement:

gq11(modq).g^{q-1}\equiv 1\pmod{q}.

We now compute ωk\omega^k as follows:

ωk=(gq1k)kBy definition of ω=gq1Simplifying the exponent1(modq)Applying Fermat’s Little Theorem\begin{aligned} \omega^k &= (g^{\frac{q-1}{k}})^k &&\qquad\text{By definition of $\omega$}\\ &= g^{q-1} &&\qquad\text{Simplifying the exponent}\\ &\equiv 1\pmod{q}&&\qquad\text{Applying Fermat's Little Theorem} \end{aligned}

Appendix B

If aFqa\in\mathbb{F}_q^* and ak1a^k\equiv1 then aa is a member of a unique cyclic subgroup of order kk.

Let gg be a generator of Fq\mathbb{F}_q^*. This equivalently means that gg is a (q1)(q-1)-th root of unity.

Let ω=gq1k\omega=g^\frac{q-1}{k} be a generator for the multiplicative subgroup of order kk (ω=gq1k\omega=g^\frac{q-1}{k} is directly from the Fundamental Theorem of Cyclic Groups).

If aFqa\in\mathbb{F}_q^* and ak1a^k\equiv1 then we must prove that there exists an integer ss such that ωs=a\omega^s=a. The existence of integer ss in ωsa\omega^s\equiv a proves that aa can be generated by ω\omega and thus is part of the unique subgroup of order kk.

To find such an ss, we will substitute ω\omega with gq1kg^\frac{q-1}{k}and aa with gmg^m to convert ωs=a\omega^s=a into:

(gq1k)s=?gm{\left(g^\frac{q-1}{k}\right)}^s\stackrel{?}{=}g^m

Can we come up with an ss that makes the equation true? If we strategically pick an ss such that the exponent q1k\frac{q-1}{k} will cancel and leave mm we have:

s=mkq1s=\frac{mk}{q-1}

Plugging s=mkq1s=\frac{mk}{q-1} into the left-hand side of this equation (gq1k)s=?gm{\left(g^\frac{q-1}{k}\right)}^s\stackrel{?}{=}g^m, we obtain

(gq1k)(mkq1){\left(g^\frac{q-1}{k}\right)}^{(\frac{mk}{q-1})}

We can see that the q1q-1 and kk terms cancel, leaving us with gmg^m.

gq1kmkq1    gmg^{\frac{\cancel{q-1}}{\cancel{k}}\frac{m\cancel{k}}{\cancel{q-1}}}\implies g^m

We can substitute back the original definitions for gq1k=ωg^\frac{q-1}{k}=\omega, mkq1=s\frac{mk}{q-1}=s, and gm=ag^m=a and see that

ωs=a\omega^s=a

Therefore, if ak1a^k\equiv1, then there does in fact exist an ss such that ωs=a\omega^s=a. ss is simply

s=mkq1s=\frac{mk}{q-1}

where mm is the solution to gm=ag^m=a, kk is the order of the subgroup, and qq is the modulus of our finite field.

However, we must still prove that ss is an integer because generating a value by raising ω\omega to a fraction doesn’t qualify as being a member of the subgroup generated by ω\omega.

Showing ss is an integer

To show that mkq1\frac{mk}{q-1} is an integer, we need to show that dividing mkmk by q1q-1 has no remainder.

When we carry out the division, we should get a quotient nn and a remainder rr. We want to show that rr is necessarily 0.

mkq1=n+r\frac{mk}{q-1}=n+r

A remainder cannot be larger than the divisor (e.g., 115\frac{11}{5} cannot have a remainder 5 or larger), so we also have the condition that:

0r<q10\leq r\lt q-1

We can isolate mkmk in mk(q1)=n+r\frac{mk}{(q-1)}=n+r by translating it from the form dividend / divisor = quotient + remainder to dividend = quotient⋅divisor + remainder. (To illustrate this re-write, consider that 6/4=1 remainder 2 can be written as 6 = 4⋅1 + 2). In re-written form, we have:

mk=n(q1)+rwhere 0r<q1mk = n\cdot(q-1) + r\qquad\text{where $0\le r < q-1$}

In order to show that r=0r=0, we will set aside mk=n(q1)+rmk=n\cdot(q-1)+r for a moment, and derive another property of mkmk.

Fact: gmk1g^{mk}\equiv1

gmk1g^{mk}\equiv1 can be derived from the following facts:

  • ak1a^k\equiv1
  • a=gma=g^m

So by substitution, (gm)k1(g^m)^k\equiv1 and by the power of a power rule, gmk1g^{mk}\equiv1.

Substitute mk=n(q1)+rmk = n\cdot(q-1) + r into gmk1g^{mk}\equiv1

We now have enough tools to show that the remainder rr in mk=n(q1)+rmk = n\cdot(q-1) + r is zero. We remind the reader that gq11g^{q-1}\equiv1 since gg is a primitive (q1)(q-1)-th root of unity.

We now show that using the definitions

  • gmk1g^{mk}\equiv1
  • mk=n(q1)+rmk = n\cdot(q-1) + r
  • gq11g^{q-1}\equiv1

are sufficient to show that gmkgrg^{mk}\equiv g^r:

gmk=gn(q1)+rSubstitution=gn(q1)grPower multiplication rule=(gq1)ngrPower of a power rule1grBecause gq11=gr\begin{aligned} g^{mk} &= g^{n\cdot (q-1) + r}&&\qquad\text{Substitution}\\ &= g^{n\cdot(q-1)}\cdot g^r&&\qquad\text{Power multiplication rule}\\ &= (g^{q-1})^n\cdot g^r&&\qquad\text{Power of a power rule}\\ &\equiv 1\cdot g^r&&\qquad\text{Because $g^{q-1}\equiv 1$}\\ &= g^r \end{aligned}

As a consequence of gmkgrg^{mk}\equiv g^r and gmk1g^{mk}\equiv 1, we have that

gr1g^r\equiv1

Since gg is a primitive (q1)(q-1)-th root of unity, there are only two solutions for rr:

  • r=0r=0
  • rq1r\equiv q-1

Recall that rr is defined as the solution to

mkq1=n+rwhere 0r<q1\frac{mk}{q-1}=n+r\qquad\text{where $0\le r < q-1$}

We know that any valid division mkq1\frac{mk}{q-1} cannot result in a remainder rr of q1q-1 or higher, specifically, the remainder must be in the range 0r<q10\le r \lt q-1. That range restriction on the remainder implies rq1r\neq q-1.

So ruling out the possibility that r=q1r=q-1, the only solution for gr1g^r\equiv1 is r=0r=0 (i.e. g01g^0\equiv1).

Since r=0r=0, the result of dividing mkmk by q1q-1 is an integer.

Finally, since ss is defined as

s=mkq1s=\frac{mk}{q-1}

ss is an integer.

Ready to Get Started?Join Thousands of Users Today

Start your free trial now and experience the difference. No credit card required.

© 2025 Better-Start. All rights reserved.