I have an expression that is similar to this:
$$L_0 + (L_0 + L_1) + (L_0 + L_1 + L_2) + (L_0 + L_1 + L_2 + L_3) + .... + (L_0 + L_1 + ... + L_n)$$
How would I be able to simplify this recursive expression?
I have an expression that is similar to this:
$$L_0 + (L_0 + L_1) + (L_0 + L_1 + L_2) + (L_0 + L_1 + L_2 + L_3) + .... + (L_0 + L_1 + ... + L_n)$$
How would I be able to simplify this recursive expression?
As said in comments, you may consider that the expression write $$S_n=\sum_{k=0}^n s_k\qquad \text{using}\qquad s_k=\sum _{i=0}^k L_i$$ which makes $$S_n=\sum _{k=0}^n \left(\sum _{i=0}^k L_i\right)$$ If the $L_i$'s are in arithmetic progression $(L_i=a+id)$ this will make $$s_k=\frac{1}{2} (k+1) (2 a+d k)\implies S_n=\frac{1}{6} (n+1) (n+2) (3 a+d n)$$ If the $L_i$'s are in geometric progression $(L_i=ar^{i})$ this will make $$s_k=a\frac{ \left(r^{k+1}-1\right)}{r-1}\implies S_n=a\frac{ r^{n+2}-(n+2) r+(n+1)}{(r-1)^2}$$ If the $L_i$'s are in harmonic progression $(L_i=\frac{1}{a+id })$ this will make $\cdots$ a nightmare.