Mathwords logoMathwords

Mihăilescu's Theorem — Definition, Formula & Example

Mihăilescu's Theorem is the fact that 8 and 9 are the only pair of consecutive integers, both greater than 1, that are perfect powers. Here 8=238 = 2^3 and 9=329 = 3^2, and no other such pair exists.

The only solution of the Diophantine equation xa−yb=1x^a - y^b = 1 in integers x,y,a,b>1x, y, a, b > 1 is x=3x = 3, a=2a = 2, y=2y = 2, b=3b = 3. Eugène Catalan conjectured this in 1844, and Preda Mihăilescu proved it in 2002 (published 2004).

Key Formula

xa−yb=1,x,y,a,b>1  ⟹  (x,a,y,b)=(3,2,2,3)x^a - y^b = 1,\quad x, y, a, b > 1 \;\Longrightarrow\; (x, a, y, b) = (3, 2, 2, 3)
Where:
  • x,yx, y = Integer bases, each greater than 1
  • a,ba, b = Integer exponents, each greater than 1
  • (3,2,2,3)(3, 2, 2, 3) = The unique solution, giving 3² − 2³ = 9 − 8 = 1

Worked Example

Problem: Find every integer n≥2n \geq 2 for which 2n+12^n + 1 is a perfect power, meaning 2n+1=xa2^n + 1 = x^a for some integers x>1x > 1 and a>1a > 1.
Step 1: Rewrite the condition as a difference of two powers equal to 1. Both bases (x and 2) and both exponents (a and n) are greater than 1.
xa−2n=1x^a - 2^n = 1
Step 2: This equation has exactly the form covered by Mihăilescu's Theorem. Its only solution has x=3x = 3, a=2a = 2, and the base 2 raised to exponent 3. Matching gives n=3n = 3.
x=3,a=2,n=3x = 3,\quad a = 2,\quad n = 3
Step 3: Check the result directly. You do not need to test any other values of n, because the theorem rules them all out at once.
23+1=9=322^3 + 1 = 9 = 3^2
Answer: The only value is n=3n = 3, where 23+1=9=322^3 + 1 = 9 = 3^2. For every other n≥2n \geq 2, the number 2n+12^n + 1 is not a perfect power.

Why It Matters

The theorem settled a 158-year-old problem. In 1976 Robert Tijdeman showed there could be only finitely many solutions, but the bound was far too large to check by computer. Mihăilescu finished the proof with the algebra of cyclotomic fields, a central tool in graduate courses on algebraic number theory. The broader question of how often two perfect powers can differ by 2, 3, or any fixed number (Pillai's conjecture) is still open.

Common Mistakes

Mistake: Treating equations where an exponent equals 1, such as 3 − 2 = 1 or 5² − 24 = 1, as counterexamples to the theorem.
Correction: The theorem requires every base and every exponent to be greater than 1. If any exponent is 1, one side is just an ordinary integer, and solutions are trivial to find. Check all four conditions before applying it.

Related Terms

  • Theorem — What it is: a proven statement about powers
  • Modular Arithmetic — Main tool for ruling out solutions in partial cases
  • Perfect Power — The numbers the theorem is about
  • Diophantine Equation — Theorem solves the equation x to the a minus y to the b equals 1
  • Conjecture — Was Catalan's conjecture until proved in 2002
  • Exponent — Perfect powers are written using exponents like 2^3