Previous Up Next

2.31.8  Division in ℤ/pℤ or in ℤ/pℤ[x] : /

/ divides two integers in ℤ/pℤ or two polynomials A and B in ℤ/pℤ[x].
For polynomials, the result is the irreducible representant of the fraction A/B in ℤ/pℤ[x].
For integers in ℤ/pℤ, input :

5%13/2% 13

Since 2 is invertible in Z/13ℤ, we get the output :


For polynomials with coefficients in ℤ/pℤ, input :


Output :


Previous Up Next