Ta có \(\frac{x^n-nx+n-1}{\left(x-1\right)^2}=\frac{\left(x^n-1\right)-n\left(x-1\right)}{\left(x-1\right)^2}\)
\(=\frac{\left(x-1\right)\left(x^{n-1}+x^{n-1}+....+x+1-n\right)}{\left(x-1\right)^2}\) (1)
Từ (1) suy ra :
\(L=\lim\limits_{x\rightarrow1}\frac{x^{n-1}+x^{n-2}+.....+x-\left(n-1\right)}{x-1}\) (2)
\(L=\lim\limits_{x\rightarrow1}\frac{\left(x^{n-1}-1\right)+\left(x^{n-2}-1\right)+.....+\left(x-1\right)}{x-1}\)
\(=\lim\limits_{x\rightarrow1}\frac{\left(x-1\right)\left[\left(x^{n-1}+x^{n-3}+.....+x+1\right)+.....+\left(x+1\right)+1\right]}{x-1}\)
\(=\lim\limits_{x\rightarrow1}\left[1+\left(x+1\right)+....+\left(x^{n-2}+x^{n-3}+.....+x+1\right)\right]\)
\(=1+2+....+\left(n-1\right)=\frac{n\left(n-1\right)}{2}\)