Advanced tool for polynomial operations under modular arithmetic, fully interactive interface. Parse flexible expressions, choose modulus and field, then compute instantly with confidence. Perform addition, multiplication, division, remainders, inverses, and GCD over prime coefficient rings. Export results as CSV and PDF, cleanly formatted instantly.
| A(x) | B(x) | M(x) | p | Operation | Output |
|---|---|---|---|---|---|
| x^5 + 2x + 1 | x^2 + 1 | x^3 + x + 1 | 5 | A mod M | Remainder of A by M over GF(5) |
| x^3 + 4x + 3 | x + 2 | - | 7 | Divide A by B | Quotient and remainder in GF(7) |
| x^4 + x^2 + 1 | x^3 + 2 | - | 11 | GCD(A,B) | Greatest common divisor in GF(11) |
Submit inputs to view the result. You can export after computing.
Coefficient reduction: Each coefficient a is mapped to a mod p.
Polynomial division in GF(p)[x]: If B(x) has leading term c_b x^d with invertible c_b mod p, repeatedly subtract (c_r c_b^{-1}) x^{k} B(x) from the remainder, where c_r x^{d+k} is the current leading term.
Remainder (A mod M): The remainder of dividing A(x) by M(x) in GF(p)[x].
GCD and Inverse: Euclidean and extended Euclidean algorithms in GF(p)[x]; inverse exists iff gcd(A,M)=1. Results are made monic by scaling with the inverse of the leading coefficient.
3x^2, -x, 5.3x^4, -2x, 7. No parentheses or spaces are required; the parser ignores spaces and handles signs and powers.gcd(A,M) ≠ 1. Choose a prime p and coprime polynomials.Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.