Notebook
00:06
30 Mar 2026

Subtract and Find HCF: When Remainders Are Given

Welcome! Today we're going to master a specific technique for finding the Highest Common Factor in a new scenario: Subtract and Find HCF: When Remainders Are Given.

You already know how to compute HCF when numbers divide exactly.

But what if division leaves a remainder?

In this section, you will discover a single algebraic move — subtracting the remainder — that converts any remainder problem into one you already know how to solve.

We will apply this technique to several scenarios:

  • Problems involving two and three numbers
  • Cases where adjusted numbers have no obvious factors
  • Situations requiring systematic prime testing

This is one of six patternskey! for remainder-adjusted problems you'll learn. Outside of exams, this reasoning helps find a common measure in real-world tasks:

ExampleScenario
ManufacturingCutting rods of different lengths into equal pieces
LogisticsOrganizing items with specified leftover amounts

1. The remainder-to-exact-division conversion

You know how to find HCF when numbers divide exactly. But what happens when division leaves a remainder?

Before we can solve these problems, we need a way to convert:

'divides with remainder' \rightarrow 'divides exactly'

There is a simple algebraic move that does this.

📋 Given Info

Here's the situation:

  • We have a number 545
  • When we divide it by some number dd, we get a remainder of 5extra

Goal: We want to find the value of dd.

✍️ Question

Think about this: 🤔

If 545 leaves a remainder of 5 when divided by dd, what number does dd divide exactly (with no remainder)?

Why?

The Fundamental Rule of DivisionYour starting point for remainder problems

When a number NN leaves a remainder rr upon division by a divisor dd, it can be expressed as:

N=(d×q)+rN = (d \times q) + r

Where:

  • NN: The original number (Dividend)
  • dd: The divisor
  • qq: The quotient (how many times dd fits into NN)
  • rr: The remainderThe amount that prevents perfect division — the "extra bit" that doesn't fit into a perfect group of dd.
✍️ MCQ
Choose one
If division is perfect, what is the value of rr?

Making it Perfectly DivisibleConverts to a factor problem you can solve

By rearranging the division equation, we get a powerful tool for solving HCF problems:

Nr=d×qN - r = d \times q

Key Insight: If you subtract the remainderImmediately make the number perfectly divisible from the original number, the resulting value is perfectly divisibleThe key trick when a problem mentions a remainder by the divisor dd.

To get rid of a remainder, simply subtract it from the original number!Subtract it to solve using HCF

✍️ MCQ
Choose one
If 2323 leaves remainder 33, which number is exactly divisible by dd?

Application Example

If we have the number 545We don't work with this directly because of the remainder and it leaves a remainder of 5This prevents direct division when divided by dd:

  1. Subtract the remainder: 5455=540545 - 5 = 540
  2. Identify the relationship: 540=d×q540 = d \times q
  3. Conclusion: The divisor dd must divide 540resultYour mystery divisor must be an exact factor of this exactly.

This confirms that our mystery divisor is a factor of the adjusted numberThe divisor must be an exact factor of this new value.

The Core Strategy

This single insight — subtracting the remainder converts a remainder problem into an exact-division problemThis converts messy division into exact division — is the engine behind the entire technique.

By simply subtracting the remainderAlways subtract first to clean up your numbers, we "clean up" the numbers before starting the real work. This removes the messiness of remainders, making the problem much simpler to solve.

✍️ MCQ
Choose one
Which number is exactly divisible by the divisor if 103103 leaves a remainder of 33?

Turning Remainders into HCF

Instead of looking for "the largest dd that divides 545545 with remainder 55," you simply look for "the largest dd that divides 540540 exactlyFind a number that divides exactly."

Why does this work?

  • Subtracting the remainder (5455=540545 - 5 = 540) creates a number that has no remainder when divided.
  • The "largest number" that divides others exactly is, by definition, the Highest Common Factor (HCF)This is the definition of H C F.

Rule: Every remainder problemkey insightExam remainder problems are H C F in disguise is just an HCF problem in disguiseIt's an H C F problem after the subtraction once you subtract those remainders!

✍️ Yes/No
Yes or No?
Does the word 'largest' in the phrase 'largest divisor' suggest that we should find the HCF?

2. Applying the subtraction method with two numbers

We have the key insight:

Subtracting the remainder turns a remainder problem into an exact-division problem.

Now we need to put this to work on a full problem:

  1. Adjust both numbers by subtracting their remainders
  2. Factorise the new numbers
  3. Compute the HCF (Highest Common FactorHighest\ Common\ Factor)
📋 Given Info

Here's the problem:

You want to find the largest number that divides 129 and 545, leaving remainders 3 and 5 respectively.

The Key Strategy: Subtracting each remainder from its corresponding number gives you values that the required number divides exactly.

  • 1293=126129 - 3 = 126
  • 5455=540545 - 5 = 540
✍️ Question

Your Turn ✏️

Find the largest number that divides 129 and 545, leaving remainders 3 and 5 respectively.

Show all steps:

  1. Adjustment (subtract the remainders)
  2. Factorisation (prime factorise the adjusted numbers)
  3. HCF (find the highest common factor)

Problem Setup: Subtract and Find HCF

Find the largest numberThis signals we need to find HCF that divides 129 (leaving remainder 3) and 545 (leaving remainder 5).


Step 1 — Adjust the Numbers

To find a number that divides perfectly, we must first "remove" the extra remainder from our starting values.

  • For 129: 1293=126129 - 3 = 126adjustedRemove the leftover to get exact division

Note: Our mystery number must divide 126 exactlyNo remainder means perfect division, without any remainder.

✍️ FIB
Fill in the blank
What is 5455545 - 5?
Type your answer, or hold Space to speak

Step 2 — Adjust the Second Number

  • For 545: 5455=540545 - 5 = 540adjustedThe second number for your calculation

Our mystery number must also divide 540 exactly.

⚠️ Key Rule: Match the Remainders

Notice how we paired them:

  • 1293129 \rightarrow 3Each remainder pairs with its own number
  • 5455545 \rightarrow 5Each remainder pairs with its own number

Each number gets its OWN specific remainder subtracted. This is crucial for accuracy, especially when the remainders are different. Do not mix them up!A common mistake to avoid

✍️ MCQ
Choose one
Which is the correct adjustment for YY?

Step 2: Prime Factorization

Now that we have our adjusted numbers, 126 and 540, we need to find their prime factors to move forward. Let's break them down systematically.

Factoring 126

  • Divisible by 2? Yes, it ends in an even number. 126=2×63126 = 2 \times 63Always begin with 2 when the number is even.
  • Divisible by 3? Check the sum of digits: 6+3=96 + 3 = 9. Since 9 is a multiple of 3, 63 is divisible by 3.
  • Breaking it down: 63=3×2163 = 3 \times 21, and 21=3×721 = 3 \times 7.

Prime Factorization of 126:

126=2×32×7126 = 2 \times 3^2 \times 7
Result
(This is the foundation for finding the HCF)

✍️ FIB
Fill in the blank
In the prime factorization of 126=2×3n×7126 = 2 \times 3^n \times 7, what is the value of nn?
Type your answer, or hold Space to speak

Factoring 540

Next, let's tackle the larger number, 540For bigger numbers, be systematic with your division, by dividing by prime factors step-by-step:

  • Divide by 2: It's even, so 540=2×270540 = 2 \times 270Keep dividing by 2 until you can't anymore.
  • Divide by 2 again: 270=2×135270 = 2 \times 135.
  • Divisible by 3? Check the sum of digits for 135: 1+3+5=91 + 3 + 5 = 9Add the digits: 1+3+5=9, which is a multiple of 3. This means it is definitely divisible by 3When digit sum is divisible by 3, the number is too.
  • Breaking down 135: 135=3×45135 = 3 \times 45.
  • Further factors: 45=3×1545 = 3 \times 15, and 15=3×515 = 3 \times 5.

Prime Factorization of 540: 540=22×33×5540 = 2^2 \times 3^3 \times 5

✍️ MCQ
Choose one
Why is 135135 divisible by 33?

Step 3 — Finding the HCF

To find the Highest Common Factor (HCF) from prime factorizations, we follow the Golden Rule:

The Rule

Take the lowest powerThe largest amount both numbers share of each COMMON prime factorMust appear in both lists.

Note: Only include prime numbers that appear in the factorization of both numbers. If a factor is missing from one listSkip factors not in both, it is not common and cannot be part of the HCF.

✍️ MCQ
Choose one
Which prime factors are common to both 126126 and 540540?

Comparing Common Factors

Identify the common primes and compare their exponents to find the smallest power:

  • Prime 2: Appears in both lists.
    • Powers: 212^1 and 222^2
    • Smallest power (min) = 212^1winnerOne is smaller than two
  • Prime 3: Appears in both lists.
    • Powers: 323^2 and 333^3
    • Smallest power (min) = 323^2winnerTwo is smaller than three
✍️ MCQ
Choose one
Why do we skip the prime factor 77 in our HCF calculation?

Final Calculation

We exclude any factors that are not shared:

  • Prime 7: Only in 126126. Not commonOnly appears in one list \rightarrow Skip.
  • Prime 5: Only in 540540. Not commonCannot be part of the HCF \rightarrow Skip.

Multiply the "winners"Multiply the lowest powers together (the lowest powers of common primes) to get the result:

HCF=21×32\text{HCF} = 2^1 \times 3^2

HCF=2×9=18\text{HCF} = 2 \times 9 = 18
(The final HCF result)


Conclusion: 1818answerDivides both numbers evenly is the largest number that divides our original values with the specified remainders.

Verification: Why it Works

It's always a good idea to check our work! Let's verifyChecking our work catches errors if 18 is truly the largest number that divides 129 and 545 while leaving the required remainders.

The Goal:

  • Divide 129 by 18 \rightarrow Should leave a remainder of 3targetMust match the remainders from the problem.
  • Divide 545 by 18 \rightarrow Should leave a remainder of 5.

In math, we don't just take our own word for it—let's prove it by dividingDividing originals by HCF proves correctness!

✍️ FIB
Fill in the blank
What is the remainder when 129129 is divided by 1818?
Type your answer, or hold Space to speak

Verification Part 1: 129

  • 129÷18=7129 \div 18 = 7 with a remainder of 3Three matches what was required for 129

Since 18×7=12618 \times 7 = 126, subtracting that from 129 leaves exactly 3. That matches our requirement perfectly!

Now, let's test the second number: 545Testing if 18 works for the second number too.

✍️ MCQ
Choose one
If 18×30=54018 \times 30 = 540, what is the remainder when 545545 is divided by 1818?

Verification Part 2: 545

  • 545÷18=30545 \div 18 = 30 with a remainder of 5

Since 18×30=54018 \times 30 = 540, subtracting that from 545 leaves a remainder of exactly 5.


Conclusion: Both remainders match the original question perfectly! This proves that 18answer18 is the largest number satisfying both conditions is the correct HCF for our adjusted numbers and the correct answer for this problem.

Great work! We've successfully used the Subtract-then-HCFSubtract remainders first, then find HCF of results method.

3. Systematic factorisation of unfamiliar numbers

We have the adjustment and HCF technique working for numbers like 126126 and 540540, which have obvious small factors.

But many remainder-adjusted problems produce numbers like 391 or 527:

  • Numbers that do not divide by 22, 33, or 55.
  • The factorisation step becomes the bottleneck.

Here's the situation:

📋 Given Info

You need to find HCF(391, 425, 527). These are adjusted values from a three-number remainder problem.

  • 425: Ends in 55, so it is clearly divisible by 55.
  • 391 and 527:
    • Not even (not divisible by 22)
    • Sum of digits is not a multiple of 33
    • Do not end in 00 or 55

When small prime factors like 2,3,2, 3, and 55 fail, we need a systematic approach to factorise.

✍️ Question

Factorise 391 into its prime factors.

  • Show which primes you test
  • Show how you check each one for divisibility

Testing Factors Systematically

Numbers like 391This number trips up many students in exams can be tricky because they do not have small, obvious factors. At first glance, it doesn't immediately jump out as being in any simple multiplication table.

Why 391 is Tricky:

  • Not Even:It doesn't end in an even digit It doesn't end in an even digit, so it's not divisible by 22.
  • No 5s or 0s:So we know it's not divisible by 5 It doesn't end in 00 or 55, so it's not divisible by 55.
  • Digit Sum Rule:The sum of digits isn't a multiple of 3 The sum of the digits (3+9+1=133 + 9 + 1 = 13) is not a multiple of 33, so it's not divisible by 33.

When we are stuck like this, we don't guess randomly. We need to test prime numbers systematicallyOtherwise you'll waste time guessing to uncover hidden factors.

✍️ Yes/No
Yes or No?
Is 391391 divisible by 22 or 55?

The Square Root Rule

How far do we actually need to test? Do we have to check every prime all the way up to 391391? No!

The Rule: To find the factors of a number, you only need to test prime numbers up to the square rootGives you a clear stopping point for testing of that number.

For our number:

39119.8\sqrt{391} \approx 19.8
≈19.8
(Any factor must be 19 or smaller)

The Plan: Since the square root is approximately 19.8, this gives us a clear stopping pointWe know exactly where to stop testing. You only need to test primes up to 19. This "secret"Prevents checking every number up to 391 saves an immense amount of time and effort!

✍️ MCQ
Choose one
What is the largest prime number less than or equal to 19.819.8?

Our Systematic Checklist

Based on the Square Root Rule, our list of potential prime factors is much smaller. Instead of checking hundreds of possibilities, we only need to test:

2, 3, 5, 7, 11, 13, 17, 19These are the only ones we need to check

Why this works:

  • Efficiency:Our checklist is dramatically reduced We've narrowed the search down to just these few numbers.
  • The Prime Test: If none of these primes divide 391391 exactly, then we have mathematically proven that 391391 is a prime numberprime!Gives you confidence to stop searching itself!

Let's test these one by one to find the hidden factorsThe factors that aren't immediately obvious.

Testing the Primes: 2, 3, and 5

To find the factors of 391, we'll start our checklist with the easiest prime numbersStart with the simplest primes to save time. Since it's a large number, we'll work through the list systematically:

  • Divisibility by 2: Look at the last digit (11)Check if the last digit is odd or even. It is an odd numberOdd numbers can't be divided by 2.
    • Conclusion: 391 is not divisible by 2.
  • Divisibility by 3: Sum of the digits: 3+9+1=133 + 9 + 1 = 13Add the digits together to test for 3.
    • Observation: Since 13 is not in the 3 times table13 is not in the 3 times table (not divisible by 3), 391 is not divisible by 3.
  • Divisibility by 5: Check the last digit. It is not a 00 or a 55.
    • Conclusion: 391 is not divisible by 5.

Moving through the list quickly!

✍️ MCQ
Choose one
Why is 391391 not divisible by 33?

Testing the Primes: 7, 11, and 13

Next, we test the primes that require a bit more division and calculationDivision is needed for primes like 7, 11, 13:

  • Try 7:
    • 7×55=3857 \times 55 = 385.
    • 391385=6391 - 385 = 6.
    • Result: Since the remainder is 66remainderA remainder means it's not a factor (not zero), 7 does not divide 391.
  • Try 11:
    • 11×35=38511 \times 35 = 385.
    • If we add another 11, we get 396396 (too big).
    • Result: 391 is not divisible by 11.
  • Try 13:
    • 13×30=39013 \times 30 = 390.
    • The difference is only 11!
    • Result: Close doesn't count for factorsEven a remainder of 1 means no perfect division. 13 is not a factor.
✍️ FIB
Fill in the blank
What is the remainder when 391391 is divided by 1313?
Type your answer, or hold Space to speak

The Breakthrough: Testing 17

Don't give up!Keep testing larger primes like 17 We have one more prime from our list to test.

  • Try 17:
    • 17×23=39117 \times 23 = 391Sometimes the factor is a bigger prime.

The division is exact! ✓exact!Exact division means you found a factor

We finally found it! This means 391391 isn't prime after allIt can be factored into primes. It is the product of two prime factors.

Prime Factorisation

391=17×23391 = 17 \times 23(391 equals 17 times 23)

This was the hidden factor we needed to continue our HCF calculation.

⚠️ The "Small Prime" Pitfall

Many students make the mistake of testing only the smallest prime numbers like 2, 3, and 5Testing only these small primes is not enough. When these don't work, they wrongly conclude the number is prime.

Don't let easy numbers fool you! As seen with 391391exampleLooks prime but is actually composite, a number can appear prime at first glance but actually have much larger prime factors.

✍️ Yes/No
Yes or No?
If a number is not divisible by 2,32, 3, or 55, does that guarantee it is a prime number?

🔍 Persistence in Testing

When dealing with larger numbers (specifically in the 300-600 rangeMust be persistent with division in this range), you cannot stop early. You must be persistentKeep testing, don't stop early in your search for factors.

Rule of Thumb:

  • Test all prime numbers sequentially.
  • You must test up to at least 19 or 23Keep testing until you reach these primes to be certain of the number's primality.

✍️ MCQ
Choose one
Why should we test up to 2323 for a number like 529529?

Systematic Factorization

Some numbers don't show their factors easily, so it is important to be persistent and test prime numbers systematicallyDon't give up if easy primes don't work.

  • Testing 17: By dividing 527527 by 1717, we find it goes exactly 3131 times.
  • Factorization: 527=17×31527 = 17 \times 31(Recognizing larger prime factors is the hardest part)

Both 1717 and 3131 are prime numbers, so this is the complete prime factorization.

✍️ MCQ
Choose one
Is 1717 a prime number or a composite number?

Prime Factorization of 425

Since 425425 ends in 55Use this to simplify your work immediately, we can easily identify 55 as a factor:

  1. 425=5×85425 = 5 \times 85
  2. Further breaking down 8585: 85=5×1785 = 5 \times 17
  3. Final Form: 425=5×5×17=52×17425 = 5 \times 5 \times 17 = 5^2 \times 17Use powers to keep factors organized for HCF

Observation: Notice that 1717common!Spotting repeating primes is your biggest clue appears here just as it did in the factorization of 527527.

✍️ MCQ
Choose one
Which prime factor is common to both 527527 and 425425?

Final HCF Calculation

By comparing the prime factorizations of all three numbers in our set:

  • 391=17×23391 = 17 \times 23
  • 425=52×17425 = 5^2 \times 17
  • 527=17×31527 = 17 \times 31

We identify that 1717shared!The key step is identifying the shared prime is the only prime factor shared by all three numbers.

Result:

HCF(391,425,527)=17\text{HCF}(391, 425, 527) = 17
(If a number doesn't appear in every list, it can't be in the HCF)

4. Handling the same-value remainder (both remainders are equal but given)

We've covered how to adjust, factorise, and compute HCF when remainders are given. Now let's look at one last subtlety:

What if the problem states the same remainder for both numbers?

This edge case sits right at the boundary between the technique you've learned (subtracting given remainders) and the pairwise-difference technique you'll learn next.

📋 Given Info

Consider this problem:

"Find the largest number that divides 438 and 606, leaving remainder 6same! in each case."

Key Observation:

  • Both remainders are 6 — they are the same value.
  • This value is given explicitly in the problem statement.
✍️ Question

Your turn 🤔

How do you solve this problem?

  • Do you subtract the remainders (like the given-remainder pattern)?
  • Or do you take pairwise differences (like the unknown-remainder pattern)?

Explain why, and find the answer.

A Subtle but Important Distinction

Key Insight: The phrasing 'leaving remainder 6 in each case'The remainder is already known for both numbers is crucial.

Because the remainder value is explicitly givenThe remainder is stated directly in the problem to us as 6 for both numbers, we don't need to find it ourselves. We can move straight to the adjustment stepMake the numbers divisible right away to transform this into an exact-division problem.

✍️ MCQ
Choose one
Since the remainder is given as 66, what is our first step?

The 'Given Remainder' Method

To find the divisor that leaves a remainder, we first subtract the given remainder from each original numberDo this before anything else to find the adjusted numbers:

  • Number 1: 4386=432438 - 6 = 432
  • Number 2: 6066=600606 - 6 = 600

These adjusted numbers (432432 and 600600) are now values that our target divisor will divide exactlykeyThe new values become a standard HCF task.

✍️ FIB
Fill in the blank
The adjusted numbers are:
Type your answer, or hold Space to speak

Finding the HCF

Now that we have our adjusted numbers, the final task is clear. To find the largest number that divides both 432432 and 600600 exactly, we calculate:

HCF(432,600)\text{HCF}(432, 600)
(Calculate HCF of the adjusted numbers)

This HCF will be the largest number that leaves a remainder of 66This is your final answer when dividing the original numbers 438438 and 606606.

Step 2: Factorise our adjusted numbers

Now that we have our adjusted numbers, we need to find their prime building blocksThe prime factors that multiply to make the number through prime factorisation.

Factorise 432: Since 432 is an even number, we repeatedly divide by 2 until we reach an odd number.

  • 432=2×216432 = 2 \times 216
  • 216=2×108216 = 2 \times 108
  • 108=2×54108 = 2 \times 54
  • 54=2×2754 = 2 \times 27
  • 27=3327 = 3^3Recognize this as three cubed

Final Prime Factorisation: 432=24×33432 = 2^4 \times 3^3

✍️ FIB
Fill in the blank
What is 333^3?
Type your answer, or hold Space to speak

Factorise 600: Similarly, we break down 600 into its prime factors. We divide by 2 three times, then move to the next prime factors, 3 and 5.

  • 600=2×300600 = 2 \times 300
  • 300=2×150300 = 2 \times 150
  • 150=2×75150 = 2 \times 75An odd number so we stop dividing by two
  • 75=3×2575 = 3 \times 25
  • 25=5225 = 5^2Recognize it as five squared

Final Prime Factorisation: 600=23×31×52600 = 2^3 \times 3^1 \times 5^2

✍️ Yes/No
Yes or No?
Is the prime factor 55 common to both 432432 and 600600?

Step 3: Find the HCF

To find the Highest Common Factor (HCF)The highest common factor we need to find, we follow this rule:

Rule: Take the lowest power of each COMMON prime factor.Only look at shared primes with lowest exponents

Let's compare the powers in our factorisations:

  • Prime 2: We have 242^4 and 232^3. The smaller power is 3. 23\rightarrow 2^3Pick the smaller power for each shared base
  • Prime 3: We have 333^3 and 313^1. The smaller power is 1. 31\rightarrow 3^1
  • Prime 5: This is not common to both numbers, so we ignore itFive isn't in both numbers so skip it.

Calculation:

HCF=23×3=8×3=24\text{HCF} = 2^3 \times 3 = 8 \times 3 = 24
(Multiply the common primes with lowest powers)

Thus, the HCF of our adjusted numbers is 24.

Verify the Results

It is always a good practice to check our workThe only way to be certain your HCF is correct to ensure the calculated HCF satisfies the original conditions.

Step 1: Check the first number

  • Division: 438÷24=18438 \div 24 = 18 with a remainder of 66Must match exactly what the question asked for
  • Verification: Since the problem specifically asked for a remainder of 66, this result is correct
✍️ FIB
Fill in the blank
If 24×25=60024 \times 25 = 600, what is the remainder when 606606 is divided by 2424?
Type your answer, or hold Space to speak

Step 2: Check the second number

  • Division: 606÷24=25606 \div 24 = 25 with a remainder of 66Same remainder confirms your HCF works

Conclusion: Both numbers, when divided by 2424, leave the required remainder of 66. Our answer is officially verified!You can move on with full confidence

Great job following through the steps!

Distinguishing Remainder Methods

It is very important not to mix up our methods!A mistake many students make The strategy you choose depends entirely on what the problem tells you about the remainder.

1. The Given Remainder Method(Your go-to when an exact value is provided)

If the problem provides an exact value (e.g., "leaves a remainder of 6"), you simply subtract that specific value from each of your original numbers first.

2. The 'Unknown Same Remainder' Method

This method (using pairwise differences) is used ONLY when the problem says "leaves the same remainder" WITHOUT telling you what that value is.

Key Logic: You cannot subtract a number you don't know!StopYou must switch your strategy entirely If the value is a mystery, you must subtract the original numbers from each other instead.

✍️ MCQ
Choose one
If a problem states: "Find the largest number that divides 100100 and 150150 leaving a remainder of 44 in each case," what is your first step?

Compare the Phrasing:

Use this table to quickly identify which action to take based on the language of the question:

PhrasingRemainder ValueAction
"Leaving remainder 6 in each case"GIVEN (e.g., 6)Subtract the valueWhen the value is given, subtract it from each number.
"Leaving the same remainder in each case"NOT GIVEN (Unknown)Take pairwise differencesFor unknown values, subtract numbers from each other (subtract the numbers from each other).

Summary Tip:

  • Given value? Subtract that value.
  • Unknown value? Subtract the numbers from each other.
✍️ T/F
True or False?
When the remainder value is NOT provided in the problem, we use the 'pairwise differences' method.