Solving a Mathematical Problem