[math-fun] How do you solve this kind of problem?