
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a square-free integer (or squarefree integer) is an
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
which is
divisible
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
by no
square number
In mathematics, a square number or perfect square is an integer that is the square (algebra), square of an integer; in other words, it is the multiplication, product of some integer with itself. For example, 9 is a square number, since it equals ...
other than 1. That is, its
prime factorization
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
has exactly one factor for each prime that appears in it. For example, is square-free, but is not, because 18 is divisible by . The smallest positive square-free numbers are
Square-free factorization
Every positive integer
can be factored in a unique way as
where the
different from one are square-free integers that are
pairwise coprime.
This is called the ''square-free factorization'' of .
To construct the square-free factorization, let
be the
prime factorization
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
of
, where the
are distinct
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s. Then the factors of the square-free factorization are defined as
An integer is square-free if and only if
for all
. An integer greater than one is the
th power of another integer if and only if
is a divisor of all
such that
The use of the square-free factorization of integers is limited by the fact that its computation is as difficult as the computation of the prime factorization. More precisely every known
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
for computing a square-free factorization computes also the prime factorization. This is a notable difference with the case of
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s for which the same definitions can be given, but, in this case, the
square-free factorization is not only easier to compute than the complete factorization, but it is the first step of all standard factorization algorithms.
Square-free factors of integers
The
radical of an integer
In number theory, the radical of a positive integer ''n'' is defined as the product of the distinct prime numbers dividing ''n''. Each prime factor of ''n'' occurs exactly once as a factor of this product:
\displaystyle\mathrm(n)=\prod_p
The rad ...
is its largest square-free factor, that is
with notation of the preceding section. An integer is square-free
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
it is equal to its radical.
Every positive integer
can be represented in a unique way as the product of a
powerful number (that is an integer such that is divisible by the square of every prime factor) and a square-free integer, which are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
. In this factorization, the square-free factor is
and the powerful number is
The ''square-free part'' of
is
which is the largest square-free divisor
of
that is coprime with
. The square-free part of an integer may be smaller than the largest square-free divisor, which is
Any arbitrary positive integer
can be represented in a unique way as the product of a
square
In geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
and a square-free integer:
In this factorization,
is the largest divisor of
such that
is a divisor of
.
In summary, there are three square-free factors that are naturally associated to every integer: the square-free part, the above factor
, and the largest square-free factor. Each is a factor of the next one. All are easily deduced from the
prime factorization
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
or the square-free factorization: if
are the prime factorization and the square-free factorization of
, where
are distinct prime numbers, then the square-free part is
The square-free factor such the quotient is a square is
and the largest square-free factor is
For example, if
one has
The square-free part is , the square-free factor such that the quotient is a square is , and the largest square-free factor is .
No algorithm is known for computing any of these square-free factors which is faster than computing the complete prime factorization. In particular, there is no known
polynomial-time
In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
algorithm for computing the square-free part of an integer, or even for
determining whether an integer is square-free. In contrast, polynomial-time algorithms are known for
primality testing. This is a major difference between the arithmetic of the integers, and the arithmetic of the
univariate polynomial
In mathematics, a polynomial is a mathematical expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication and exponentiation to nonnegative integer ...
s, as polynomial-time algorithms are known for
square-free factorization of polynomials (in short, the largest square-free factor of a polynomial is its quotient by the
greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
of the polynomial and its
formal derivative
In mathematics, the formal derivative is an operation on elements of a polynomial ring or a ring of formal power series that mimics the form of the derivative from calculus. Though they appear similar, the algebraic advantage of a formal deriv ...
).
Equivalent characterizations
A positive integer
is square-free if and only if in the
prime factorization
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
of
, no prime factor occurs with an exponent larger than one. Another way of stating the same is that for every prime
factor of
, the prime
does not evenly divide
. Also
is square-free if and only if in every factorization
, the factors
and
are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
. An immediate result of this definition is that all prime numbers are square-free.
A positive integer
is square-free if and only if all
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commu ...
s of
order are
isomorphic
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
, which is the case if and only if any such group is
cyclic. This follows from the classification of
finitely generated abelian groups.
A integer
is square-free if and only if the
factor ring
In ring theory, a branch of abstract algebra, a quotient ring, also known as factor ring, difference ring or residue class ring, is a construction quite similar to the quotient group in group theory and to the quotient space (linear algebra), quo ...
(see
modular arithmetic
In mathematics, modular arithmetic is a system of arithmetic operations for integers, other than the usual ones from elementary arithmetic, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to mo ...
) is a
product of
fields. This follows from the
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
and the fact that a ring of the form
is a field if and only if
is prime.
For every positive integer
, the set of all positive divisors of
becomes a
partially ordered set
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
if we use
divisibility
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a ''Multiple (mathematics), multiple'' of m. An integer n is divis ...
as the order relation. This partially ordered set is always a
distributive lattice
In mathematics, a distributive lattice is a lattice (order), lattice in which the operations of join and meet distributivity, distribute over each other. The prototypical examples of such structures are collections of sets for which the lattice o ...
. It is a
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
if and only if
is square-free.
A positive integer
is square-free
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
, where
denotes the
Möbius function
The Möbius function \mu(n) is a multiplicative function in number theory introduced by the German mathematician August Ferdinand Möbius (also transliterated ''Moebius'') in 1832. It is ubiquitous in elementary and analytic number theory and m ...
.
Dirichlet series
The absolute value of the Möbius function is the
indicator function
In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all other elements to zero. That is, if is a subset of some set , then the indicator functio ...
for the square-free integers – that is, is equal to 1 if is square-free, and 0 if it is not. The
Dirichlet series
In mathematics, a Dirichlet series is any series of the form
\sum_^\infty \frac,
where ''s'' is complex, and a_n is a complex sequence. It is a special case of general Dirichlet series.
Dirichlet series play a variety of important roles in anal ...
of this indicator function is
:
where is the
Riemann zeta function. This follows from the
Euler product
In number theory, an Euler product is an expansion of a Dirichlet series into an infinite product indexed by prime numbers. The original such product was given for the sum of all positive integers raised to a certain power as proven by Leonhard E ...
:
where the products are taken over the prime numbers.
Distribution
Let ''Q''(''x'') denote the number of square-free integers between 1 and ''x'' ( shifting index by 1). For large ''n'', 3/4 of the positive integers less than ''n'' are not divisible by 4, 8/9 of these numbers are not divisible by 9, and so on. Because these ratios satisfy the
multiplicative property (this follows from
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
), we obtain the approximation:
:
This argument can be made rigorous for getting the estimate (using
big O notation
Big ''O'' notation is a mathematical notation that describes the asymptotic analysis, limiting behavior of a function (mathematics), function when the Argument of a function, argument tends towards a particular value or infinity. Big O is a memb ...
)
:
''Sketch of a proof:'' the above characterization gives
:
observing that the last summand is zero for
, it follows that
:
By exploiting the largest known zero-free region of the Riemann zeta function
Arnold Walfisz improved the approximation to
:
for some positive constant .
Under the
Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pure ...
, the error term can be reduced to
:
In 2015 the error term was further reduced (assuming also Riemann hypothesis) to
:
The asymptotic/
natural density of square-free numbers is therefore
:
Therefore over 3/5 of the integers are square-free.
Likewise, if ''Q''(''x'',''n'') denotes the number of ''n''-free integers (e.g. 3-free integers being cube-free integers) between 1 and ''x'', one can show
:
Since a multiple of 4 must have a square factor 4=2
2, it cannot occur that four consecutive integers are all square-free. On the other hand, there exist infinitely many integers ''n'' for which 4''n'' +1, 4''n'' +2, 4''n'' +3 are all square-free. Otherwise, observing that 4''n'' and at least one of 4''n'' +1, 4''n'' +2, 4''n'' +3 among four could be non-square-free for sufficiently large ''n'', half of all positive integers minus finitely many must be non-square-free and therefore
:
for some constant ''C'',
contrary to the above asymptotic estimate for
.
There exist sequences of consecutive non-square-free integers of arbitrary length. Indeed, for every tuple of distinct primes, the
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
guarantees the existence of an that satisfies the simultaneous congruence
:
Each is then divisible by . On the other hand, the above-mentioned estimate
implies that, for some constant ''c'', there always exists a square-free integer between ''x'' and
for positive ''x''. Moreover, an elementary argument allows us to replace
by
The
''abc'' conjecture would allow
.
Computation of
The squarefree integers can be identified and counted in time by using a modified
Sieve of Eratosthenes
In mathematics, the sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit.
It does so by iteratively marking as composite number, composite (i.e., not prime) the multiples of each prime, starting with ...
. If only is desired, and not a list of the numbers that it counts, then () can be used to compute in time. The largest known value of , for , was computed by Jakub Pawlewicz in 2011 using an algorithm that achieves time, and an algorithm taking time has been outlined but not implemented.
Table of ''Q''(''x''), ''x'', and ''R''(''x'')
The table shows how
and
(with the latter rounded to one decimal place) compare at powers of 10.
, also denoted as
.
:
changes its sign infinitely often as
tends to infinity.
The absolute value of
is astonishingly small compared with
.
Encoding as binary numbers
If we represent a square-free number as the infinite product
:
then we may take those
and use them as bits in a binary number with the encoding
:
The square-free number 42 has factorization , or as an infinite product Thus the number 42 may be encoded as the binary sequence
...001011
or 11 decimal. (The binary digits are reversed from the ordering in the infinite product.)
Since the prime factorization of every number is unique, so also is every binary encoding of the square-free integers.
The converse is also true. Since every positive integer has a unique binary representation it is possible to reverse this encoding so that they may be decoded into a unique square-free integer.
Again, for example, if we begin with the number 42, this time as simply a positive integer, we have its binary representation
101010
. This decodes to
Thus binary encoding of squarefree numbers describes a
bijection
In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equival ...
between the nonnegative integers and the set of positive squarefree integers.
(See sequences
A019565,
A048672 and
A064273 in the
OEIS.)
Erdős squarefree conjecture
The
central binomial coefficient
In mathematics the ''n''th central binomial coefficient is the particular binomial coefficient
: = \frac \textn \geq 0.
They are called central since they show up exactly in the middle of the even-numbered rows in Pascal's triangle. The first ...
:
is never squarefree for ''n'' > 4. This was proven in 1985 for all sufficiently large integers by
András Sárközy, and for all integers > 4 in 1996 by
Olivier Ramaré and
Andrew Granville.
Squarefree core
Let us call "''t''-free" a positive integer that has no ''t''-th power in its divisors. In particular, the 2-free integers are the square-free integers.
The
multiplicative function
In number theory, a multiplicative function is an arithmetic function f of a positive integer n with the property that f(1)=1 and
f(ab) = f(a)f(b) whenever a and b are coprime.
An arithmetic function is said to be completely multiplicative (o ...
maps every positive integer ''n'' to the quotient of ''n'' by its largest divisor that is a ''t''-th power. That is,
:
The integer
is ''t''-free, and every ''t''-free integer is mapped to itself by the function
The
Dirichlet generating function of the sequence
is
:
.
See also (''t''=2), (''t''=3) and (''t''=4).
Notes
References
*
*
*
*
{{DEFAULTSORT:Square-Free Integer
Number theory
Integer sequences