Sean Gourley on the mathematics of war