DEV Community

Discussion on: Power Up Your Programming With This Simple Equation

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

I actually found this explanation pretty long winded and confusing.

This is shorter, to the point, and more general:

math.stackexchange.com/a/2482811/2...

Just plug in P = 2.

Granted, the approach is not exactly intuitive, but once you see how it's done, you can simply rederive it.