Skip to main content

Quotient and remainder

Nota

Working with polynomials? See Remainder (Polynomials).

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

Syntax

quotient_and_remainder(Integer, Integer)

Description

Given two integers a and b, the operation aa divided by bb, with ab: a=q·b+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.

arithmetic.quotient_and_remainder.calc.png