Skip to main content

PowerMod

PowerMod[a,b,m] gives ab mod m. 

PowerMod[a,-1,m] finds the modular inverse of a modulo m.

PowerMod[a,1/r,m] finds a modular rth root of a.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.