A mathematician found the most efficient way to fold paper into a doughnutlike shape.