Interactive · 2 questions
A continued fraction of a rational number is a fraction that looks like so: or in general, where are positive integers.
This notation seems sort of hard to use. What's wrong with it?
I agree. This takes up a lot of vertical space, so we will be using the notation to represent the previous continued fraction.
Additionally, sometimes we're lazy, and we do not want to compute the whole fraction. Suppose we have . We can compute this, and we get . However, if you're computing this by hand, it would be a pain to get past that 21. So, what if we just didn't compute it?
When we compute , we have . This is extremely close! When truncating a continued fraction, the resulting fractions are called convergents.
What does this tell us?
Note that when we truncate right before a large number, the denominator will not recieve that final large increase, and the resulting fraction will be a good approximation.
This of course inspires us to come up with a "magic" trick! Ask a friend to use their calculator and compute a fraction, and then give you the first 10 or so digits of the decimal expansion. Then, using your favorite method, compute the continued fraction. Then, truncate it right before a large number.
For example, we have (note that this is simplified). We compute that the continued fraction is . We have a large number, just as expected!. So, we truncate the fraction right before it, to get . Computing this fraction gives , which is what we wanted.
If your friend happens to be careless and picks a fraction that is not reduced, then you will actually reduce it for them! So if they claim that you're wrong, ask them to check if their fraction is reducible.
To find out how to calculate the continued fraction expansion, go here.