PROJECT EULER · #0065
Convergents of
The square root of
The infinite continued fraction can be written,
It turns out that the sequence of partial values of continued fractions for square roots provide the best rational approximations. Let us consider the convergents for
Hence the sequence of the first ten convergents for
What is most surprising is that the important mathematical constant,
The first ten terms in the sequence of convergents for
The sum of digits in the numerator of the
Find the sum of digits in the numerator of the
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.