I would like to define the following variable :
So the average value (a) takes for every "individual" but i.
But actually, for each i, the value (a) takes depends on the preceding average:
Finally, I would like to compute the following sum :
I don't have a very large culture in Wolfram, but I have tried all I could without succeeding. Could someone help me please ? I hope my request is clear enough.