xS=\frac{x^{n+2}-(n+1)x^2+nx}{(x-1)^2}