The positive integer n is square-free if and only if in the prime factorization of n, no prime number occurs more than once. Another way of stating the same is that for every prime factor p of n, the prime p does not divide n / p. Yet another formulation: n is square-free if and only if in every factorization n=ab, the factors a and b are coprime.
The Dirichlet series that generates the square-free numbers is
This is easily seen from the Euler product
The positive integer n is square-free if and only if all abelian groups of order n are isomorphic, which is the case if and only if all of them are cyclic. This follows from the classification of finitely generated abelian groups.
The integer n is square-free if and only if the factor ring Z / nZ (see modular arithmetic) is a product of fields. This follows from the Chinese remainder theorem and the fact that a ring of the form Z / kZ is a field if and only if k is a prime.
For every positive integer n, the set of all positive divisors of n becomes a partially ordered set if we use divisibility as the order relation. This partially ordered set is always a distributive lattice. It is a Boolean algebra if and only if n is square-free.
The radical of an integer is always square-free.
If Q(x) denotes the number of square-free integers between 1 and x, then
The asymptotic/natural density of square-free numbers is therefore
where ζ is the Riemann zeta function.
Likewise, if Q(x,n) denotes the number of n-free integers between 1 and x, one can show
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, i.e. with the encoding:
e.g. The square-free number 42 has factorisation 2 × 3 × 7, or as an infinite product: 21 · 31 · 50 · 71 · 110 · 130 ·...; Thus the number 42 may be encoded as the binary sequence ...001011 or 11 decimal. (Note that the binary digits are reversed from the ordering in the infinite product.)
Since the prime factorisation of every number is unique, so then 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 become 20 · 31 · 50 · 71 · 110 · 131 = 3 × 7 × 13 = 273.
Among other things, this implies that the set of all square-free integers has the same cardinality as the set of all integers. In turn that leads to the fact that the in-order encodings of the square-free integers are a permutation of the set of all integers.