Sorry, been a long time since high school and I can’t remember this simple equation.
I need to double the number one 64 times. In other words, 1x2 = 4. x2 = 8. x2 = 16. If I do that 64 times, what’s the total? And what’s the equation to figure it out?
Give him a break, it’s been even longer since elementary school.
If by “total” you mean all the numbers added together, as in the old story about a man who wanted one grain of rice for the first square on a chessboard, two for the second, four for the third, etc. the total of 2[sup]0[/sup] + 2[sup]1[/sup] + 2[sup]2[/sup]… + 2[sup]63[/sup] = 2[sup]64[/sup] - 1
Picture it in binary. You have a string of 64 consecutive 1s from 2[sup]0[/sup] all the way to 2[sup]63[/sup]. If you then added 1 to this you would flip every single bit as you carried 1 all the way from the right-hand end to the left, and a new 1 would appear at the left: 2[sup]64[/sup].