Table[{n,PolynomialRemainder[x^n-1,x^4 -x^3 + x^2 - x + 1,x]},{n,0,20}]