numtheory(deprecated)
rootsunity
roots of unity
Calling Sequence
Parameters
Description
Examples
rootsunity(p, r)
p
-
prime
r
integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[RootsOfUnity] instead.
This function will calculate all the pth roots of unity mod r and return the result as an expression sequence.
The order, p, of the root must be prime.
Note that there will always be at least the root 1.
The command with(numtheory,rootsunity) allows the use of the abbreviated form of this command.
with⁡numtheory:
rootsunity⁡5,11
1,3,4,5,9
rootsunity⁡3,11
1
See Also
NumberTheory[RootsOfUnity]
numtheory(deprecated)[cyclotomic]
Download Help Document