The / operator divides two integers in ℤ/pℤ or two polynomials A and B in ℤ/pℤ[x]. (See also Section 6.8.2.) Since ℤ/pℤ is only a field if p is prime, the quotient is only guaranteed to exist if p is prime (unless the denominator is 0 (mod p )).
Example.
⎛ ⎝ | −4 | ⎞ ⎠ | %13 |
⎛ ⎝ | −3 | ⎞ ⎠ | %14 |
Example.
Input:
Output:
|