TITLE: Solve in prime numbers the equation $p^q+q^r=r^p$
QUESTION [6 upvotes]: Find all triples of prime numbers $(p,q,r)$ such that $$p^q+q^r=r^p.$$

I proved that when $r=2$, the equation becomes $$p^q+q^2=2^p.$$ Then I tried to use reciprocity laws and Fermat's little theorem. I could prove that $p\equiv 7\pmod 8$ and that $p>q$.
The equation appeared in some olympiad . They asked to prove that $r=2$. So I am trying to find at least one triple.

REPLY [2 votes]: So $$p^q+q^2=2^p \qquad(*)$$  It is easy to show that $\boxed{p\gt q}$ or just look at the graph of the function $x ^ y + y ^ 2 = 2 ^ x$ for $x,y\gt1$.
If $p=4n+1$ then from $(*)$,
$$q=4m\pm1\Rightarrow4N+1+16m^2\pm8m+1=2N+8m^2\pm4m+1=2^{p-1}\space\text{ absurde}.$$
Then $p$ must be of the form  $\boxed{p=4n-1}$.
Put $p=an-1$ where $n$ is odd and $a=2^r,\space r\ge 2$.
$$(an-1)^q=(an)^q-1+\sum_{k=1}^{q-1}(\pm1)^k\binom qk(an)^{q-k}$$ $$(an-1)^q=(an)^q-1+an\left(\sum_{k=1}^{q-2}(\pm1)^k\binom qk(an)^{q-k-1}\right)+anq$$
For $\boxed{q\equiv\pm1\pmod4}$ put $q=bm\pm1$ where $m$ is odd and $b=2^s,\space s\ge 2$.
The equation $(*)$ becomes
$$(an)^q+an\left(\sum_{k=1}^{q-2}(\pm1)^k\binom qk(an)^{q-k-1}\right)+anq+(bm)^2\pm2bm=2^p\qquad(**)$$ 
This last condition, , implies
Note that the sum $\left(\sum\right)$ is even.
Now 
►if $a\le b$ (i.e. $2^r\le2^s$) then dividing by $a$ we are done because $nq$ is odd.
►if $a\gt b$ (i.e. $\dfrac {a}{2b}=2^{r-s-1}\ge1$) then dividing by $2b$ we are done for all $p,q$ such that $r\gt {s+1}$ because $m$ is odd.
It remains the cases for which $r=s+1$, in other words and taking into account the above
$$p=2^{s+1}n-1,\space q=2^sm\pm1\space n,m \space \text{ odds},\space \text {with }p\gt q$$
This last condition, $p\gt q$ , implies
$$2^{s+1}n-1\gt2^sm\pm1\Rightarrow\begin{cases}2^sn\gt2^{s-1}m+1\\2n\gt m\end{cases}$$ Thus it remains to study the equation where $p=2^{s+1}n-1,\space q=2^sm\pm1\space n,m \space \text{ odds},\space \text {with }p\gt q$ both odd primes.
$$\boxed{\displaystyle(2^{s+1}n-1)^{2^sm\pm1}+(2^sm\pm1)^2=2^{2^{s+1}n-1}}$$
I will return to the possible proof of this last part. If someone wants to end this problem by proving the apparently probable impossibility of solution, let it go forward. In particular if @Servaes wants to finish his very interesting partial answer.