numtheory[mersenne] - nth Mersenne prime
|
Calling Sequence
|
|
mersenne(n)
mersenne([i])
|
|
Description
|
|
•
|
If the argument is a list with one integer element [i], then mersenne([i]) will return the ith Mersenne prime. If the value is beyond Maple's precomputed list of Mersenne primes, an error will be issued.
|
•
|
The command with(numtheory,mersenne) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?