Example. [00DG]

What is the quotient and remainder when 101 is divided by 11?

According to the division algorithm, there exist q and r such that 101 = 11q + r and 0 \leq r < 11. We find that 101 = 11 \cdot 9 + 2, so q = 9 and r = 2. We could also express this as \begin {align*} 101 \mathbin {\mathbf {div}} 11 &= 9 \\ 101 \mathbin {\mathbf {mod}} 11 &= 2 \end {align*}