the maths of life and death