Given a sequence of numbers $S = \langle s_1,\dots,s_n \rangle$ I want to sum all the elements of S that the index is odd.
Would the following be a good notation or is there a more compact (and better) way to write that?
$\sum_{i=0,i \in 2\mathbb{N}-1}^{|S|} s_i$
Thanks!
Best Answer
How about $\displaystyle \sum_{i=0}^{\lfloor\frac{n-1}{2}\rfloor} s_{2i+1}$?