For example, I have:
$a=\sum _{r=1}^n x_r \left(\left(\sum _{i=1}^n x_i-x_r\right){}^2-\sum _{i=1}^n x_i^2\right)$
and $\sum _{i=1}^n x_i=s_1, \sum _{i=1}^n x_i^2=s_2, \sum _{i=1}^n x_i^3=s_3$
I would like to represent $a$ by $s_1, s_2, s_3$, how should I do it? I tried Solve or Eliminate, but couldn't find a way.