numtheory(deprecated)/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 : numtheory(deprecated)/order

numtheory(deprecated)

  

order

  

order of a number

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

order(n, m)

Parameters

n

-

integer

m

-

positive integer

Description

• 

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[MultiplicativeOrder] instead.

• 

The smallest integer i such that ni=1modm is returned.

• 

More formally, the order of n in the multiplicative group mod m is returned. If n and m are not coprime, then FAIL is returned.

• 

The command with(numtheory,order) allows the use of the abbreviated form of this command.

Examples

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[MultiplicativeOrder] instead.

withnumtheory:

order13,100

20

(1)

order5,8

2

(2)

order8,12

FAIL

(3)

primroot20,239

21

(4)

order,239

238

(5)

φ239

238

(6)

See Also

NumberTheory[MultiplicativeOrder]

numtheory(deprecated)[pprimroot]

numtheory(deprecated)[primroot]