I would like to write a code to evaluate the following (up to $N=20$)
$\sum_{s_1,...,s_N=\pm 1;s_1 \cdot \cdot \cdot s_N=1}\sum_{\sigma\in S_N}\prod_{i=1}^N x_{\sigma(i)}^{s_i \lambda_i}$
There are several discussions on here which tell me how to perform such a computation provided all the i's were permuted. However I do not know how to deal with this case.
s[i]
and you got yourself a waiting game. $\endgroup$