The long read: Calculating the patterns and cycles of the past could lead us to a better understanding of history. Could it also help us prevent a looming crisis?