Euclidean quotient and Euclidean remainder of two integers

### 7.1.10 Euclidean quotient and Euclidean remainder of two integers

The iquorem command finds both the quotient and remainder of two integers (see Section 7.1.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

iquorem(148,5)

| ⎡ ⎣ | 29,3 | ⎤ ⎦

iquorem(25+12*i,5+7*i)

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