To compute `2^25 - 1` myself, I would break it into `4096^2 ⋅ 2 - 1`, and then do the boring bits. 16008136 00000000 00720000 00048000 00000000 00000000 00001080 ======== 16777216 × 2 => 33554432 - 1 => 33554431 I'm curious to see how your method differs.
I feel like you should be able to multiply 2 by itself 24 times and subtract 1 faster than you can do whatever this was. I know that really isn't the point but still this doesn't seem easier to me.
Yeah, I was thinking the same thing. I get he's reminding people of algebraic properties, such as completed squares, but especially for tech people that are used to calcuting binary notations, this example in particular seems like a huge waste of energy.
32/2 = 16, not 17. 90% credit for showing your work, but you didn't get the right answer. Always double check your work.
To compute `2^25 - 1` myself, I would break it into `4096^2 ⋅ 2 - 1`, and then do the boring bits.
16008136
00000000
00720000
00048000
00000000
00000000
00001080
========
16777216
× 2 => 33554432
- 1 => 33554431
I'm curious to see how your method differs.
I feel like you should be able to multiply 2 by itself 24 times and subtract 1 faster than you can do whatever this was. I know that really isn't the point but still this doesn't seem easier to me.
Yeah, I was thinking the same thing. I get he's reminding people of algebraic properties, such as completed squares, but especially for tech people that are used to calcuting binary notations, this example in particular seems like a huge waste of energy.
Nice job! At the end of the video you forgot to write the solutions for x.