# Tag Info

newR: [ -1, 1, 1, 0, -1, 0, 1, 0, 0, 1, -1 ] This polynomial is $f = -x^{10} + x^9 + x^6 - x^4 + x^2 + x - 1$ where you wanted: $f=x^{10}+x^9+x^6−x^4+x^2+x−1$ The sign for the $x^{10}$ was opposite. Your algorithm/code is actually correct. See the following calculation from sage: sage: f -x^10 + x^9 + x^6 - x^4 + x^2 + x - 1 sage: f_inv 30*x^10 ...