I'm trying to solve the following recurrence relation (all values are real): $$g(n+1) = \frac{a_n + g(n)}{k\cdot g(n)}$$
With:
- $a_n,g(n) > 0$ for all n, and $g(0)$ is arbitrary.
- $k \in \mathbb{N}\setminus\{0,1\} $, (At this moment you can assume that $k=2$ but it'll be interesting to see results with a general $k$).
This comes from my research, which I can't elaborate on at this point.
I don't have much experience with solving these kind of relations. For the past days I've tried reading about generating functions and other techniques but couldn't manage to solve it.
Any help will be much appreciated.
We can also write your relation as $g(n)=\dfrac1k+\dfrac{a_{n-1}}{kg(n-1)}$. By expanding out the definition of $g(n-1)$ similarly, we see a direct analogy with continued fractions: $$\begin{align} g(n)&=\dfrac1k+\dfrac{a_{n-1}}{kg(n-1)}\\ \\ &= \dfrac1k+\dfrac{a_{n-1}}{1+\dfrac{ka_{n-2}}{g(n-2)}}\\ \\ &= \dfrac1k+\dfrac{a_{n-1}}{1+\dfrac{ka_{n-2}}{1+\dfrac{ka_{n-3}}{g(n-3)}}}\\ \\ &= \ldots \end{align} $$ While canonically 'simple' continued fractions have $1$ as the numerator of every fraction and varying addends, there's been plenty of theory on the more general case that you should be able to apply to your problem. This also suggests that you shouldn't expect a general theory of such sequences without more information on your sequence $a_i$, since many many different functions have continued fraction expansions much like this.