Notation Question :
Below is the excerpt from a textbook :
$i(n,k)$ denote the number of permutation $\sigma \in S_n$ with $i(\sigma) = k$ that is $k$ inversions.
from the above statement which set does $S_n$ denote for?
[edit: additional question]
In following statement, What exactly does LHS mean?
$\sum_{\sigma \in S_n} i(\sigma) = {n!\over 2} \binom{n}{2}$