Problem 57
Square Root Convergents
It is possible to show that the square root of two can be expressed as an infinite continued fraction.
By expanding this for the first four iterations, we get:
The next three expansions are
In the first one-thousand expansions, how many fractions contain a numerator with more digits than denominator?
平方根逼近
将这个连分数进行四次迭代展开,分别可以得到:
接下来的三次迭代展开得到的分别是
在前一千次迭代展开中,有多少个分数满足分子的位数多于分母的位数?
..............................................................................................
153
以1,1为初值,把1000对分母、分子从小到大排成一列,一对一对比较。