TITLE: What is this function related with continued fractions?
QUESTION [13 upvotes]: Playing with continued fractions, I came with the idea of iterating the limit of the simplest one:
$$1 + \cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+\cdots}}}}}\ = \Phi$$
And then I thoght about iterating the result:
$$\Phi + \cfrac{1}{\Phi+\cfrac{1}{\Phi+\cfrac{1}{\Phi+\cfrac{1}{\Phi+\cfrac{1}{\Phi+\cdots}}}}}\ = ?$$
And after that keep iterating again and again. Essentially, what I am doing is solving this:
$$x = a + \frac{1}{x}$$
for different values of $a$. Whose solution is:
$$ x = \frac{a \pm \sqrt{a^2 + 4}}{2}$$
And I'm just staying with the positive solution. At the end, I'm just exploring this sequence defined recursively:
$$ f(1) = \Phi \\
f(n+1) = \frac{f(n) + \sqrt{f(n)^2 + 4}}{2}
$$
When you see the plot of the terms of the sequence, you get this picture:

I would like to know which is the function that generates that curve. It really seems to be a continuos function (notice that the picture is a set of points so close, that may seem to be continuous, but it's not).
So... What's the function underlying this curve and how can we find it?
Many thanks in advance!

REPLY [2 votes]: Using what has been given in comments.
If we use $$2n=f^2+\log(f^2-1)\implies 2n-1=(f^2-1)+\log(f^2 -1)$$ let $t=(f^2-1)$ to make
$$2n-1=t+\log(t)\implies t\, e^t=e^{2n-1}\implies t=W\left(e^{2 n-1}\right)$$ where appears Lambert function making the final solution to be
$$f=\sqrt{1+W\left(e^{2 n-1}\right)}\tag1$$
If we use
$$n=\frac{1}{4} f \left(f+\sqrt{f^2+4}\right)+\sinh ^{-1}\left(\frac{f}{2}\right)$$ and expand the rhs as a series for infinitely large values of $f$, we should get
$$n=\frac{f^2}{2}+\frac{1}{2}+\log \left({f}\right)+O\left(\frac{1}{f^2}\right)=\frac{f^2}{2}+\frac{1}{2}+\frac{1}{2}\log \left({f^2}\right)+O\left(\frac{1}{f^2}\right)$$ and, ignoring the higher order terms, the same process would lead to 
$$f=\sqrt{W\left(e^{2 n-1}\right)}\tag2$$
Now, for large values of $n$, you could use the asymptotic series given in the linked Wikipedia page
$$W(x)=L_1-L_2+\frac{L_2}{L_1}+\frac{L_2(L_2-2)}{2L_1^2}+\frac{L_2(6-9L_2+2L_2^2)}{6L_1^3}+\cdots$$ where $L_1=\log(x)$ and $L_2=\log(L_1)$ and get, as a very first approximation
$$f\approx \sqrt{(2n-1)-\log(2n-1)}$$
To allow you to compare with your numbers, I generated a table of numerical values
$$\left(
\begin{array}{cc}
 n & (1) \\
 500  & 31.5135 \\
 1000 & 44.6363 \\
 1500 & 54.6991 \\
 2000 & 63.1800 \\
 2500 & 70.6504 \\
 3000 & 77.4035 \\
 3500 & 83.6131 \\
 4000 & 89.3925 \\
 4500 & 94.8203 \\
 5000 & 99.9539
\end{array}
\right)$$