Square-free integer explained

In mathematics, a square-free integer (or squarefree integer) is an integer which is divisible by no square number other than 1. That is, its prime factorization 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

n

can be factored in a unique way asn=\prod_^k q_i^i,where the

qi

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, letn=\prod_^h p_j^ be the prime factorization of

n

, where the

pj

are distinct prime numbers. Then the factors of the square-free factorization are defined as q_i=\prod_p_j.

An integer is square-free if and only if

qi=1

for all

i>1

. An integer greater than one is the

k

th power of another integer if and only if

k

is a divisor of all

i

such that

qi1.

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 for computing a square-free factorization computes also the prime factorization. This is a notable difference with the case of polynomials 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 is its largest square-free factor, that is

k
style\prod
i=1

qi

with notation of the preceding section. An integer is square-free if and only if it is equal to its radical.

Every positive integer

n

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 this factorization, the square-free factor is

q1,

and the powerful number is
k
style\prod
i=2
i.
q
i

The square-free part of

n

is

q1,

which 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, which is
k
style\prod
i=1

qi.

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 kIn this factorization,

m

is the largest divisor of

n

such that

m2

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 the prime factorization or the square-free factorization: ifn=\prod_^h p_i^=\prod_^k q_i^iare the prime factorization and the square-free factorization of

n

, where

p1,\ldots,ph

are distinct prime numbers, then the square-free part is\prod_ p_i =q_1,The square-free factor such the quotient is a square is \prod_ p_i=\prod_ q_i,and the largest square-free factor is \prod_^h p_i=\prod_^k q_i.

For example, if

n=75600=24 ⋅ 33 ⋅ 52 ⋅ 7,

one has

q1=7,q2=5,q3=3,q4=2.

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 algorithm for computing the square-free part of an integer, or even for determining whether an integer is square-free.[1] In contrast, 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

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

\mu(n)\ne0

, where

\mu

denotes the Möbius function.

Dirichlet series

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

infty
\sum
n=1
|\mu(n)|
ns

=

\zeta(s)
\zeta(2s)

,

where is the Riemann zeta function. This follows from the Euler product
\zeta(s)
\zeta(2s)

=\prodp

(1-p-2s)
(1-p-s)

=\prodp(1+p-s),

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), we obtain the approximation:

\begin{align}Q(x)&x\prodpprime\left(1-

1
p2

\right)=x\prodpprime

1
(1-1)-1
p2

\\ &=x\prodpprime

1
1+1
+1
p4
+ …
p2

=

x
infty
\sum
1
k2
k=1

=

x
\zeta(2)

=

6x
\pi2

.\end{align}

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

Q(x)=

6x
\pi2

+O\left(\sqrt{x}\right).

Sketch of a proof: the above characterization gives

Q(x)=\sumn\leq

\sum
d2\midn

\mu(d)=\sumd\leq

\mu(d)\sum
n\leqx,d2\midn

1=\sumd\leq\mu(d)\left\lfloor

x
d2

\right\rfloor;

observing that the last summand is zero for

d>\sqrt{x}

, it results that

\begin{align}Q(x)&=\sumd\leq\sqrt{x

} \mu(d)\left\lfloor\frac\right\rfloor=\sum_ \frac+O\left(\sum_ 1\right)=x\sum_ \frac+O(\sqrt)\\&=x\sum_ \frac+O\left(x\sum_\frac+\sqrt\right)=\frac+O(\sqrt).\end

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

Q(x)=

6x
\pi2

+O\left(x1/2\exp\left(-c

(logx)3/5
(loglogx)1/5

\right)\right),

for some positive constant .

Under the Riemann hypothesis, the error term can be reduced to[5]

Q(x)=

x
\zeta(2)

+O\left(x17/54+\varepsilon\right)=

6
\pi2

x+O\left(x17/54+\varepsilon\right).

In 2015 the error term was further reduced (assuming also Riemann hypothesis) to[6]

Q(x)=

6
\pi2

x+O\left(x11/35+\varepsilon\right).

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

\limx\toinfty

Q(x)
x

=

6
\pi2

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[7]

Q(x,n)=

x
infty
\sum
1
kn
k=1

+O\left(\sqrt[n]{x}\right)=

x
\zeta(n)

+O\left(\sqrt[n]{x}\right).

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

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\equiv

2}
-i\pmod{p
i

   (i=1,2,\ldots,l)

for distinct primes

p1,p2,\ldots,pl

, then each

n+i

is divisible by pi 2.[8] On the other hand, the above-mentioned estimate

Q(x)=6x/\pi2+O\left(\sqrt{x}\right)

implies that, for some constant c, there always exists a square-free integer between x and

x+c\sqrt{x}

for positive x. Moreover, an elementary argument allows us to replace

x+c\sqrt{x}

by

x+cx1/5logx.

[9] The ABC conjecture would allow

x+xo(1)

.[10]

Table of Q(x), x, and R(x)

The table shows how

Q(x)

and
6
\pi2

x

(with the latter rounded to one decimal place) compare at powers of 10.

R(x)=Q(x)-

6
\pi2

x

, also denoted as

\Delta(x)

.

x

Q(x)

6
\pi2

x

R(x)

1076.10.9
1026160.80.2
103608607.90.1
1046,0836,079.33.7
10560,79460,792.71.3
106607,926607,927.1
1076,079,2916,079,271.020.0
10860,792,69460,792,710.2
109607,927,124607,927,101.922.1
10106,079,270,9426,079,271,018.5
101160,792,710,28060,792,710,185.494.6
1012607,927,102,274607,927,101,854.0420.0
10136,079,271,018,2946,079,271,018,540.3
101460,792,710,185,94760,792,710,185,402.7544.3
1015607,927,101,854,103607,927,101,854,027.076.0

R(x)

changes its sign infinitely often as

x

tends to infinity.[11]

The absolute value of

R(x)

is astonishingly small compared with

x

.

Encoding as binary numbers

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

infty
\prod
n=0

(pn+1

an
)

,an\in\lbrace0,1\rbrace,andpnisthenthprime,

then we may take those

an

and use them as bits in a binary number with the encoding
infty
\sum
n=0

{an}2n.

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

{2n\choosen}

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

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.

coret(n)

maps every positive integer n to the quotient of n by its largest divisor that is a t-th power. That is,
e)
core
t(p

=pe\bmod.

The integer

coret(n)

is t-free, and every t-free integer is mapped to itself by the function

coret.

The Dirichlet generating function of the sequence

\left(coret(n)\right)n\in

is

\sumn\ge

coret(n)
ns

=

\zeta(ts)\zeta(s-1)
\zeta(ts-t)
.

See also (t=2), (t=3) and (t=4).

Notes

  1. Adleman . Leonard M. . McCurley . Kevin S. . Adleman . Leonard M. . Huang . Ming-Deh A. . Open problems in number theoretic complexity, II . 10.1007/3-540-58691-1_70 . 291–322 . Springer . Lecture Notes in Computer Science . Algorithmic Number Theory, First International Symposium, ANTS-I, Ithaca, NY, USA, May 6–9, 1994, Proceedings . 877 . 1994. 978-3-540-58691-3 .
  2. Agrawal. Manindra. Kayal. Neeraj. Saxena. Nitin. 1 September 2004. PRIMES is in P. Annals of Mathematics. en-US. 160. 2. 781–793. 10.4007/annals.2004.160.781. free. 0003-486X. 2123939. 1071.11070.
  3. Richards . Chelsea . Algorithms for factoring square-free polynomials over finite fields . Master's thesis . Simon Fraser University . Canada . 2009 .
  4. Book: Walfisz . A. . Weylsche Exponentialsummen in der neueren Zahlentheorie . 1963 . . Berlin.
  5. 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.
  6. Liu . H.-Q. . On the distribution of squarefree numbers . Journal of Number Theory . 2016 . 159 . 202–222. 10.1016/j.jnt.2015.07.013 . free .
  7. E. H. . Linfoot . Edward Linfoot . C. J. A. . Evelyn . https://gdz.sub.uni-goettingen.de/id/PPN266833020_0030?tify={%22pages%22:[437,%22view%22:%22info%22} On a Problem in the Additive Theory of Numbers ]. Mathematische Zeitschrift . 1929 . 30 . 443–448 . 10.1007/BF01187781 . 120604049 .
  8. Book: Parent . D. P. . Exercises in Number Theory . Springer-Verlag New York . 978-1-4757-5194-9 . 10.1007/978-1-4757-5194-9 . 1984. Problem Books in Mathematics .
  9. Filaseta . Michael . Trifonov . Ognian . 10.1112/jlms/s2-45.2.215 . 2 . Journal of the London Mathematical Society . 1171549 . 215–221 . Second Series . On gaps between squarefree numbers. II . 45 . 1992.
  10. Andrew . Granville . 1998 . ABC allows us to count squarefrees . Int. Math. Res. Not. . 1998 . 19 . 991–1009 . 10.1155/S1073792898000592 . free.
  11. Minoru . Tanaka . Experiments concerning the distribution of squarefree numbers . Proceedings of the Japan Academy, Series A, Mathematical Sciences . 1979 . 55 . 3 . 10.3792/pjaa.55.101 . 121862978 . free .
  12. Sárközy . A. . András Sárközy . 10.1016/0022-314X(85)90017-4 . free . 1 . Journal of Number Theory . 777971 . 70–80 . On divisors of binomial coefficients. I . 20 . 1985.
  13. Ramaré . Olivier . Granville . Andrew. Explicit bounds on exponential sums and the scarcity of squarefree binomial coefficients. Mathematika. 43. 1996. 1. 73–107. 10.1112/S0025579300011608.

References