Can you solve this mathematician's brainteaser?