Hacker News new | ask | show | jobs
by mcnamaratw 3890 days ago
Haha, exactly my question! I wrote out that same table and got the same results.

Their calculation seems to be something like

sumOverRunLengths[P(runLength)*(1 - runLength)].

I also wish I knew how to get HN to keep my newlines like you did.