Squarefree — Definition, Formula & Examples
Squarefree is a property of a positive integer meaning no perfect square (other than 1) divides it evenly. For example, 30 is squarefree because no square like 4, 9, 16, or 25 divides 30, while 12 is not squarefree because 4 divides 12.
A positive integer is squarefree if and only if, for every prime , the exponent of in the prime factorization of is at most 1. Equivalently, is squarefree if there is no integer such that .
How It Works
To test whether is squarefree, find its prime factorization. If every prime appears exactly once, the number is squarefree. If any prime appears with exponent 2 or higher, it is not. Alternatively, you can check divisibility by small perfect squares: up to . Every positive integer can be uniquely written as where is squarefree, which separates out the "square part" from the squarefree part.
Worked Example
Problem: Determine whether 180 is squarefree.
Step 1: Find the prime factorization of 180.
Step 2: Check the exponents. The prime 2 appears with exponent 2, and the prime 3 also appears with exponent 2. Since at least one prime has an exponent greater than 1, the number is not squarefree.
Step 3: Extract the squarefree part. Write 180 as a product of a perfect square and a squarefree integer.
Answer: 180 is not squarefree. Its squarefree part is 5, and its square part is .
Why It Matters
Squarefree integers appear throughout number theory and algebra. In quadratic field theory, each quadratic field is uniquely determined by a squarefree integer . The density of squarefree numbers among the positive integers is , a result tied to the Riemann zeta function.
Common Mistakes
Mistake: Confusing squarefree with prime. Students sometimes assume squarefree numbers must be prime.
Correction: A squarefree number can be composite — it just cannot have any repeated prime factor. For instance, is squarefree but not prime.
