roots of unity - Maple Help

Home : Support : Online Help : Mathematics : Group Theory : Number Theory : numtheory/rootsunity

numtheory[rootsunity] - roots of unity

 Calling Sequence rootsunity(p, r)

Parameters

 p - prime r - integer

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{rootsunity}\left(5,11\right)$
 ${1}{,}{3}{,}{4}{,}{5}{,}{9}$ (1)
 > $\mathrm{rootsunity}\left(3,11\right)$
 ${1}$ (2)