division with iteration