A math puzzle and a better algorithm for top-K | Hacker News Reader