If I'm given a value $n$. And I know its of the form $p_{1}^x + p_{2}^y$, can I be sure that there is a unique solution for $x$ and $y$ and Can I determine values of $x$ and $y$, If I know the primes $p_{1}$ and $p_{2}$ (and $p_{1} \ne p_{2}$)
If yes, how to prove it?
From $$p^x+q^y=p^s+q^t$$ if $(x,y)\neq(s,t)$, we have $$p^s(p^{x-s}-1)=q^y(q^{t-y}-1)$$
so $p\equiv 1\pmod q$ and $q\equiv 1\pmod p$. This is not possible.
THIS IS WRONG: PLEASE UNACCEPT (sorry for caps, only for visibility)
To find the exponents, if $n$ is not very big, the fastest and easiest way is perhaps bruteforcing.
Remark: I have assumed that the exponents are positive. If they may be $0$ we have for example $$2^3+3^2=2^4+3^0$$