powmod

Returns the modular exponentiation of a number.

Syntax

powmod(base, exp, mod)

Parameters

Return value

The modular exponentiation of the base.

Examples

powmod(4, 13, 497)
445