exercise 1.37 continued fractions