HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Numbers of the form 2ⁿ - 1 are called Mersenne numbers…
AdvancedMathematicsHigh School (11–12)Number TheoryConceptualNumericalOlympiad

Numbers of the form 2ⁿ - 1 are called Mersenne numbers…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Numbers of the form 2n−12^n - 12n−1 are called Mersenne numbers. The first few are 1,3,7,15,31,63,1271, 3, 7, 15, 31, 63, 1271,3,7,15,31,63,127.

  1. Prove that if 2n−12^n - 12n−1 is prime, then nnn is prime. Suppose n=abn = abn=ab with 1<a,b<n1 < a, b < n1<a,b<n, and use a−b∣an−bna - b \mid a^n - b^na−b∣an−bn with a good choice of the two numbers.
  1. Prove that if mn−1m^n - 1mn−1 is prime for whole numbers m≥2m \ge 2m≥2 and n≥2n \ge 2n≥2, then m=2m = 2m=2.
  1. The converse of part (a) is false. Factorise 211−12^{11} - 1211−1 and give its smaller prime factor.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Every n>1n > 1n>1 is a product of primes in one way only. A composite nnn has a prime factor at most n\sqrt{n}n​. If a prime divides ababab, it divides aaa or bbb. A perfect kkkth power has every exponent a multiple of kkk.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Part (a). Suppose n=abn = abn=ab with 1<a,b<n1 < a, b < n1<a,b<n. Then 2n−1=(2a)b−1b2^n - 1 = (2^a)^b - 1^b2n−1=(2a)b−1b, which is divisible by 2a−12^a - 12a−1. Since 1<a<n1 < a < n1<a<n, we have 1<2a−1<2n−11 < 2^a - 1 < 2^n - 11<2a−1<2n−1. So 2n−12^n - 12n−1 has a proper factor and is not prime. Hence a prime 2n−12^n - 12n−1 needs a prime nnn.

Step 2. Part (b). m−1m - 1m−1 divides mn−1m^n - 1mn−1. If mn−1m^n - 1mn−1 is prime, its only positive divisors are 111 and itself. Now m−1<mn−1m - 1 < m^n - 1m−1<mn−1 for n≥2n \ge 2n≥2, so m−1=1m - 1 = 1m−1=1, and m=2m = 2m=2.

Step 3. Part (c). 211−1=20472^{11} - 1 = 2047211−1=2047. Trying primes, 2047=23×892047 = 23 \times 892047=23×89. So n=11n = 11n=11 is prime but 211−12^{11} - 1211−1 is not.

Answer: part (a) and part (b) are proved; 211−1=23×892^{11} - 1 = 23 \times 89211−1=23×89, with smaller factor 232323. Proof complete.

What if? Primes of the form 2p−12^p - 12p−1 are the Mersenne primes. Course 2 links them to the even perfect numbers.

Log in to save this for later
← All Problems
← We want positive whole numbers n with special multiples…Two positive whole numbers a < b have the sum a + b = 96 and the least common multiple lcm(a, b) =… →
More onNumber Theory

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2…Advanced
  2. Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…Advanced
  3. Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…Advanced
  4. Find all pairs of positive integers (x, y) with x² - y² = 945…Hard
  5. A teacher wants a list of every primitive Pythagorean triple whose hypotenuse is less than 100…Advanced
All problems on this topic →