Quotient and remainder

Working with polynomials? See quotient_and_remainder (Polynomials)

Computes the quotient and remainder of the division of two integers.

quotient_and_remainder(Integer, Integer)

Given two integers a and b, the operation a divided by b, with a greater or equal than b: a equals q times b plus r; has a quotient q and a remainder r. This function returns a list: the first element is the quotient and the second is the remainder.