A nice math problem