modified the function continued_fraction_rational_number(numerator, denominator)