Last modified on April 26th, 2024

chapter outline

 

Quotient Remainder Theorem

The quotient remainder theorem states that if any integer ‘a’ is divided by any positive non-zero integer ‘b,’ there exist unique integers ‘q’ and ‘r’ such that: 

a = b ⋅ q + r, here 0 ≤ r < b

It supports modular arithmetic, where we use the mod operation to establish rules for adding and multiplying numbers under this system, among other arithmetic operations. 

Quotient Remainder Theorem

Proof

First, we show that for any integer ‘a’ and positive integer ‘b,’ a quotient ‘q’ and a remainder ‘r’ exist, and then we verify that ‘q’ and ‘r’ are unique.

Verifying the Existence of Solution

Let ‘a’ be any integer and ‘b’ be any positive non-zero integer.

Let S be a set defined as

S = {x Є ℤ | x ≥ 0 and x = a – b â‹… k, for some integer k}

There are two possibilities of ‘a’: either a ≥ 0 or a < 0

Considering a ≥ 0

If k = 0, then a – b â‹… k = a ≥ 0 ⇒ a = (a – b â‹… k) Є S

Thus, the set S is non-empty if a ≥ 0…..(i)

Again, considering a < 0 ⇒ -a > 0

Since b ≥ 1, b – 1 > 0

Thus, (-a) â‹… (b – 1) ≥ 0

If k = a, a – b â‹… k = a – b â‹… a = (-a) â‹… (b – 1) ≥ 0 ⇒ (a – b â‹… k)  Є S

Thus, the set S is non-empty if a < 0…..(ii)

From (i) and (ii), we conclude that S is generally non-empty.

By definition of the set S, every element in S is greater than or equal to 0

Thus, S satisfies the conditions of the Well-Ordering Principle, and S contains at least ‘p’

Since p Є S, there is some integer ‘m’ such that p = a – b â‹… m ⇒ a = p + b â‹… m

Since p Є S, p ≥ 0

If possible, let p ≥ b ⇒ p – b ≥ 0

Now, p – b = (a – b â‹… m) – b = a – b â‹… (m + 1)

⇒ p – b = a – b â‹… k, where k = m + 1

Thus, p – b ≥ 0 and p – b = a – b â‹… k, for some integer ‘k’, which proves p – b Є S

However, p – b < p, which contradicts that ‘p’ is the least element of the set S

Thus, p < b

Here, a = b ⋅ m + p and 0 ≤ p < b

If q = m and r = p, then ‘q’ and ‘r’ are integers such that a = b ⋅ q + r and 0 ≤ r < b

Verifying the Uniqueness of Solution

As we know, for the integers ‘q’ and ‘r’ as defined above, a = b ⋅ q + r and 0 ≤ r < b…..(iii)

Let ‘q1’ and ‘r1’ be any two integers such that a = b ⋅ q1 + r1 and 0 ≤ r1 < b…..(iv)

By substituting both the values of a from (iii) and (iv), we get b â‹… q + r = b â‹… q1 + r1

⇒ r – r1 = b â‹… q1 – b â‹… q = b(q1 – q)

r – r1 = b(q1 – q)…..(v)

Let us assume that r1 ≥ r

Since 0 ≤ r1 – r ≤ r1 and r1 < b, 

0 ≤ r1 – r < b

From (v), we get

0 ≤ b(q – q1) < b

⇒ 0 ≤ q – q1 < 1

Since q – q1 is an integer such that 0 ≤ q – q1 < 1

Then q – q1 = 0

⇒ q = q1

Now, if we assume r ≥ r1

By a similar argument, we get q = q1

Thus, q = q1, in general

⇒ q – q1 = 0

Here, r1 – r = b(q – q1)

⇒ r1 – r = b â‹… 0 = 0

⇒ r1 = r

Thus, q = q1 and r = r1 show that ‘q’ and ‘r’ are unique.

Solved Example

Using the quotient-remainder theorem, compute ‘q,’ the quotient, and ‘r,’ the remainder, given ‘a’ is divided by ‘b,’ and also verify that a = b ⋅ q + r
a) a = 182, b = 9
b) a = -181, b = 7
c) a = 529, b = 23

Solution:

a) When a = 182 is divided b = 9, we get the quotient q = 20 and the remainder r = 2
Also, 182 = 9 â‹… 20 + 2
⇒ a = b ⋅ q + r, verified.
b) When a = -181 is divided b = 7, we get the quotient q = -25 and the remainder r = 6
Also, -181 = 7 â‹… (-25) + 6
⇒ a = b ⋅ q + r, verified.
c) When a = 529 is divided b = 23, we get the quotient q = 23 and the remainder r = 0
Also, 529 = 23 â‹… 23 + 0
⇒ a = b ⋅ q + r, verified.

Last modified on April 26th, 2024