Quotient and remainder

<text size="0.8em">Working with polynomials? See quotient_and_remainder (Polynomials) </text>

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 aLaTeXa divided by bLaTeXb, 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