# Euclidean quotient and Euclidean remainder of two integers: iquorem

### 5.5.10 Euclidean quotient and Euclidean remainder of two integers: iquorem

The iquorem command finds both the quotient and remainder of two integers (see Section 5.5.8).

- iquorem takes two arguments:
  a and b, integers.
- iquorem(a,b) returns the list [q,r], where q is the quotient and r the remainder of a divided by b.

#### Examples.

- Input:
  iquorem(148,5)
  Output:

  | ⎡ ⎣ | 29,3 | ⎤ ⎦

- Input:
  iquorem(25+12*i,5+7*i)
  Output:

  | ⎡ ⎣ | 3−2 i,−4+i | ⎤ ⎦