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