Neha Patil (Editor)

Square free integer

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, a square-free, or quadratfrei (from German language) integer, is an integer which is divisible by no other perfect square than 1. For example, 10 is square-free but 18 is not, as 18 is divisible by 9 = 32. The smallest positive square-free numbers are

Contents

1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 26, 29, 30, 31, 33, 34, 35, 37, 38, 39, ... (sequence A005117 in the OEIS)

Square-free factors of integers

The radical of an integer is its largest square-free factor. An integer is square-free if and only if it is equal to its radical.

Any arbitrary positive integer n can be represented in a unique way as the product of a powerful number and a square-free integer, which are coprime. The square-free factor is the largest square-free divisor k of n that is coprime with n/k.

Any arbitrary positive integer n can be represented in a unique way as the product of a square and a square-free integer :

n = m 2 k

In this factorization, m is the largest divisor of n such that m2 is a divisor of n.

Equivalent characterizations

Every prime number is square-free.

A positive integer n is square-free if and only if in the prime factorization of n, no prime factor occurs with an exponent larger than one. Another way of stating the same is that for every prime factor p of n, the prime p does not evenly divide n / p. Also n is square-free if and only if in every factorization n = ab, the factors a and b are coprime. An immediate result of this definition is that all prime numbers are square-free.

A 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.

A 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.

A positive integer n is square-free if and only if μ(n) ≠ 0, where μ denotes the Möbius function.

A positive integer n is squarefree if and only if

d 2 n μ ( d ) = 1.

This results from the properties of Möbius function, and the fact that this sum is equal to d m μ ( d ) , where m is the largest divisor of n such that m2 divides n.

Dirichlet generating function

The Dirichlet generating function for the square-free numbers is

ζ ( s ) ζ ( 2 s ) = n = 1 | μ ( n ) | n s where ζ(s) is the Riemann zeta function.

This is easily seen from the Euler product

ζ ( s ) ζ ( 2 s ) = p ( 1 p 2 s ) ( 1 p s ) = p ( 1 + p s ) .

Distribution

Let Q(x) denote the number of square-free integers between 1 and x. 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 events are independent, we obtain the approximation:

Q ( x ) x p   prime ( 1 1 p 2 ) = x p   prime 1 ( 1 1 p 2 ) 1 Q ( x ) x p   prime 1 1 + 1 p 2 + 1 p 4 + = x k = 1 1 k 2 = x ζ ( 2 )

This argument can be made rigorous, and a very elementary estimate yields

Q ( x ) = x ζ ( 2 ) + O ( x ) = 6 x π 2 + O ( x )

(see pi and big O notation) since we use the above characterization to obtain

Q ( x ) = n x d 2 n μ ( d ) = d μ ( d ) n x , d 2 n 1 = d μ ( d ) x d 2

and, observing that the last summand is zero for d > x , we have

Q ( x ) = d x μ ( d ) x d 2 = d x x μ ( d ) d 2 + O ( d x 1 ) = x d x μ ( d ) d 2 + O ( x ) = x d μ ( d ) d 2 + O ( x d > x 1 d 2 + x ) = x ζ ( 2 ) + O ( x ) .

By exploiting the largest known zero-free region of the Riemann zeta function, due to Ivan Matveyevich Vinogradov, N.M. Korobov and Hans-Egon Richert, the maximal size of the error term has been reduced by Arnold Walfisz and we have

Q ( x ) = 6 x π 2 + O ( x 1 / 2 exp ( c ( log x ) 3 / 5 ( log log x ) 1 / 5 ) ) .

for some positive constant c. Under the Riemann hypothesis, the error term can be further reduced to yield

Q ( x ) = x ζ ( 2 ) + O ( x 17 / 54 + ε ) = 6 x π 2 + O ( x 17 / 54 + ε ) .

The asymptotic/natural density of square-free numbers is therefore

lim x Q ( x ) x = 6 π 2 = 1 ζ ( 2 )

where ζ is the Riemann zeta function and 1/ζ(2) is approximately 0.6079. 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

Q ( x , n ) = x k = 1 1 k n + O ( x n ) = x ζ ( n ) + O ( x n ) .

Since a multiple of 4 must have a square factor 4=22, it cannot occur that four consecutive integers are all square-free. On the other hand, there exist infinitely many integers n for which 4n +1, 4n +2, 4n +3 are all square-free. Otherwise, observing that 4n and at least one of 4n +1, 4n +2, 4n +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

Q ( x ) x 2 + C for some constant C,

contrary to the above asymptotic estimate for Q ( x ) .

There exist sequences of consecutive non-square-free integers of arbitrary length. Indeed, if n satisfies a simultaneous congruence

n i ( mod p i 2 ) ( i = 1 , 2 , , l )

for distinct primes p 1 , p 2 , , p l , then each n + i is divisible by pi 2. On the other hand, the above-mentioned estimate Q ( x ) = 6 x / π 2 + O ( x ) implies that, for some constant c, there always exists a square-free integer between x and x + c x for positive x. Moreover, an elementary argument allows us to replace x + c x by x + c x 1 / 5 log x . The ABC conjecture would allow x + x o ( 1 ) .

Encoding as binary numbers

If we represent a square-free number as the infinite product

n = 0 ( p n + 1 ) a n , a n { 0 , 1 } ,  and  p n  is the  n th prime ,

then we may take those a n and use them as bits in a binary number with the encoding

n = 0 a n 2 n .

The square-free number 42 has factorization 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 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 20 · 31 · 50 · 71 · 110 · 131 = 3 × 7 × 13 = 273.

Thus the in-order encodings of the square-free integers are a permutation of the set of all integers.

(See sequences A019565, A048672 and A064273 in the OEIS.)

Erdős squarefree conjecture

The central binomial coefficient

( 2 n n )

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

The multiplicative function c o r e t ( n ) is defined to map positive integers n to t-free numbers by reducing the exponents in the prime power representation modulo t:

c o r e t ( p e ) = p e mod t .

The value set of c o r e 2 , in particular, are the square-free integers. Their Dirichlet generating functions are

n 1 c o r e t ( n ) n s = ζ ( t s ) ζ ( s 1 ) ζ ( t s t ) .

OEIS representatives are  A007913 (t=2),  A050985 (t=3) and  A053165 (t=4).

References

Square-free integer Wikipedia