In the resource Staircase sequences you may have seen that we had a sequence of increasingly accurate rational approximations for the golden ratio \(\dfrac{1+\sqrt{5}}{2}\) and for \(\sqrt{2}\). You might have wondered how we came up with these sequences in the first place. Maybe you wondered whether it is possible to express other numbers as continued fractions.
In this problem we will explore these two key questions:
Given a continued fraction, can you find the number that it represents?
Given a number, can you write it as a continued fraction?
A simple continued fraction is an expression of the form \[x=a_0 + \cfrac{1}{a_1 + \cfrac{1}{a_2 + \dotsb}},\]
where \(a_0\) is any integer and \(a_1, a_2, \dots\) are positive integers.
As you consider the two key questions you may like to think about some of the mini-questions below. These may be attempted in any order and might help you to get going.