Solving various mathematical and algorithmical problems