Strange Fraction

Algebra Level pending

The value of π \pi is approximated using the following complex fraction:

π k 1 + 1 k 2 + 1 k 3 + 1 k 4 + 1 k 5 \pi \approx k_{1} + \frac{1}{ k_{2} + \frac{1}{ k_{3} + \frac{1}{ k_{4} + \frac{1}{ k_{5} } } } }

There are, however, a couple of constraints to the constants k 1 , k 2 , k 3 , k 4 , k 5 k_{1}, k_{2}, k_{3}, k_{4}, k_{5} :

  • n = 1 n = 5 k n = 318 \sum^{n=5}_{n=1}k_{n} = 318
  • All constants are positive integers.
  • The error between the actual value of pi and the above approximation is less than 1 0 9 10^{-9} .

If the value of this complex fraction is equal to a b \frac{a}{b} , where a a and b b are relatively prime integers (that is, gcd ( a , b ) = 1 \gcd(a, b) = 1 ), what is a + b a + b ?


The answer is 137095.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

The complex fraction above is a segment of the continued fraction representation of π \pi :

π 3 + 1 7 + 1 15 + 1 1 + 1 292 + . . . \pi \approx 3 + \frac{1}{7 + \frac{1}{15 + \frac{1}{1 + \frac{1}{292 + ...}}}}

The derivation of the continued fraction representation of π \pi can be found at this stack exchange post .

Substituting k 1 = 3 , k 2 = 7 , k 3 = 15 , k 4 = 1 , k 5 = 292 k_{1} = 3, k_{2} = 7, k_{3} = 15, k_{4} = 1, k_{5} = 292 ( n = 1 n = 5 k n = 318 \sum^{n=5}_{n=1}k_{n} = 318 ) into the given complex fraction and simplifying into a single fraction yields 103993 33102 \frac{103993}{33102} . The numerator and denominator are relatively prime ( gcd ( 103993 , 33102 ) = 1 \gcd(103993, 33102) = 1 ) to each other and π 103993 33102 = 5.7789 1 0 10 | \pi - \frac{103993}{33102} | = 5.7789 * 10^{-10} , therefore the answer is 103993 + 33102 = 137095 103993 + 33102 =137095 .

Yuriy Kazakov
May 16, 2020

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...