Russian Peasant Exponentiation

  • + 1 comment

    Why when I applied the Russian Peasant Exponentiation algorithm on paper for a=8, b=2, k=10, I get c = 60*(2576^2 - 3840^2) - 32*2576*3840*2, which is absolutely a negative number?