Roots of unity ω have the property ω^(k/2) ≡ −1

In previous articles, we established that in the finite field Fq\mathbb{F}_q, if kk divides q1q-1:

  • There exists a unique subgroup of order kk - the kk-th roots of unity.
  • A generator ω\omega of this subgroup is a primitive kk-th root of unity and is given by ω=gq1k\omega = g^{\frac{q-1}{k}}, where gg is a generator of Fq\mathbb{F}_q^*.
  • kk is the smallest positive integer for which ωk1\omega^k\equiv 1.

In this article, we explore a key property of a primitive root of unity ω\omega in Fq\mathbb{F}_q: As long as kk is even, ωk2\omega^{\frac{k}{2}} is congruent to 1-1.

Motivation

For some applications, we want to find relationships among different kk-th roots of unity for some kk. More precisely, we want to determine which roots of unity are additive inverses of others.

In a field Fq\mathbb{F}_q, if kk divides q1q-1, the kk-th roots of unity can be written as

{1,ω,ω2,...,ωk1}\{ 1, \omega, \omega^2, ..., \omega^{k-1} \}

where ω\omega is a primitive kk-th root of unity.

One might ask: can we easily find ω-\omega or ω2- \omega^2? Yes, we can. Let’s take the following fact, which we will prove shortly: If kk is even, then ωk21\omega^\frac{k}{2} \equiv -1.

Let us use this fact. Since ω-\omega is the same as (1)ω(-1) \omega, knowing that 1ωk2-1 \equiv \omega^\frac{k}{2}, we have that

ω=(1)ω=ωk2ω=ωk2+1-\omega = (-1) \omega = \omega^\frac{k}{2} \omega = \omega^{\frac{k}{2} + 1}

The same can be used to find ω2- \omega^2. We have that

ω2=(1)ω2=ωk2ω2=ωk2+2-\omega^2 = (-1) \omega^2 = \omega^\frac{k}{2} \omega^2 = \omega^{\frac{k}{2} + 2}

This can be generalized by any ii as

ωi=ωk2+i- \omega^i = \omega^{\frac{k}{2} + i}

This establishes a relationship between the kk-th roots of unity.

As an example, let us consider the 8th roots of unity,

{1,ω,ω2,ω3,ω4,ω5,ω6,ω7}\{ 1, \omega, \omega^2, \omega^3, \omega^4, \omega^5, \omega^6, \omega^7 \}

Using the relationship obtained, the 8th roots of unity can be written as

{1,ω,ω2,ω3,1,ω,ω2,ω3}\{ 1, \omega, \omega^2, \omega^3, -1, -\omega, - \omega^2, -\omega^3\}

For this to hold, we just need to show that ωk21\omega^\frac{k}{2} \equiv -1 for any kk. Let’s proceed to do that now.

What is the meaning of 1-1 in a finite field Fq\mathbb{F}_q

In Fq\mathbb{F}_q, the notation a-a denotes the additive inverse of aa, satisfying a+(a)=0a + (-a) = 0.

For example, in F7\mathbb{F}_7, since 6+1=70(mod7)6+1 = 7\equiv 0\pmod{7}, we say 66 is the additive inverse of 11, and write

16(mod7).-1 \equiv 6\pmod{7}.

For any finite field Fq\mathbb{F}_q, since (q1)+1=q0(modq)(q-1) + 1 = q \equiv 0\pmod{q}, the additive inverse of 11 is always q1q-1:

1q1(modq).-1 \equiv q-1\pmod{q}.

Let’s now look at examples of ωk2\omega^{\frac{k}{2}}.

Example of ωk2\omega^{\frac{k}{2}} among the kk-th roots of unity in F17\mathbb{F}_{17}

In the following examples, we use the generator g=3g =3 for the multiplicative group F17\mathbb{F}_{17}^*. Since 1616 is the additive inverse of 11 in F17\mathbb{F}_{17}, we have:

116(mod17)-1 \equiv 16\pmod{17}

Case k=4k=4

A primitive 4th root of unity is ω=gq1k=g164=3413(mod17)\omega = g^{\frac{q-1}{k}} = g^{\frac{16}{4}} = 3^4 \equiv 13\pmod{17}.

Here, ωk2=ω42=ω2=132161\omega^{\frac{k}{2}} = \omega^{\frac{4}{2}} = \omega^2 = 13^2\equiv 16 \equiv -1.

Thus, we conclude that ωk21\omega^{\frac{k}{2}} \equiv -1 for k=4k=4.

Case k=8k = 8

Now ω=gq1k=g168=329(mod17)\omega = g^{\frac{q-1}{k}} = g^{\frac{16}{8}} = 3^2 \equiv 9\pmod{17} is a primitive 8th root of unity.

For k=8k=8, k2=4\frac{k}{2} = 4, and we have ωk2=94161\omega^{\frac{k}{2}} = 9^4\equiv 16 \equiv -1.

Example of ωk2\omega^{\frac{k}{2}} among the kk-th roots of unity in F97\mathbb{F}_{97}

In the finite field F97\mathbb{F}_{97}, we have q1=971=96q-1 = 97-1 = 96. The additive inverse of 11 is:

196(mod97)-1\equiv 96\pmod{97}

The element g=5g = 5 is a generator of the multiplicative group F97={1,2,,96}\mathbb{F}_{97}^* = \{1,2,\dots,96\}. 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 k=32k=32, we obtain ω\omega as

ω=gq1k=g9632=53=12528(mod97).\omega = g^{\frac{q-1}{k}} = g^{\frac{96}{32}} = 5^3 = 125 \equiv 28\pmod{97}.

Letting k2=16\frac{k}{2} = 16, we calculate ωk2=2816\omega^{\frac{k}{2}} = 28^{16} with the following Python code:

result = 28**16 % 97
print(f"28^16 % 97 = {result}")  # Output: 96

Thus:

ω16=2816961(mod97).\omega^{16} = 28^{16} \equiv 96 \equiv -1\pmod{97}.

We conclude that, for k=32k = 32, ωk21\omega^{\frac{k}{2}} \equiv -1 in F97\mathbb{F}_{97}.

Python code

The following Python code checks if ωk21\omega^\frac{k}{2} \equiv - 1 for a field Fq\mathbb{F}_q. It is used to test this property in F17\mathbb{F}_{17} for k=8k = 8 and ω=9\omega = 9. You can test it for k=32k = 32 with ω=28\omega = 28 in F97\mathbb{F}_{97} 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 gg be a generator of Fq\mathbb{F}_q^*. This equivalently means that gg is a primitive (q1)(q-1)-th root of unity.

Let ω=gq1k\omega=g^\frac{q-1}{k} be a primitive kk-th root of unity in the finite field Fq\mathbb{F}_q. We will prove that ωk21\omega^{\frac{k}{2}} \equiv -1.

The idea of the proof is to show that ωk2\omega^\frac{k}{2} can only be 11 or 1−1. We will exclude the possibility that ωk2\omega^\frac{k}{2} is 11, leaving 1−1 as the only option.

Proof:

Let’s take the square of ωk2\omega^\frac{k}{2}. It is given by

(ωk2)2=ωk1\left(\omega^\frac{k}{2} \right)^2 = \omega^k \equiv 1

The last equality follows from the fact that ω\omega is a primitive kk-th root of unity.

Since the square of ωk2\omega^\frac{k}{2} is 11, that is, (ωk2)21\left(\omega^\frac{k}{2} \right)^2 \equiv 1, then ωk2\omega^\frac{k}{2} can only be 11 or 1-1, because only 121^2 or (1)2(-1)^2 is equal to 11.

Let us show that it cannot be 11.

Replace ω=gq1k\omega = g^{\frac{q-1}{k}} into ωk2\omega^{\frac{k}{2}}. This gives us that

ωk2=(gq1k)k2=gq12\omega^{\frac{k}{2}} = \left(g^{\frac{q-1}{k}}\right)^{\frac{k}{2}} = g^{\frac{q-1}{2}}

Since gg is a primitive (q1)(q-1)-th root of unity, the smallest positive integer rr for which gr1g^r\equiv 1 is r=q1r=q−1.

In other words, there is no integer rr smaller than q1q-1 such that gr1g^{r} \equiv 1. Since q12<q1\frac{q-1}{2} < q-1, gq12g^{\frac{q-1}{2}} cannot be 11. Therefore, the only possibility is that ωk2\omega^\frac{k}{2} is equal to 1-1.

Summary

  • If ω\omega is a primitive kk-th root of unity in a finite field Fq\mathbb{F}_q, then ωk21\omega^{\frac{k}{2}} \equiv -1 for even kk.
  • Using this property, we have that ωi=ωk2+i- \omega^i = \omega^{\frac{k}{2}+i} or stated equivalently, ωi\omega^i is the additive inverse of ωk/2+i\omega^{k/2+i}.

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.

© 2025 Better-Start. All rights reserved.