I am trying to model the growth of cancer stem cells using loops, but don’t have any experience modeling loops and this page wasn’t very helpful. The equations I have constructed thus far are as follows:
For[i = 1; c[0] = 1; c[1] = 1, i < 10, i++,
c[i_] := c[i - 1]*(1 + p1*v - (1 - p1) v - dr); Print[c[i]]]
For[i = 1; p[0] = 0, i < 10, i++,
p[i_] := c[i - 1] (1 - p1) v + p[i - 1] (1 + p2*v - (1 - p2) v - d);
Print[p[i]]]
For[i = 1; d[0] = 0, i < 10, i++,
d[i_] := p[i - 1] (1 - p2) v + t[i - 1] (1 - dr]);
Print[d[i]]]
I want to create a loop such that for i between 2 and n, I can determine the number of each type of cells (c=cancer stem cells, p=progenitor cells, d=terminally differentiated cell) there are symbolically. Once this is determined, I would also like to include a loop such that when the value of receptor occupancy, as defined as
receptor occupancy= ((c[i]*f1 + p[i]*f2 + d[i]*f3) r)/k
is less than than some value x1, then v is changed to vy1 and when it is less than some other value x2, the value of p1 is changed to p1y2.
Any help would be great!

