Solving exponential equation using sympy?
<p>I want to solve following simple equation using sympy</p>

<pre><code>2^(x-y)=1
</code></pre>

<p>where x and y are +ve integers</p>

<p>my expected result is </p>

<pre><code>x=y
</code></pre>

<p>When I try to solve using sympy </p>

<pre><code>x = Symbol('x')
y = Symbol('y')
solve(2**(x-y)-1, x)
</code></pre>

<p>I  am getting following result</p>

<pre><code>[log(2**y)/log(2)]
</code></pre>

<p>What extra steps I have to following to get expected results</p>