How do I write this basic recursive formula into Desmos? I want to graph a simple equation $f(x)$ which begins at $(0,1)$, then for every increasing $x$ integer increment, $f(x) = f(x-1) - (c * f(x-1))$.
So in other words each time you go up by one $x$ integer you take the previous $x$ value's $y$ output and subtract from it its value multiplied by a constant $c$.
It should output a stepwise graph with changes in $y$ value for every $x$ integer.
How do I do this in Desmos? Can you perhaps post a link to illustrate?
How would it also work differently if you wanted it to do the multiplication/subtraction every $5x$ integers to create a stepwise change for every $5x$ integers?
I don't need it to graph to $x=infinity$. Even if it can graph to $x=20$ or so this will help me solve my problem.
 A: Here is your graph you mean https://www.desmos.com/calculator/n27yhngviy.
Your problem is about computational problem that require memory of value, so we are using algorithm.

*

*Transform $f(x)$ into the list of $f$. Since desmos list index start in 1, not 0 and known initial value is $f(0)=1$ so we assume $f[1]=f(0)$, therefore in general $f(x)=f[x+1]$. Lists


*Transform $f(x) = f(x-1) - (c * f(x-1))$ into lists operation $f \rightarrow join(f,f[l]-c*f[l])$. Since we are using list format and computational problem, define operator ($=$) is not good choice, instead we use assign operator ($\rightarrow$) A.K.A. action. This action will appending current list $f$ with your function depends on last index of $f$ with using $join()$ function to append it. Actions.


*Using ticker to perform computation until $x=20$. Click metronome icon to perform computation and you will get the result of possible points. Actually you can iterate it manually with click arrow button. But clicking it manually is wasting time, so limit it until $x=20$ is enough with conditional syntax or piecewise function format with curly bracket. Do action $I$ while $f_{length}$ <= 20. We don't need itteration delay, so we set it to the 0ms.
