3.2.5 Changing Bases: Sum of Powers

When asked the sum of a series of powers of two (1+2+4+8++2n1 + 2 + 4 + 8 + \dots + 2^n), it is best to represent the number in binary, then we can see the result. For example purposes let’s look at the sum 1+2+4+8+16+32+641 + 2 + 4 + 8 + 16 + 32 + 64. If we represented them as binary it would be:

1+2+4+8+16+32+64=120+121+122+123+124+125+126=111111121 + 2 + 4 + 8 + 16 + 32 + 64 = 1 \cdot 2^0 + 1 \cdot 2^1 + 1 \cdot 2^2 + 1 \cdot 2^3 + 1 \cdot 2^4 + 1 \cdot 2^5 + 1 \cdot 2^6 = 1111111_2 11111112=10000000212271=1281=1271111111_2 = 10000000_2 - 1_2 \Rightarrow 2^7 - 1 = 128 - 1 = 127

Although this method is easiest with binary, you can apply it to other powers as well, as long as you are carefully. For example:

2+23+29+227+281+2243=230+231+232+233+234+235=22222232 + 2 \cdot 3 + 2 \cdot 9 + 2 \cdot 27 + 2 \cdot 81 + 2 \cdot 243 = 2 \cdot 3^0 + 2 \cdot 3^1 + 2 \cdot 3^2 + 2 \cdot 3^3 + 2 \cdot 3^4 + 2 \cdot 3^5 = 222222_3 2222223=100000031=361=728222222_3 = 1000000_3 - 1 = 3^6 - 1 = 728