For this task, the Stern-Brocot sequence is to be generated by an algorithm similar to that employed in generating the [Fibonacci sequence](<https://rosettacode.org/wiki/Fibonacci sequence>).
<ol>
<li>The first and second members of the sequence are both 1:</li>
<ul><li>1, 1</li></ul>
<li>Start by considering the second member of the sequence</li>
<li>Sum the considered member of the sequence and its precedent, (1 + 1) = 2, and append it to the end of the
sequence:</li>
<ul><li>1, 1, 2</li></ul>
<li>Append the considered member of the sequence to the end of the sequence:</li>
<ul><li>1, 1, 2, 1</li></ul>
<li>Consider the next member of the series, (the third member i.e. 2)</li>
<li>GOTO 3 </li>
<ul>
<li></li>
<li> ─── Expanding another loop we get: ───</li>
<li></li>
</ul>
<li>Sum the considered member of the sequence and its precedent, (2 + 1) = 3, and append it to the end of the
sequence:</li>
<ul><li>1, 1, 2, 1, 3</li></ul>
<li>Append the considered member of the sequence to the end of the sequence:</li>
<ul><li>1, 1, 2, 1, 3, 2</li></ul>
<li>Consider the next member of the series, (the fourth member i.e. 1)</li>
</ol>
# --instructions--
Create a function that returns the $ n^{th} $ member of the sequence using the method outlined above.