Prime Factors Fail the Moment a Number Is Not a Perfect Square
Learn to find a square root by prime factorisation and by long division, handle fractions and decimals and round to a given number of places, find the least number to add or subtract to reach a perfect square, and solve area and row problems.
Why does prime factorisation not work for every square root?
Because it only gives an answer when the number is a perfect square.
Factorise and the primes pair up neatly, giving exactly. Try the same on and there is nothing to pair — is prime, and is not a whole number at all. No amount of factorising will produce it.
So a second method is needed, one that works on any number and gives as many decimal places as you ask for. That is the long division method, and it is the core of this page — along with prime factorisation for the cases where it does work, and the problems both are used to solve.
Factorise and the primes pair up neatly, giving exactly. Try the same on and there is nothing to pair — is prime, and is not a whole number at all. No amount of factorising will produce it.
So a second method is needed, one that works on any number and gives as many decimal places as you ask for. That is the long division method, and it is the core of this page — along with prime factorisation for the cases where it does work, and the problems both are used to solve.
How do you find a square root by prime factorisation?
Break the number into prime factors, group them in pairs, and take one factor from each pair.
Worked example 1. Find .
Dividing repeatedly by primes:
Grouping in pairs — , , — and taking one from each:
Checking: . Correct.
Worked example 2. Find .
Halve each exponent:
Checking: . Correct.
The exponent shortcut. Once the number is written with exponents, the square root simply halves every exponent — which is why a number is a perfect square exactly when every prime exponent is even. That is also the test for whether the method will work at all.
Worked example 3 — showing a failure. Is a perfect square?
The exponent of is **, which is odd**, so one has no partner and is not a perfect square. Prime factorisation has answered the question but cannot give the root.
Where factorisation is still the better method. For a perfect square it is exact and often faster than long division, and it is the only method that tells you why a number is or is not a perfect square. For anything else — and for every decimal answer — the next section is required.
Worked example 1. Find .
Dividing repeatedly by primes:
Grouping in pairs — , , — and taking one from each:
Checking: . Correct.
Worked example 2. Find .
Halve each exponent:
Checking: . Correct.
The exponent shortcut. Once the number is written with exponents, the square root simply halves every exponent — which is why a number is a perfect square exactly when every prime exponent is even. That is also the test for whether the method will work at all.
Worked example 3 — showing a failure. Is a perfect square?
The exponent of is **, which is odd**, so one has no partner and is not a perfect square. Prime factorisation has answered the question but cannot give the root.
Where factorisation is still the better method. For a perfect square it is exact and often faster than long division, and it is the only method that tells you why a number is or is not a perfect square. For anything else — and for every decimal answer — the next section is required.
How do you find a square root by long division?
Mark off the digits in pairs from the right, then build the root one digit at a time.
The procedure:
- Pair the digits from the right for the whole-number part, and from the decimal point rightwards for the decimal part.
- Find the largest number whose square is not more than the leftmost group. That is the first digit of the root.
- Subtract, bring down the next pair, and form the new dividend.
- Double the root so far to get the start of the new divisor, then find the digit that makes divisor digit not exceed the dividend.
- Repeat until the pairs run out, or until you have enough decimal places.
Worked example 1. Find .
Pair as .
- Largest square not over is , so the first digit is ****. Remainder .
- Bring down , giving .
- Double the root so far: . Find with . Trying : exactly.
So , and confirms it.
Worked example 2. Find .
Pair as . Largest square not over is , so the first digit is ****, remainder . Bring down to give . Doubling gives , and exactly.
So .
Worked example 3 — a decimal. Find .
Pair the whole part and the decimal part separately: . Largest square not over is , remainder . Bring down to give . Doubling gives , and exactly.
The decimal point in the answer sits above the decimal point in the number, so . Checking: . Correct.
Worked example 4 — a fraction. Find .
Take the square root of the numerator and the denominator separately:
since and .
Worked example 5 — to a given number of decimal places. Find correct to two decimal places.
Carrying the long division out gives , so to two places .
The rule that is easy to get wrong. To give an answer correct to ** places you must work out ** places and then round. Here the third digit is , so the second place stays as . But for , the third digit is , so two places gives **** and not — stopping the division at two places would have given the wrong answer.
The procedure:
- Pair the digits from the right for the whole-number part, and from the decimal point rightwards for the decimal part.
- Find the largest number whose square is not more than the leftmost group. That is the first digit of the root.
- Subtract, bring down the next pair, and form the new dividend.
- Double the root so far to get the start of the new divisor, then find the digit that makes divisor digit not exceed the dividend.
- Repeat until the pairs run out, or until you have enough decimal places.
Worked example 1. Find .
Pair as .
- Largest square not over is , so the first digit is ****. Remainder .
- Bring down , giving .
- Double the root so far: . Find with . Trying : exactly.
So , and confirms it.
Worked example 2. Find .
Pair as . Largest square not over is , so the first digit is ****, remainder . Bring down to give . Doubling gives , and exactly.
So .
Worked example 3 — a decimal. Find .
Pair the whole part and the decimal part separately: . Largest square not over is , remainder . Bring down to give . Doubling gives , and exactly.
The decimal point in the answer sits above the decimal point in the number, so . Checking: . Correct.
Worked example 4 — a fraction. Find .
Take the square root of the numerator and the denominator separately:
since and .
Worked example 5 — to a given number of decimal places. Find correct to two decimal places.
Carrying the long division out gives , so to two places .
The rule that is easy to get wrong. To give an answer correct to ** places you must work out ** places and then round. Here the third digit is , so the second place stays as . But for , the third digit is , so two places gives **** and not — stopping the division at two places would have given the wrong answer.
How do you find the least number to add or subtract?
Find the square root by long division and look at the remainder, or equivalently find the nearest perfect squares on either side.
To subtract, go down to the perfect square below. To add, go up to the perfect square above.
Worked example 1. What is the least number that must be subtracted from to make it a perfect square?
Since and , the largest perfect square below is :
So **** must be subtracted, leaving .
Worked example 2. What is the least number that must be added to to make it a perfect square?
The smallest perfect square above is :
So **** must be added, giving .
Notice that the two answers are quite different — and — because sits much closer to than to .
Worked example 3. Find the least number to be subtracted from , and the least to be added.
Here and .
So one is enough to subtract, while is needed to add.
The connection to long division. Carrying out the long division of leaves a remainder after the last complete step, and that remainder is exactly the number to subtract. To find the number to add, increase the root by , square it, and subtract the original — which is why examiners accept either route.
The trap to avoid. For the add case you must go to the next square up, not simply reuse the remainder. Adding the remainder to gives , which is not a perfect square. Getting these two directions the wrong way round is the most frequent error on this topic.
To subtract, go down to the perfect square below. To add, go up to the perfect square above.
Worked example 1. What is the least number that must be subtracted from to make it a perfect square?
Since and , the largest perfect square below is :
So **** must be subtracted, leaving .
Worked example 2. What is the least number that must be added to to make it a perfect square?
The smallest perfect square above is :
So **** must be added, giving .
Notice that the two answers are quite different — and — because sits much closer to than to .
Worked example 3. Find the least number to be subtracted from , and the least to be added.
Here and .
So one is enough to subtract, while is needed to add.
The connection to long division. Carrying out the long division of leaves a remainder after the last complete step, and that remainder is exactly the number to subtract. To find the number to add, increase the root by , square it, and subtract the original — which is why examiners accept either route.
The trap to avoid. For the add case you must go to the next square up, not simply reuse the remainder. Adding the remainder to gives , which is not a perfect square. Getting these two directions the wrong way round is the most frequent error on this topic.
How do square roots solve area and arrangement problems?
Whenever a quantity is squared in the setting — a square field, a square array of objects — the square root undoes it.
Worked example 1 — a square field. The area of a square field is . Find its side and its perimeter.
Worked example 2 — equal rows. A gardener has plants and wants to plant them so that the number of rows equals the number of plants in each row. How many rows?
If there are rows with plants each, then , so
Fortyfive rows of plants.
Worked example 3 — with a leftover. A commander wants to arrange soldiers in a perfect square. What is the least number that must be left out?
Since and , the largest square that fits is :
So **** soldiers are left out, and the rest form a square.
Worked example 4 — cost leading to area. The cost of levelling a square field at per square metre is . Find the side of the field.
Work backwards. First the area:
Then the side:
How to recognise which problem you are in. If the question asks for a side, a row count or an edge, you are taking a square root. If it gives you one of those and asks for the area or the total, you are squaring. And when the total does not come out to a perfect square, the question is almost always asking for the least number to add or subtract from the previous section.
Always keep the units. A side is in metres and an area in square metres, so — the square root halves the unit's power as well as the number's exponent.
Worked example 1 — a square field. The area of a square field is . Find its side and its perimeter.
Worked example 2 — equal rows. A gardener has plants and wants to plant them so that the number of rows equals the number of plants in each row. How many rows?
If there are rows with plants each, then , so
Fortyfive rows of plants.
Worked example 3 — with a leftover. A commander wants to arrange soldiers in a perfect square. What is the least number that must be left out?
Since and , the largest square that fits is :
So **** soldiers are left out, and the rest form a square.
Worked example 4 — cost leading to area. The cost of levelling a square field at per square metre is . Find the side of the field.
Work backwards. First the area:
Then the side:
How to recognise which problem you are in. If the question asks for a side, a row count or an edge, you are taking a square root. If it gives you one of those and asks for the area or the total, you are squaring. And when the total does not come out to a perfect square, the question is almost always asking for the least number to add or subtract from the previous section.
Always keep the units. A side is in metres and an area in square metres, so — the square root halves the unit's power as well as the number's exponent.
Exam tip
Exam tip: pair the digits from the right, not the left
In long division, always mark the pairs from the right for the whole-number part. Pairing from the left gives a wrong number of digits in the root and every subsequent step fails.
For a decimal, pair the whole part leftwards from the point and the decimal part rightwards, adding a zero if the last group is incomplete. Place the answer's decimal point directly above the number's.
To give an answer correct to ** decimal places, work out places and round**. is to two places, not .
For a fraction, take the root of the numerator and denominator separately.
In prime factorisation, group in pairs and take one from each; with exponents, simply halve them. A number is a perfect square exactly when every exponent is even.
Keep the two least number directions straight: subtract to reach the square below, add to reach the square above. The long-division remainder gives the subtract answer only.
Show the divisor at each long-division step — doubling the root so far — since that is where method marks sit.
And carry units through a word problem: in gives out.
For a decimal, pair the whole part leftwards from the point and the decimal part rightwards, adding a zero if the last group is incomplete. Place the answer's decimal point directly above the number's.
To give an answer correct to ** decimal places, work out places and round**. is to two places, not .
For a fraction, take the root of the numerator and denominator separately.
In prime factorisation, group in pairs and take one from each; with exponents, simply halve them. A number is a perfect square exactly when every exponent is even.
Keep the two least number directions straight: subtract to reach the square below, add to reach the square above. The long-division remainder gives the subtract answer only.
Show the divisor at each long-division step — doubling the root so far — since that is where method marks sit.
And carry units through a word problem: in gives out.
Did you know
Why does doubling the root give the next divisor?
The long division method looks like a recipe with an unexplained step: double what you have so far, then guess a digit. The doubling is not arbitrary.
Suppose the root found so far is and the next digit is , so the root becomes in the relevant place value. Then
The has already been subtracted at the previous step. What remains to account for is — which is exactly the new digit multiplied by twice the root so far plus that digit.
That is the rule, word for word. Doubling the root produces the , appending the trial digit produces the , and multiplying by the digit produces the whole term to subtract.
So long division for square roots is the identity applied one place value at a time — the same identity used for the column method of squaring, run backwards.
Suppose the root found so far is and the next digit is , so the root becomes in the relevant place value. Then
The has already been subtracted at the previous step. What remains to account for is — which is exactly the new digit multiplied by twice the root so far plus that digit.
That is the rule, word for word. Doubling the root produces the , appending the trial digit produces the , and multiplying by the digit produces the whole term to subtract.
So long division for square roots is the identity applied one place value at a time — the same identity used for the column method of squaring, run backwards.
Key takeaways
Square roots and their applications: quick revision
- Prime factorisation: group primes in pairs and take one from each. gives ; gives .
- With exponents, the square root halves every exponent — so a number is a perfect square exactly when all exponents are even. is not, because is odd.
- Long division: pair the digits from the right; take the largest square not exceeding the first group; subtract, bring down the next pair; double the root so far for the new divisor; find the digit that fits.
- (from ) and (from ).
- Decimals: pair each side of the point separately and put the answer's point above the number's. .
- Fractions: root the numerator and denominator separately. .
- For ** decimal places, compute ** and round: , and to two places.
- Least number to subtract takes you to the square below: , and .
- Least number to add takes you to the square above: , and . The long-division remainder gives only the subtract answer.
- Word problems: a field of area has side and perimeter ; plants make rows of ; soldiers leave over; and levelling at per for gives , so a side of .
- Units: in, out.
Work a few long divisions to three decimal places and round them back to two — the rounding step is where correct working most often turns into a wrong answer.
- With exponents, the square root halves every exponent — so a number is a perfect square exactly when all exponents are even. is not, because is odd.
- Long division: pair the digits from the right; take the largest square not exceeding the first group; subtract, bring down the next pair; double the root so far for the new divisor; find the digit that fits.
- (from ) and (from ).
- Decimals: pair each side of the point separately and put the answer's point above the number's. .
- Fractions: root the numerator and denominator separately. .
- For ** decimal places, compute ** and round: , and to two places.
- Least number to subtract takes you to the square below: , and .
- Least number to add takes you to the square above: , and . The long-division remainder gives only the subtract answer.
- Word problems: a field of area has side and perimeter ; plants make rows of ; soldiers leave over; and levelling at per for gives , so a side of .
- Units: in, out.
Work a few long divisions to three decimal places and round them back to two — the rounding step is where correct working most often turns into a wrong answer.