Mathematics may not teach us how to add love or how to minus hate. But it gives us every reason to hope that “every problem has a solution”