# Square-free integer

In mathematics, a **square-free integer** (or **squarefree integer**) is an integer which is divisible by no perfect square other than 1. That is, its prime factorization has exactly one factor for each prime that appears in it. For example, 10 = 2 ⋅ 5 is square-free, but 18 = 2 ⋅ 3 ⋅ 3 is not, because 18 is divisible by 9 = 3^{2}. The smallest positive square-free numbers are

- 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)

## Contents

## Square-free factors of integers[edit]

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 (that is a integer such that is divisible by the square of every prime factor) and a square-free integer, which are coprime. The square-free factor, called the *square-free part* of the number, is the largest square-free divisor *k* of *n* that is coprime with *n*/*k*. The square-free part of an integer may be smaller than the largest square-free divisor.

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

In this factorization, *m* is the largest divisor of *n* such that *m*^{2} is a divisor of *n*.

In summary, there are three square-free factors that are naturally associated to every integer: the square-free part, the above factor k, and the largest square-free factor. Each is a factor of the next one. All are easily deduced from a prime factorization: if

is the prime factorization of n, 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 the square-free part is 7, the square-free factor such that the quotient is a square is 3 ⋅ 7 = 21, and the largest square-free factor is 2 ⋅ 3 ⋅ 5 ⋅ 7 = 210.

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 algorithm for computing the square-free part of an integer, and no known polynomial-time algorithm for determining whether a number is square-free.^{[1]} On the opposite, polynomial-time algorithms are known for primality testing;^{[2]} this is a major difference between the arithmetic of the integers, and the arithmetic of the univariate polynomials, 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 of the polynomial and its formal derivative).^{[3]}

## Equivalent characterizations[edit]

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 any such group is 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** / *n***Z** (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** / *k***Z** 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.

## Dirichlet series[edit]

The absolute value of the Möbius function is the indicator function for the square-free integers – that is, |*μ*(*n*)| is equal to 1 if n is square-free, and 0 if it is not. The Dirichlet series of this indicator function is

where *ζ*(*s*) is the Riemann zeta function. This follows from the Euler product

where the products are taken over the prime numbers.

## Distribution[edit]

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

This argument can be made rigorous for getting the estimate (using big O notation)

*Sketch of a proof:* the above characterization gives

observing that the last summand is zero for , it results that

By exploiting the largest known zero-free region of the Riemann zeta function Arnold Walfisz improved the approximation to^{[4]}

for some positive constant *c*.

Under the Riemann hypothesis, the error term can be further reduced to^{[5]}

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, if *n* satisfies a simultaneous congruence

for distinct primes , then each is divisible by *p _{i }*

^{2}.

^{[6]}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

^{[7]}The ABC conjecture would allow .

^{[8]}

## Encoding as binary numbers[edit]

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 2 × 3 × 7, or as an infinite product 2^{1} · 3^{1} · 5^{0} · 7^{1} · 11^{0} · 13^{0} ··· 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 2^{0} · 3^{1} · 5^{0} · 7^{1} · 11^{0} · 13^{1} = 3 × 7 × 13 = 273.

Thus binary encoding of squarefree numbers describes a bijection between the nonnegative integers and the set of positive squarefree integers.

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

## Erdős squarefree conjecture[edit]

The central binomial coefficient

is never squarefree for *n* > 4. This was proven in 1985 for all sufficiently large integers by András Sárközy,^{[9]} and for all integers > 4 in 1996 by Olivier Ramaré and Andrew Granville.^{[10]}

## Squarefree core[edit]

The multiplicative function is defined
to map positive integers *n* to *t*-free numbers by reducing the
exponents in the prime power representation modulo *t*:

The value set of , in particular, are the square-free integers. Their Dirichlet generating functions are

- .

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

## Notes[edit]

**^**Adleman, Leonard M.; Mccurley, Kevin S. "Open Problems in Number Theoretic Complexity, II".*Lecture Notes in Computer Science*: 9. CiteSeerX 10.1.1.48.4877.**^**Agrawal, Manindra; Kayal, Neeraj; Saxena, Nitin (1 September 2004). "PRIMES is in P".*Annals of Mathematics*.**160**(2): 781–793. doi:10.4007/annals.2004.160.781. ISSN 0003-486X.**^**Richards, C.: Algorithms for factoring square-free polynomials over finite fields. Master thesis, Simon Fraser University, Canada (2009)**^**A. Walfisz. "Weylsche Exponentialsummen in der neueren Zahlentheorie" (VEB Deutscher Verlag der Wissenschaften, Berlin 1963.**^**Jia, Chao Hua. "The distribution of square-free numbers",*Science in China Series A: Mathematics***36**:2 (1993), pp. 154–169. Cited in Pappalardi 2003, A Survey on*k*-freeness; also see Kaneenika Sinha, "Average orders of certain arithmetical functions",*Journal of the Ramanujan Mathematical Society***21**:3 (2006), pp. 267–277.**^**Parent, D. P. (1984).*Exercises in Number Theory*. Problem Books in Mathematics. Springer-Verlag New York. doi:10.1007/978-1-4757-5194-9. ISBN 978-1-4757-5194-9.**^**Michael, Filaseta; Ognian, Trifonov (1992). "On gaps between squarefree numbers II".*J. London Math. Soc*. (2) 45: 215–221.**^**Andrew, Granville (1998). "ABC allows us to count squarefrees".*Int. Math. Res. Notices*.**1998**(19): 991–1009. doi:10.1155/S1073792898000592.**^**András Sárközy. On divisors of binomial coefficients, I. J. Number Theory 20 (1985), no. 1, 70–80.**^**Olivier Ramaré and Andrew Granville. Explicit bounds on exponential sums and the scarcity of squarefree binomial coefficients. Mathematika 43 (1996), no. 1, 73–107

## References[edit]

- Shapiro, Harold N. (1983).
*Introduction to the theory of numbers*. Oxford University Press Dover Publications. ISBN 978-0-486-46669-9. - Granville, Andrew; Ramaré, Olivier (1996). "Explicit bounds on exponential sums and the scarcity of squarefree binomial coefficients".
*Mathematika*.**43**: 73–107. CiteSeerX 10.1.1.55.8. doi:10.1112/S0025579300011608. MR 1401709. Zbl 0868.11009. - Guy, Richard K. (2004).
*Unsolved problems in number theory*(3rd ed.). Springer-Verlag. ISBN 978-0-387-20860-2. Zbl 1058.11001.