I have a problem I can’t solve, please help!
Find all positive integer triples $(n,p,q)$ satisfying $2^n+1=p^q$, where $p,q>1$.
There is a similar problem I can solve: Prove that it is not possible that $2^n-1=p^q$, if $p,q>1$.
My solution: We need to prove that $2^n=p^q+1$ is not possible. Note that $p$ is an odd number and if you check $\mod 4$ then you find that $q$ is also an odd number. Then $2^n=p^q+1=p^q+1^q=(p+1)(p^{q-1}-p^{q-2}+\dots -p+1)$. Note that $2^n$ doesn’t have an odd divisor $>1$, but since $(p^{q-1}-p^{q-2}+\dots -p+1)$ is an odd number $>1$, contradiction.
I try to explain an elementary proof. First, we consider the equation $2^n=p^q-1$. We have $$2^n=p^q-1=(p-1)(p^{q-1}+p^{q-2}+\cdots + p+1)$$ Hence $p$ is odd, $p^{q-1}+p^{q-2}+\cdots + p+1$ is even, and hence $q$ must be even. But if $q=2s$, then $$2^n=p^{2s}-1=(p^s-1)(p^s+1)$$ so $p^s=2^r+1=2^t-1$ for some $r,t$ with $r+s=n$, hence $2^t=2^r+2=2(2^{r-1}+1)$, so $2^{r-1}$ is odd, which only happens when $r=1$, so $t=2$, $n=3$ and hence $p=3$, $q=2$.
The second case the proof you wrote works perfectly.