Roots of unity ω have the property ω^(k/2) ≡ −1
In previous articles, we established that in the finite field , if divides :
- There exists a unique subgroup of order - the -th roots of unity.
- A generator of this subgroup is a primitive -th root of unity and is given by , where is a generator of .
- is the smallest positive integer for which .
In this article, we explore a key property of a primitive root of unity in : As long as is even, is congruent to .
Motivation
For some applications, we want to find relationships among different -th roots of unity for some . More precisely, we want to determine which roots of unity are additive inverses of others.
In a field , if divides , the -th roots of unity can be written as
where is a primitive -th root of unity.
One might ask: can we easily find or ? Yes, we can. Let’s take the following fact, which we will prove shortly: If is even, then .
Let us use this fact. Since is the same as , knowing that , we have that
The same can be used to find . We have that
This can be generalized by any as
This establishes a relationship between the -th roots of unity.
As an example, let us consider the 8th roots of unity,
Using the relationship obtained, the 8th roots of unity can be written as
For this to hold, we just need to show that for any . Let’s proceed to do that now.
What is the meaning of in a finite field
In , the notation denotes the additive inverse of , satisfying .
For example, in , since , we say is the additive inverse of , and write
For any finite field , since , the additive inverse of is always :
Let’s now look at examples of .
Example of among the -th roots of unity in
In the following examples, we use the generator for the multiplicative group . Since is the additive inverse of in , we have:
Case
A primitive 4th root of unity is .
Here, .
Thus, we conclude that for .
Case
Now is a primitive 8th root of unity.
For , , and we have .
Example of among the -th roots of unity in
In the finite field , we have . The additive inverse of is:
The element is a generator of the multiplicative group . The galois library provides a convenient way to find this generator using the primitive_element property, as shown below:
import galois
GF = galois.GF(97) # Define the field
GF.primitive_element # Returns GF(5, order=97)
For , we obtain as
Letting , we calculate with the following Python code:
result = 28**16 % 97
print(f"28^16 % 97 = {result}") # Output: 96
Thus:
We conclude that, for , in .
Python code
The following Python code checks if for a field . It is used to test this property in for and . You can test it for with in or another valid combination of your choice.
import galois
def check_omega_half_is_minus_one(q, omega, k):
GF = [galois.GF](http://galois.gf/)(q)
if k % 2 != 0:
raise ValueError("k must be even")
omega_half = GF(omega) ** (k // 2)
return omega_half == GF(q-1)
# Example usage:
q = 17
k = 8
omega = 9
result = check_omega_half_is_minus_one(q, omega, k)
print(f"For ω={omega} and k={k}: ω^(k/2) == -1 is {result} in F_{q}")
The mathematical proof
Let be a generator of . This equivalently means that is a primitive -th root of unity.
Let be a primitive -th root of unity in the finite field . We will prove that .
The idea of the proof is to show that can only be or . We will exclude the possibility that is , leaving as the only option.
Proof:
Let’s take the square of . It is given by
The last equality follows from the fact that is a primitive -th root of unity.
Since the square of is , that is, , then can only be or , because only or is equal to .
Let us show that it cannot be .
Replace into . This gives us that
Since is a primitive -th root of unity, the smallest positive integer for which is .
In other words, there is no integer smaller than such that . Since , cannot be . Therefore, the only possibility is that is equal to .
Summary
- If is a primitive -th root of unity in a finite field , then for even .
- Using this property, we have that or stated equivalently, is the additive inverse of .
The following chapter will introduce a visualization that makes these points easier to remember.
Ready to Get Started?
Join Thousands of Users Today
Start your free trial now and experience the difference. No credit card required.