Project Euler #71: Ordered fractions

  • + 0 comments

    别看下面几位大爷的瞎BB。

    (b*N-1)/(N*X) is a fraction less than b/a. Take the k step continued fraction of the fraction and calculate the denominator of the fraction represented by the continued fraction. Use Binary Search for k in range(1,32).