Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
numtheory[mersenne] - nth Mersenne prime
Calling Sequence
mersenne(n)
mersenne([i])
Parameters
n, i
-
positive integers
Description
The function mersenne computes Mersenne primes. If the argument n is an integer then mersenne(n) will return if is known to be prime. Otherwise, if n is prime, but is not determinably prime, then mersenne(n) will return FAIL. Finally, if n is composite it will return false.
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
See Also
numtheory[fermat]
Download Help Document