The mathematician, who liked to annoy friends with improvised brainteasers, thought for a moment or two, then raised a glass ...