[math-fun] solving and denesting