Integer division
Integer division is division between integers that outputs integers. The result of integer division is always two integers: a quotient and a remainder.
For example, \(26\) divided by \(11\) under integer division is the quotient \(2\) with a remainder of \(4.\)
In the following equations, \(n\) and \(d\) represent the numerator (dividend) and denominator (divisor) of the division \(\frac{n}{d}.\)
To obtain the quotient, use the \(\text{div}\) operation:
If it's easier for you, feel free to use the symbol \(//\) as an alternative.
To obtain the remainder, use the \(\bmod\) operation: