Today in [problem:1557C] I wanted to compute ${(2^{k-1})}^{n}$. But instead of writing <span class="prettyprint"> binpow(binpow(2, k — 1), n)</span>, I simplified it to $2^{n*(k-1)*n}$ and wrote <span class="prettyprint"> binpow(2, mul(n, k — 1, n))</span> and failed to pass pretest 2.↵
↵
Why are not the two equivalent?
↵
Why are not the two equivalent?