Let's say I have a function $f(x)$ that is continuous and decreasing, where $x$ is always positive. We can take the function $f(x) = \frac{1}{x}\times 300$ as an example, but I am looking for a general solution to my problem. At each time step (time is not a variable of the function) I have a variable $V$ that increases as such :
$$\begin{array}{lcl}V_0&=& f(0)\\V_1&=&V_0 + f(V_0)\\V_2&=&V_1 + f(V1)\\&\vdots&\\V_n&=& V_{n-1}+ f(V_{n-1})\end{array}$$
How many time steps $n$, would I need so that $V_n \ge A$? Where $A$ can be any positive number. Is there a mathematical solution for this or do I need to use some sort of solver ? How would I do this if the function was continuous, but non derivable at all points ?
Another way to express this is by trying to get the minimum $n$ that solves :
$f(0) + f^{2}(0) + f^{3}(0) + ... + f^{n-2}(0) + f^{n-1}(0) \ge A$
P.S: I can relate it to a real world problem if it makes it easier...