Let $x(1) = 1, x(k+1) = ax(k)+ bk, y(k) = -1 +a^{-k}x(k)$. This recursion seems quite intractable, but it has some interesting features and it is much more friendly than it looks at first glance. Here $a, b$ are two positive parameters, with $a>1$. Let $g(a,b) =\lim_{k\rightarrow\infty} y(k)$.
It is probably easy to establish that $g(a, b) = b f(a)$ where $f(a)$ is a smooth function. Values of $f(a)$ for various $a$'s are pictured below. It is possible that if $a$ is a rational number, then $f(a)$ is also a rational number? This happens frequently. More specifically, my questions are:
Questions
- Find a good approximation for $f(a)$.
- Or can you find an exact formula for $f(a)$?
- Is $f(8)$ a rational number?
The last question is very, very important to me as it has potential applications in finding a standard mathematical constant which is a normal number. My wish is that $f(8)$ is not a rational number, though it seems at first glance that the contrary should be true, unfortunately.

As stated in the comments there is a closed form for $x(k)$ and hence $y(k)$, $g(a,b)$ etc. We have the solutions $$x(k)=\frac{(b-2)a^k+a^{k+1}+a^{k-1}-abk+b(k-1)}{(a-1)^2}$$ $$y(k)=-1+\frac{b-2+a+a^{-1}-a^{1-k}bk+a^{-k}b(k-1)}{(a-1)^2}$$ Hence as $k\to\infty$ we have that $$g(a,b)=-1+\frac{b-2+a+a^{-1}}{(a-1)^2}=\frac{b}{(a - 1)^2}+\frac1a-1$$ $$f(a,b)=\frac1{(a - 1)^2}+\frac1{ab}-\frac1b$$ So clearly when $a,b\in\mathbb{Q}$ we have that $g(a,b)$ and $f(a,b)$ are rational.