ARITHMETIC WORKSHEETS

Checking a perfect square through prime exponents

A positive integer is a perfect square exactly when every exponent in its prime factorization is even, so you can test squareness without relying on a rounded decimal.

What squaring does to prime exponents

Every integer greater than 1 has one prime factorization, up to the order of the factors. This is the fundamental theorem of arithmetic. Squaring a number doubles each exponent in that factorization. For 12, which is 2 squared times 3, the square 144 is 2 to the fourth times 3 squared. Doubling always produces even exponents. Reading the idea backward, a number whose exponents are all even can be halved exponent by exponent to give an integer root, and a number with any odd exponent has no integer root. That is the whole test.

Factoring 144

Divide 144 by 2 repeatedly: 72, 36, 18, 9. Four twos came out, leaving 9, which is 3 times 3. So 144 equals 2 to the fourth times 3 squared, and both exponents, 4 and 2, are even. Halving them gives 2 squared times 3, which is 12. The Square Root Calculator returns 12 for 144, and the Power calculator returns 144 for 12 squared. The three views agree: the factorization predicts an integer root, the root tool finds it, and squaring it returns the original number.

Factoring 72

The number 72 is 8 times 9, and the basic calculator confirms 72 for that product. In primes, 8 is 2 cubed and 9 is 3 squared, so 72 equals 2 cubed times 3 squared. The exponent of 3 is even, but the exponent of 2 is 3, which is odd. One pair of twos can be pulled out as 2 squared, leaving a single 2 inside. So the square root of 72 is 2 times 3 times the square root of 2, which is 6 times the square root of 2, about 8.485. The leftover factor of 2 prevents an integer root.

Fixing a non-square

The factorization also shows what is missing. Multiplying 72 by 2 makes the exponent of 2 equal to 4, and the product is 144, a perfect square. The smallest multiplier that works is always the product of the primes that have odd exponents. For 72 that product is 2. For 50, which is 2 times 5 squared, it is again 2, and 50 times 2 gives 100. For 18, which is 2 times 3 squared, it is 2 as well. The number 12, which is 2 squared times 3, needs a 3 to become 36. This is a handy way to find the nearest square multiple. The same product also tells you how to simplify a radical: the square root of 72 becomes 6 times the square root of 2 by moving the paired primes outside the root and leaving the unpaired factor inside. Each pair of equal primes contributes one factor to the outside, which is why exponents are halved, and any odd leftover stays under the root sign.

Why a rounded display is not proof

A square-root display shows a finite number of digits. A number like 8.485281 is a rounded form of an irrational number, and a number very close to an integer can still be irrational. Conversely, a display of 12 for 144 relies on the tool returning an exact integer. The factorization avoids any reliance on decimals, since it counts primes. For large integers, a rounded floating-point root can also mislead because doubles hold about 15 to 16 significant digits. The squared candidate check, 12 squared equals 144, is exact for integers of reasonable size.

Another perfect square

The number 900 is 9 times 100, so its factorization is 2 squared times 3 squared times 5 squared, and every exponent is 2. The root is 2 times 3 times 5, which is 30, and the Square Root Calculator confirms it. A bigger example is 7,056, which equals 16 times 9 times 49. That gives 2 to the fourth times 3 squared times 7 squared, with exponents 4, 2 and 2, all even. The root is 4 times 3 times 7, which is 84. Checking by squaring: 84 times 84 is 7,056.

The same idea proves the square root of 2 is irrational

Suppose the square root of 2 were a fraction a over b. Then a squared would equal 2 times b squared. Count the exponent of the prime 2 on each side. In a squared, the exponent of 2 is even, because squaring doubles exponents. In 2 times b squared, it is one plus an even number, which is odd. The same number cannot have both an even and an odd exponent of 2, because the factorization is unique, so no such fraction exists. This is the argument behind the 72 case: the leftover single factor of 2 is the reason the root of 72 contains the irrational root of 2 and never settles into an integer.

A related fact about divisors

The number of positive divisors of an integer is the product of one more than each exponent. For 144, that is 5 times 3, which is 15. Because 15 is odd, 144 has an odd number of divisors. A positive integer has an odd count of divisors exactly when it is a perfect square, since divisors pair up as d and n divided by d, and the only unpaired one is the square root. For 72, the count is 4 times 3, which is 12, an even number, consistent with 72 not being a square.

Limits of the examples

The cases here are small integers with factorizations that are easy to do by hand. They make no claim about measurements, where a square root of a measured quantity is an approximation and exactness has no meaning. For very large integers, factoring is hard, and a direct test, computing the integer square root and squaring it, is the practical route. The prime exponent rule is still the reason that test works. The worksheet uses it to explain why the answers for 144 and 72 differ, and to give you a way to check by reasoning rather than by trusting a display. When you want a quick screen on a mid-sized integer, strip out small prime factors first. Divide by 2 until the number is odd, then by 3, 5 and 7 where they divide it, and track the count of each. If any count is odd, stop: the number is not a square. If every count is even and the remaining cofactor is 1, it is a square. A leftover cofactor greater than 1 needs a separate test, since it could still be a square of a larger prime.

Reproduce the checks

Integer-root control

Open the Square Root Calculator and enter:

Value
144

Expected output:

result

12

All prime exponents are even.

Square the candidate

Open the Power calculator and enter:

Base
12
Exponent
2

Expected output:

Power

144

The exact squared candidate reproduces the integer.

Non-square factorization

Open the Basic calculator and enter:

First number
8
Operation
multiply
Second number
9

Expected output:

Result

72

The factor of eight contributes an odd exponent of two.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks