This question is inspired by an answer of mine that I gave here. Basically the problem is as follows: you are given a recursively defined sequence $(x_n)_{n\geq0}$, where you know the value of $x_0$ and you know that $x_{n+1}=\varphi(x_n)$ for all $n\geq0$, where $\varphi$ is a known function. Let’s say that you can’t find $x_n$ explicitly because it’s too hard or whatever reason. But you still want to compute $\sum_{n=0}^{+\infty}x_n$. Let’s assume that we already checked the series converges (e.g., numerically), so we are only concerned with the actual value of the sum. We hope that we can find this value by resorting to a telescoping technique.
Now, if we had an explicit formula for $x_n$ as a function of $n$, we could try to telescope directly on that expression, and I know that there are algorithms that allow you to do that, even if you can’t come up with a clever idea yourself. For example, if $x_n$ is a hypergeometric term of $n$ (i.e., $\frac{x_n}{x_{n-1}}$ is the ratio of two polynomial functions of $n$), then Gosper’s algorithm either gives you another hypergeometric term of $n$ (say $y_n$) such that $x_n=y_n-y_{n-1}$, or tells you it’s not possible. But if you do get this $y_n$, you can compute $$\sum_{n=0}^{+\infty}x_n=x_0+\sum_{n=1}^{+\infty}x_n=x_0+\sum_{n=1}^{+\infty}(y_n-y_{n-1})\\=x_0+\lim_{n\to+\infty}\sum_{k=1}^n(y_k-y_{k-1})=x_0+\lim_{n\to+\infty}(y_n-y_0)\\=x_0-y_0+\lim_{n\to+\infty}y_n.$$
However, in our case, you can’t feed $x_n$ to Gosper’s algorithm because you simply don’t have an expression for that. That’s why, in the linked question, I found a function $f$ such that $x_n=f(x_n)-f(x_{n-1})$ (not literally this, but I’m trying to mirror the above paragraph), and then I telescoped like this: $$\sum_{n=0}^{+\infty}x_n=x_0+\sum_{n=1}^{+\infty}x_n=x_0+\sum_{n=1}^{+\infty}\big(f(x_n)-f(x_{n-1})\big)\\=x_0+\lim_{n\to+\infty}\sum_{k=1}^n\big(f(x_k)-f(x_{k-1})\big)=x_0+\lim_{n\to+\infty}\big(f(x_n)-f(x_0)\big)\\=x_0-f(x_0)+\lim_{n\to+\infty}f(x_n).$$
Why am I not satified? Because the specific $f$ I used in the linked question was basically suggested by people in the comments. So I wonder whether there exists an algorithm to determine such an $f$, or a systematic way to approach this type of problems. Without a proper method, we have to rely on intuition (which doesn’t always work, of course).
Edit
By writing $x_n=f(x_n)-f(x_{n-1})$ as $\varphi(x_{n-1})=f(\varphi(x_{n-1}))-f(x_{n-1})$, I think the problem boils down to the following question: for what type of $\varphi$ do we have methods to find $f$ satisfying $f(x)+\varphi(x)=f(\varphi(x))$? Is this a known functional equation?