Modulo on polynomial returns negative coefficients
Executing the following code on Sagecell:
R.<x> = PolynomialRing(ZZ)
f=-7x^4 + 3x^3 - 4*x^2 - x - 6
f%5
I get the following output:
3*x^4 + 3*x^3 - 4*x^2 - x + 4
Why are there negative coefficients on the output? The output should be:
3*x^4 + 3*x^3 +x^2 +4*x + 4