# Three consecutive integers which are power of prime but not prime

Does there exist three consecutive positive integers such that each of them is the power of a prime i.e., is there exist $n \in \mathbb{N}$, such that $n=p^i$, $n+1 = q^j$ and $n+2 = r^k$, where $p$, $q$ and $r$ are primes and $i,j,k >1$.

Note that either both $n$ and $n+2$ are even, or both are odd. If both are even, then $p=r=2$ and we are done. If they are both odd, $n+1$ is even and $q=2$. So $$n+1=2^j\implies n=2^j-1=p^k$$ Now look at When is $2^n\pm1$ a perfect power.
• @Théophile Actually Catalan's conjecture (now a theorem) gives the stronger result that the only instance of consecutive integer powers (prime integers or not) is the pair $(8,9)$. May 29, 2014 at 4:45
• Catalan is an overkill. $q$ needs to be $2$. May 29, 2014 at 4:50