numtheory[order] - order of a number
|
Calling Sequence
|
|
order(n, m)
|
|
Parameters
|
|
n
|
-
|
integer
|
m
|
-
|
positive integer
|
|
|
|
|
Description
|
|
•
|
The smallest integer i such that 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
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?