Set notations xSf(x)\sum\limits_{x\in S} \operatorname{f}(x), iIf(xi)\sum\limits_{i\in I}\operatorname{f}(x_i)

Here, we will only use the sum \sum symbol, as the index variants are the same for all others.

The set notation is very common when you are not dealing with a neat sequence of increasing numbers.

A set is just a "collection of unique things", so no duplicates. Most programming languages have some kind of set type included. More generally, if you are programming, this usually comes down to having some iterable collection, even just arrays.

You will generally find this notation in two versions:

xSf(x)\sum\limits_{x\in S} \operatorname{f}(x): Go through each element of the set SS, plug it in some function f\operatorname{f} and use the result as a term in the sum

iIf(xi)\sum\limits_{i\in I}\operatorname{f}(x_i): Go through each index in the set II, plug the ii-th element in some function f\operatorname{f} and use the result as a term in the sum.

Code xSf(x)\sum\limits_{x\in S} \operatorname{f}(x):

Code iIf(xi)\sum\limits_{i\in I}\operatorname{f}(x_i):