Project Euler #169: Exploring the number of different ways a number can be expressed as a sum of powers of 2.

  • + 0 comments

    Python: just figure out // is floor division and / is float division. When n are very large, / will round your result and // will result in integer. Try the following code to see the difference print(10 ** 25 / 2, 10 ** 25 // 2)