Consider the recursively defined number sequence
$f(0) = 2$
$f(n+1) = 2^{f(n)}-1$
This sequence goes like $2$, $3$, $7$, $127$, $2^{127}-1$, $2^{2^{127}-1}-1$, $\ldots$.
Facts:
- $2$, $3$, $7$, $127$, $2^{127}-1$ all are prime numbers.
- It is not known whether $2^{2^{127}-1}-1$ is prime.
(That number is way bigger than the largest prime that has been found so far.)
Puzzle: Show that $f(5)=2^{2^{127}-1}-1$ has no divisors below $f(4)=2^{127}-1$.
Let $p=2^{127}-1$, and $q$ be a prime factor of $2^p-1$.
We know from Fermat's little theorem that q is a factor of $2^{q-1}-1$. If a prime divides $2^a-1$ and $2^b-1$, it divides $2^{ma}-1$ and $2^{nb}-1$, implying that it divides $2^{|ma-nb|}-1$. That is, it divides $2^{\gcd(a,b)}-1$.
Thus we have q divides $2^{\gcd(p,q-1)}-1$. Since $p$ is prime and $q>1$, we obtain that $p=\gcd(p,q-1)\implies q=kp+1\implies q>p$