\(\frac{x^7+x^6+x^5+x^4+x^3+x^2+x+1}{x^2-1}\left(DK:x\ne-1;x\ne1\right)\)
\(=\frac{x^4\left(x^3+x^2+x+1\right)+\left(x^3+x^2+x+1\right)}{x^2-1}\)
\(=\frac{x^4\left[x\left(x^2+1\right)+x^2+1\right]+\left[x\left(x^2+1\right)+x^2+1\right]}{x^2-1}\)
\(=\frac{\left(x^4+1\right)\left(x+1\right)\left(x^2+1\right)}{\left(x-1\right)\left(x+1\right)}=\frac{\left(x^2+1\right)\left(x^4+1\right)}{x-1}\)
\(\frac{x^7+x^6+x^5+x^4+x^3+x^2+x+1}{x^2-1}\)
\(=\frac{x^6\left(x+1\right)+x^4\left(x+1\right)+x^2\left(x+1\right)+\left(x+1\right)}{\left(x-1\right)\left(x+1\right)}\)
\(=\frac{\left(x+1\right)\left(x^6+x^4+x^2\right)}{\left(x+1\right)\left(x-1\right)}\)
\(=\frac{x^6+x^4+x^2}{x+1}\)
\(=\frac{x^2\left(x^3+x^2+1\right)}{x+1}\)