Multiplicative Order - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Number Theory : Multiplicative Order

NumberTheory

  

MultiplicativeOrder

  

order of a number under modular multiplication

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

MultiplicativeOrder(m, n)

Parameters

m

-

positive integer

n

-

positive integer greater than 1

Description

• 

The MultiplicativeOrder function computes the multiplicative order of m modulo n, which is defined as the least positive integer exponent i such that m^i is congruent to  modulo n.

• 

Alternatively, the multiplicative order can be defined as the order of the cyclic group generated by m under multiplication modulo n.

• 

The multiplicative order exists if and only if m and n are coprime. In the case that it does not exist, an error message is displayed.

Examples

(1)

(2)

If the multiplicative order of m is equal to the totient of n, then m is a primitive root modulo n.

(3)

(4)

(5)

Since  and  are not coprime, the multiplicative order of  modulo  is not defined.

Error, (in NumberTheory:-MultiplicativeOrder) the arguments 5 and 25 are not coprime

Compatibility

• 

The NumberTheory[MultiplicativeOrder] command was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

NumberTheory

 


Download Help Document