In 1962, the young writer Tom Wolfe wrote a sympathetic profile in the Washington Post about a 30-year-old mathematician who had learned how to beat the house in blackjack. The mathematician, Edward Thorp, described how to figure out the sequence of the cards and how to bet accordingly.

The story went viral. And Thorp, who taught math at...