Sub topic 13
Remainder Problems: Same and Different Remainders
Assume you know integer division, HCF (highest common factor), LCM, and basic algebra. In these problems, the divisor is usually unknown. The key is to remove the remainder first.
The basic model
If a number \(N\) leaves remainder \(r\) when divided by \(d\), then
\[ N = dq + r \]
for some integer quotient \(q\). Therefore,
\[ d \mid (N-r) \]
This means that \(d\) divides the number after its remainder has been subtracted.
For two numbers \(A\) and \(B\), with remainders \(r1\) and \(r2\),
\[ d \mid (A-r1) \quad\text{and}\quad d \mid (B-r2) \]
So the greatest possible divisor is
\[ d=\operatorname{HCF}(A-r1,\ B-r2) \]
provided that \(d\) is greater than every stated remainder.
Same remainder
Suppose \(245\) and \(1029\) leave remainder \(5\) when divided by the same greatest number \(d\).
Subtract the common remainder:
\[ 245-5=240,\qquad 1029-5=1024 \]
The divisor must divide both 240 and 1024. Hence,
\[ d=\operatorname{HCF}(240,1024)=16 \]
Check:
\[ 245=16(15)+5 \]
\[ 1029=16(64)+5 \]
Therefore, the greatest divisor is 16.
If the common remainder is not given, use the difference between the numbers. Since
\[ A=dq1+r,\qquad B=dq2+r \]
their difference is divisible by \(d\):
\[ d\mid(B-A) \]
For several numbers, find the HCF of their pairwise differences.
Different remainders
Suppose \(245\) leaves remainder \(5\), while \(1029\) leaves remainder \(9\), on division by the same greatest number \(d\).
Remove each remainder separately:
\[ 245-5=240,\qquad 1029-9=1020 \]
Thus,
\[ d=\operatorname{HCF}(240,1020)=60 \]
Verification:
\[ 245=60(4)+5,\qquad 1029=60(17)+9 \]
The answer is 60.
from math import gcd
def greatest_divisor(numbers, remainders):
reduced = [number - remainder
for number, remainder in zip(numbers, remainders)]
divisor = reduced[0]
for value in reduced[1:]:
divisor = gcd(divisor, value)
if divisor <= max(remainders):
raise ValueError("The candidate is not larger than every remainder.")
return divisor
print(greatest_divisor([245, 1029], [5, 9])) # 60A fast decision method
Common CAT traps
- Do not subtract one remainder from both numbers when the remainders differ.
- Do not use LCM. These questions ask for a common divisor, so HCF is appropriate.
- Check the wording. “Greatest number” asks for the greatest divisor, while “least number to add” may require a different setup.
- Always substitute the answer back into the original divisions.
Exercise
Find the greatest number that divides 437 and 752, leaving remainders 5 and 8 respectively.
Show answer
Subtract the remainders: 437 - 5 = 432 and 752 - 8 = 744. Therefore, the divisor is HCF(432, 744) = 24. Since 24 is greater than both remainders, the answer is 24.