Hacker News new | ask | show | jobs
by exupero 3082 days ago
Yes, a step was missing. I've updated it to include multiplication by "a" and loop back to step 4.

And yes, this is more complex than basic reasoning. It's an optimization to the original algorithm, and like most optimized algorithms, is less transparent.