In
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, a ''k''th root of unity modulo ''n'' for positive
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s ''k'', ''n'' ≥ 2, is a
root of unity
In mathematics, a root of unity is any complex number that yields 1 when exponentiation, raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory ...
in the ring of
integers modulo ''n''; that is, a solution ''x'' to the
equation
In mathematics, an equation is a mathematical formula that expresses the equality of two expressions, by connecting them with the equals sign . The word ''equation'' and its cognates in other languages may have subtly different meanings; for ...
(or ''congruence'')
. If ''k'' is the smallest such exponent for ''x'', then ''x'' is called a primitive ''k''th root of unity modulo ''n''.
[
] See
modular arithmetic
In mathematics, modular arithmetic is a system of arithmetic operations for integers, other than the usual ones from elementary arithmetic, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to mo ...
for notation and terminology.
The roots of unity modulo are exactly the integers that are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
with . In fact, these integers are roots of unity modulo by
Euler's theorem
In number theory, Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem) states that, if and are coprime positive integers, then a^ is congruent to 1 modulo , where \varphi denotes Euler's totient function; that ...
, and the other integers cannot be roots of unity modulo , because they are
zero divisor
In abstract algebra, an element of a ring is called a left zero divisor if there exists a nonzero in such that , or equivalently if the map from to that sends to is not injective. Similarly, an element of a ring is called a right ze ...
s modulo .
A
primitive root modulo , is a generator of the group of
units of the ring of integers modulo . There exist primitive roots modulo if and only if
where
and
are respectively the
Carmichael function and
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
.
A root of unity modulo is a primitive th root of unity modulo for some divisor of
and, conversely, there are primitive th roots of unity modulo if and only if is a divisor of
Roots of unity
Properties
* If ''x'' is a ''k''th root of unity modulo ''n'', then ''x'' is a unit (invertible) whose inverse is
. That is, ''x'' and ''n'' are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
.
* If ''x'' is a unit, then it is a (primitive) ''k''th root of unity modulo ''n'', where ''k'' is the
multiplicative order
In number theory, given a positive integer ''n'' and an integer ''a'' coprime to ''n'', the multiplicative order of ''a'' modulo ''n'' is the smallest positive integer ''k'' such that a^k\ \equiv\ 1 \pmod n.
In other words, the multiplicative orde ...
of ''x'' modulo ''n''.
* If ''x'' is a ''k''th root of unity and
is not a
zero divisor
In abstract algebra, an element of a ring is called a left zero divisor if there exists a nonzero in such that , or equivalently if the map from to that sends to is not injective. Similarly, an element of a ring is called a right ze ...
, then
, because
::
Number of ''k''th roots
For the lack of a widely accepted symbol, we denote the number of ''k''th roots of unity modulo ''n'' by
.
It satisfies a number of properties:
*
for
*
where λ denotes the
Carmichael function and
denotes
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
*
is a
multiplicative function
In number theory, a multiplicative function is an arithmetic function f of a positive integer n with the property that f(1)=1 and
f(ab) = f(a)f(b) whenever a and b are coprime.
An arithmetic function is said to be completely multiplicative (o ...
*
where the bar denotes
divisibility
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a ''Multiple (mathematics), multiple'' of m. An integer n is divis ...
*
where
denotes the
least common multiple
In arithmetic and number theory, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two integers ''a'' and ''b'', usually denoted by , is the smallest positive integer that is divisible by both ''a'' and ...
* For
prime
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
,
. The precise mapping from
to
is not known. If it were known, then together with the previous law it would yield a way to evaluate
quickly.
Examples
Let
and
. In this case, there are three cube roots of unity (1, 2, and 4). When
however, there is only one cube root of unity, the unit 1 itself. This behavior is quite different from the field of complex numbers where every nonzero number has ''k'' ''k''th roots.
Primitive roots of unity
Properties
* The maximum possible radix exponent for primitive roots modulo
is
, where λ denotes the
Carmichael function.
* A radix exponent for a primitive root of unity is a
divisor
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
of
.
* Every divisor
of
yields a primitive
th root of unity. One can obtain such a root by choosing a
th primitive root of unity (that must exist by definition of λ), named
and compute the power
.
* If ''x'' is a primitive ''k''th root of unity and also a (not necessarily primitive) ''â„“''th root of unity, then ''k'' is a divisor of â„“. This is true, because
Bézout's identity
In mathematics, Bézout's identity (also called Bézout's lemma), named after Étienne Bézout who proved it for polynomials, is the following theorem:
Here the greatest common divisor of and is taken to be . The integers and are called B� ...
yields an integer
linear combination
In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
of ''k'' and ''â„“'' equal to
. Since ''k'' is minimal, it must be
and
is a divisor of ''â„“''.
Number of primitive ''k''th roots
For the lack of a widely accepted symbol, we denote the number of primitive ''k''th roots of unity modulo ''n'' by
.
It satisfies the following properties:
*
* Consequently the function
has
values different from zero, where
computes the
number of divisors.
*
*
*
for
, since -1 is always a
square root
In mathematics, a square root of a number is a number such that y^2 = x; in other words, a number whose ''square'' (the result of multiplying the number by itself, or y \cdot y) is . For example, 4 and −4 are square roots of 16 because 4 ...
of 1.
*
for
*
for
and
in
*
with
being
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
* The connection between
and
can be written in an elegant way using a Dirichlet convolution:
::
, i.e.
: One can compute values of
recursively from
using this formula, which is equivalent to the [
öbius inversion formula.
Testing whether ''x'' is a primitive ''k''th root of unity modulo ''n''
By
fast exponentiation, one can check that
. If this is true, ''x'' is a ''k''th root of unity modulo ''n'' but not necessarily primitive. If it is not a primitive root, then there would be some divisor â„“ of ''k'', with
. In order to exclude this possibility, one has only to check for a few â„“'s equal ''k'' divided by a prime.
That is, ''x'' is a primitive ''k''th root of unity modulo ''n'' if and only if
and
for every
prime divisor ''p'' of ''n''.
For example, if
every positive integer less than 17 is a 16th root of unity modulo 17, and the integers that are primitive 16th roots of unity modulo 17 are exactly those such that
Finding a primitive ''k''th root of unity modulo ''n''
Among the primitive ''k''th roots of unity, the primitive
th roots are most frequent.
It is thus recommended to try some integers for being a primitive
th root, what will succeed quickly.
For a primitive
th root ''x'', the number
is a primitive
th root of unity.
If ''k'' does not divide
, then there will be no ''k''th roots of unity, at all.
Finding multiple primitive ''k''th roots modulo ''n''
Once a primitive ''k''th root of unity ''x'' is obtained, every power
is a
th root of unity, but not necessarily a primitive one. The power
is a primitive
th root of unity if and only if
and
are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
. The proof is as follows: If
is not primitive, then there exists a divisor
of
with
, and since
and
are coprime, there exists integers
such that
. This yields
,
which means that
is not a primitive
th root of unity because there is the smaller exponent
.
That is, by exponentiating ''x'' one can obtain
different primitive ''k''th roots of unity, but these may not be all such roots. However, finding all of them is not so easy.
Finding an ''n'' with a primitive ''k''th root of unity modulo ''n''
In what integer
residue class rings does a primitive ''k''th root of unity exist? It can be used to compute a
discrete Fourier transform
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced Sampling (signal processing), samples of a function (mathematics), function into a same-length sequence of equally-spaced samples of the discre ...
(more precisely a
number theoretic transform) of a
-dimensional integer
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
. In order to perform the inverse transform, divide by
; that is, ''k'' is also a unit modulo
A simple way to find such an ''n'' is to check for primitive ''k''th roots with respect to the moduli in the
arithmetic progression
An arithmetic progression or arithmetic sequence is a sequence of numbers such that the difference from any succeeding term to its preceding term remains constant throughout the sequence. The constant difference is called common difference of that ...
All of these moduli are coprime to ''k'' and thus ''k'' is a unit. According to
Dirichlet's theorem on arithmetic progressions there are infinitely many primes in the progression, and for a prime
, it holds
. Thus if
is prime, then
, and thus there are primitive ''k''th roots of unity. But the test for primes is too strong, and there may be other appropriate moduli.
Finding an ''n'' with multiple primitive roots of unity modulo ''n''
To find a modulus
such that there are primitive
roots of unity modulo
, the following theorem reduces the problem to a simpler one:
: For given
there are primitive
roots of unity modulo
if and only if there is a primitive
th root of unity modulo ''n''.
; Proof
Backward direction:
If there is a primitive
th root of unity modulo
called
, then
is a
th root of unity modulo
.
Forward direction:
If there are primitive
roots of unity modulo
, then all exponents
are divisors of
. This implies
and this in turn means there is a primitive
th root of unity modulo
.
References
{{reflist
Modular arithmetic