Solving Mathematical Problems Through Programming