Find the quotient of polynomials $f(x)=x^{2n}-nx^{n+1}+nx^{n-1}-1$ and $g(x)=x-1$.
I know that by the remainder theorem the remainder is $f(1)=1-n+n-1=0$ so we can write $f(x)=(x-1)q(x)$ but beyond that I don't know what to do even though I tried doing the division, as well as guessing the quotient to find its coefficients using the polynomial equality theorem, but these approaches got me nowhere.