numtheory(deprecated)
mroot
modular root
Calling Sequence
Parameters
Description
Examples
mroot(x, r, p)
x, r, p
-
integers
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[ModularRoot] instead.
The function mroot computes the rth root of x mod⁢p. It finds an integer y such that yr=xmodp if possible. Otherwise, it returns FAIL.
The order, r, of the root must be prime.
The command with(numtheory,mroot) allows the use of the abbreviated form of this command.
with⁡numtheory:
mroot⁡5,11,13
8
mroot⁡2,3,6
2
See Also
msolve
NumberTheory[ModularRoot]
numtheory(deprecated)[msqrt]
numtheory(deprecated)[primroot]
numtheory(deprecated)[rootsunity]
Roots
Download Help Document