\[x^{m + 1} - x^{m} + x - 1 =\]
\[= x^{m}(x - 1) + (x - 1) =\]
\[= (x - 1)\left( x^{m} + 1 \right).\]