The eerie math that could predict terrorist attacks