I'm having trouble in coming up with a formula for this series:
$$S = x + \frac1x + \cfrac1{x + \frac1x} + \cfrac1{x + \frac1x + \cfrac1{x + \frac1x}} +\cfrac1{x + \frac1x + \cfrac1{x + \frac1x} + \cfrac1{x + \frac1x + \cfrac1{x + \frac1x}} } + \cdots + a_n $$
How can I find $S$ ?
Thanks :)
You can define the function $f(x) = 1 + 1/x$ and then call it $n$ times
n=
etc.