### 5.34.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 representation 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 :

-4%13

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

(2*x`^`2+5)%13/(5*x`^`2+2*x-3)%13

Output :

((6%13)*x+1%13)/((2%13)*x+2%13)