Your question seems confused on two counts:
(a) After operation 1, you can only take out a mixture and replace by juice.
(b) Operation 1 mentions 4L exchange, operation 2 mentions 5L and so on. I am answering on the assumption that in each of n operations, you intended an exchange of 4L from a cask of 40L.
After operation 1, fraction of water left in cask = 36/40 = 0.9.
Any subsequent operation will lower the amount of water to 0.9 of the water that was left, hence after operation 2, fraction of water left in cask = $0.9^2$.
Thus after n operations, fraction of water left in cask = $0.9^n$.
Generalising, if you leave behind water = fraction f of that remaining each time, the concentration (= fraction) of water after n operations will be $f^n$
Finally, if you really meant different fractions left behind in each operation, concentration will simply be $f_1\times f_2\times f_3\times....\times f_n$