If a number N leaves the same remainder r when divided by a, b and c, then N − r is divisible by all three. So N − r is a common multiple of a, b and c, and the least such N is:

N = LCM(a, b, c) + r    and in general    N = LCM × k + r

Worked example 1: remainder 3 each time

Least number leaving remainder 3 when divided by 4, 6 and 10: LCM(4, 6, 10) = 60, so N = 63. Check: 63 = 4 × 15 + 3 = 6 × 10 + 3 = 10 × 6 + 3.

Every such number is 60 apart: 63, 123, 183, and so on. That single fact drives all the harder versions below.

Sometimes the remainders differ, but each falls short of its divisor by the same amount k. Then N + k is divisible by every divisor, so:

N = LCM(a, b, c) − k

Worked example 2: remainders 2, 3 and 4

Least number leaving remainders 2, 3 and 4 when divided by 4, 5 and 6. The gaps are 4 − 2 = 2, 5 − 3 = 2 and 6 − 4 = 2, all equal. N = LCM(4, 5, 6) − 2 = 60 − 2 = 58.

Always check that the gaps really are equal. If they are not, use the method in Case 5.

Write the general form LCM × k + r and try k = 1, 2, 3, … until the extra condition holds. The answer usually appears within a few tries.

Worked example 3: remainder 4, and divisible by 7

Find the least number that leaves remainder 4 when divided by 6, 9 and 15, and is divisible by 7. LCM = 90, so N = 90k + 4. Trying k = 1, 2, 3 gives 94, 184 and 274, none divisible by 7. k = 4 gives 364 = 7 × 52.

A shortcut for the trial: 90 leaves remainder 6 on division by 7, so you need 6k + 4 to be a multiple of 7. That happens first at k = 4 (6 × 4 + 4 = 28).

Find the multiple of the LCM nearest the limit, then add r.

  • Greatest n-digit: divide the largest n-digit number by the LCM, drop the remainder, and add r.
  • Smallest n-digit: take the first multiple of the LCM at or above the smallest n-digit number, and add r.

Worked example 4: four-digit limits

Remainder 3 when divided by 12, 18 and 30, so N = 180k + 3. 9,999 ÷ 180 = 55 with remainder 99, so the greatest four-digit answer is 180 × 55 + 3 = 9,903.

Worked example 5: the smallest four-digit answer

The first multiple of 180 at or above 1,000 is 1,080 (180 × 6), so the smallest four-digit answer is 1,083.

Make sure that adding r does not push the answer over the limit. If it does, use the previous multiple.

When the remainders have no common pattern, build the number one condition at a time.

Worked example 6: remainder 2 on 5, remainder 3 on 7

Numbers leaving remainder 2 on division by 5 are 2, 7, 12, 17, … Test each against 7: 17 = 7 × 2 + 3 works. The least answer is 17, and the rest are 17 + 35k.

To count how many numbers in a range qualify, count the values of k for which LCM × k + r falls inside it.

Worked example 7: how many three-digit numbers?

Three-digit numbers leaving remainder 1 when divided by 4, 5 and 6 have the form 60k + 1. The first is 121 (k = 2) and the last 961 (k = 16), so there are 15.

Common traps: adding r in Case 2 instead of subtracting k; forgetting that the answer must exceed the divisors; and choosing a non-least option such as 2 × LCM + r. For greatest-divisor questions (HCF of differences), see HCF and LCM word problems, and for remainders of large powers see remainder problems.

Q1. What is the least number that leaves remainder 7 when divided by 9, 12 and 15? easy

✅ Answer: (b) 187

💡 Explanation: LCM(9, 12, 15) = 180, so the number is 180 + 7 = 187. 367 also works but is not the least.

Q2. What is the least number that leaves remainders 5, 7 and 9 when divided by 6, 8 and 10? easy

✅ Answer: (a) 119

💡 Explanation: Each remainder is 1 less than its divisor, so the number is 1 short of a common multiple: LCM(6, 8, 10) − 1 = 120 − 1 = 119.

Q3. What is the greatest three-digit number that leaves remainder 2 when divided by 6, 8 and 10? medium

✅ Answer: (d) 962

💡 Explanation: LCM = 120. The largest multiple of 120 below 1,000 is 960, so the number is 960 + 2 = 962.

Q4. What is the least number that leaves remainder 3 when divided by 5, 6 and 8, and is exactly divisible by 9? hard

✅ Answer: (c) 243

💡 Explanation: The number has the form 120k + 3. Try k = 1, 2, … : 123 is not divisible by 9, but 243 = 9 × 27 is.

Q5. How many three-digit numbers below 500 leave remainder 4 when divided by both 6 and 8? hard

✅ Answer: (d) 17

💡 Explanation: Such numbers are 24k + 4. In 100 to 499 they run from 100 (k = 4) to 484 (k = 20), which is 17 numbers.

Why is the answer LCM + r and not just r?

The number r itself leaves remainder r when divided by any larger number, so it technically fits. Exam questions intend a number larger than the divisors, and the first such number is LCM + r. If an option equals r, read the question again.

What if the remainders follow no pattern?

Solve one condition at a time. List numbers meeting the condition with the largest divisor, and pick the first that meets the next condition. Then every later answer differs by the LCM of the divisors.

Can the remainder be larger than a divisor?

No. A remainder must be smaller than its divisor, so remainder 5 is impossible for division by 4. If a question seems to need it, it is badly framed.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 14 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts.

Found an error? Report it and we will correct the page.