Algebra & Equations
Integer Division
Quotient and remainder of a ÷ b.
Formula
Formula
a = b·q + r
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| a | dividend | integer (ℤ) | — | input |
| b | divisor | nonzero integer (b ≠ 0) | — | input |
| q | quotient | integer (ℤ) | — | result |
| r | remainder | 0 ≤ r < |b| | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givena = 47, b = 5
Result
quotient
9
remainder
2
Example 2
Givena = 100, b = 7
Result
quotient
14
remainder
2