Python modulus result is incorrect
<p>I am totally stumped. I was computing the cipher of the number 54 in RSA with the following values:</p>

<p>p=5; q=29; n=145
d=9; e=137</p>

<p>So the number 54 encrypted would be:</p>

<p>54^137 mod 145</p>

<p>or equivalently in python:</p>

<pre><code>import math
math.pow(54,137)%145
</code></pre>

<p>My calculator gives me 24, my python statement gives me 54.0. Python is clearly wrong but I have no idea why or how. Try it on your installations of Python. My version is 2.5.1 but I also tried on 2.6.5 with the same incorrect result.</p>
