square-free integer

{{Short description|Number without repeated prime factors}}

File:Composite number Cuisenaire rods 10.svg

File:squarefree_numbers_sieve.svg

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, {{nowrap|1=10 = 2 ⋅ 5}} is square-free, but {{nowrap|1=18 = 2 ⋅ 3 ⋅ 3}} is not, because 18 is divisible by {{nowrap|1=9 = 32}}. The smallest positive square-free numbers are

{{bi|left=1.6|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, ... {{OEIS|id=A005117}}}}

Square-free factorization

Every positive integer n can be factored in a unique way as

n=\prod_{i=1}^k q_i^i,

where the q_i different from one are square-free integers that are pairwise coprime.

This is called the square-free factorization of {{mvar|n}}.

To construct the square-free factorization, let

n=\prod_{j=1}^h p_j^{e_j}

be the prime factorization of n, where the p_j are distinct prime numbers. Then the factors of the square-free factorization are defined as

q_i=\prod_{j: e_j=i}p_j.

An integer is square-free if and only if q_i=1 for all i > 1. An integer greater than one is the kth power of another integer if and only if k is a divisor of all i such that q_i\neq 1.

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 \textstyle \prod_{i=1}^k q_i 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 q_1, and the powerful number is \textstyle \prod_{i=2}^k q_i^i.

The square-free part of n is q_1, 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 \textstyle \prod_{i=1}^k q_i.

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 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 the prime factorization or the square-free factorization: if

n=\prod_{i=1}^h p_i^{e_i}=\prod_{i=1}^k q_i^i

are the prime factorization and the square-free factorization of n, where p_1, \ldots, p_h are distinct prime numbers, then the square-free part is

\prod_{e_i=1} p_i =q_1,

The square-free factor such the quotient is a square is

\prod_{e_i \text{ odd}} p_i=\prod_{i \text{ odd}} q_i,

and the largest square-free factor is

\prod_{i=1}^h p_i=\prod_{i=1}^k q_i.

For example, if n=75600=2^4\cdot 3^3\cdot 5^2\cdot 7, one has q_1=7,\; q_2=5,\;q_3=3,\;q_4=2. The square-free part is {{math|7}}, the square-free factor such that the quotient is a square is {{math|1=3 ⋅ 7 = 21}}, and the largest square-free factor is {{math|1=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, or even for determining whether an integer is square-free.{{cite conference

| last1 = Adleman | first1 = Leonard M.

| last2 = McCurley | first2 = Kevin S.

| editor1-last = Adleman | editor1-first = Leonard M.

| editor2-last = Huang | editor2-first = Ming-Deh A.

| contribution = Open problems in number theoretic complexity, II

| doi = 10.1007/3-540-58691-1_70

| pages = 291–322

| publisher = Springer

| series = Lecture Notes in Computer Science

| title = Algorithmic Number Theory, First International Symposium, ANTS-I, Ithaca, NY, USA, May 6–9, 1994, Proceedings

| volume = 877

| year = 1994| isbn = 978-3-540-58691-3

}} In contrast, polynomial-time algorithms are known for primality testing.{{Cite journal|last1=Agrawal|first1=Manindra|last2=Kayal|first2=Neeraj|last3=Saxena|first3=Nitin|date=1 September 2004|title=PRIMES is in P|journal=Annals of Mathematics|language=en-US|volume=160|issue=2|pages=781–793|doi=10.4007/annals.2004.160.781|doi-access=free|issn=0003-486X|mr=2123939|zbl=1071.11070|url=https://www.cse.iitk.ac.in/users/manindra/algebra/primality_original.pdf}} 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).{{cite thesis |last=Richards |first=Chelsea |title=Algorithms for factoring square-free polynomials over finite fields |type=Master's thesis |publisher=Simon Fraser University |location=Canada |year=2009 |url=http://www.cecm.sfu.ca/CAG/theses/chelsea.pdf}}

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 \mathbb{Z}/n\mathbb{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 \mathbb{Z}/k\mathbb{Z} 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)\ne 0, 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, {{math|{{mabs|μ(n)}}}} is equal to 1 if {{mvar|n}} is square-free, and 0 if it is not. The Dirichlet series of this indicator function is

:\sum_{n=1}^{\infty}\frac

\mu(n)
{n^{s}} = \frac{\zeta(s)}{\zeta(2s)},

where {{math|ζ(s)}} is the Riemann zeta function. This follows from the Euler product

: \frac{\zeta(s)}{\zeta(2s) } =\prod_p \frac{(1-p^{-2s})}{(1-p^{-s})}=\prod_p (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 ({{OEIS2C|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:

:\begin{align}Q(x) &\approx x\prod_{p\ \text{prime}} \left(1-\frac{1}{p^2}\right) = x\prod_{p\ \text{prime}} \frac{1}{(1-\frac{1}{p^2})^{-1}}\\

&=x\prod_{p\ \text{prime}} \frac{1}{1+\frac{1}{p^2}+\frac{1}{p^4}+\cdots} = \frac{x}{\sum_{k=1}^\infty \frac{1}{k^2}} = \frac{x}{\zeta(2)} = \frac{6x}{\pi^2}.\end{align}

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

:Q(x) = \frac{6x}{\pi^2} + O\left(\sqrt{x}\right).

Sketch of a proof: the above characterization gives

:Q(x)=\sum_{n\leq x} \sum_{d^2\mid n} \mu(d)=\sum_{d\leq x} \mu(d)\sum_{n\leq x, d^2\mid n}1=\sum_{d\leq x} \mu(d)\left\lfloor\frac{x}{d^2}\right\rfloor;

observing that the last summand is zero for d>\sqrt{x}, it follows that

{{NumBlk|:|Q(x) = \sum_{d\leq\sqrt{x}} \mu(d)\left\lfloor\frac{x}{d^2}\right\rfloor|{{EquationRef|1}}}}

:\begin{align} \phantom{Q(x)} &= \sum_{d\leq\sqrt{x}} \frac{x\mu(d)}{d^2}+O\left(\sum_{d\leq\sqrt{x}} 1\right)

=x\sum_{d\leq\sqrt{x}} \frac{\mu(d)}{d^2}+O(\sqrt{x})\\

&=x\sum_{d} \frac{\mu(d)}{d^2}+O\left(x\sum_{d>\sqrt{x}}\frac{1}{d^2}+\sqrt{x}\right)

=\frac{x}{\zeta(2)}+O(\sqrt{x}).

\end{align}

By exploiting the largest known zero-free region of the Riemann zeta function Arnold Walfisz improved the approximation to{{cite book |last1=Walfisz |first1=A. |title=Weylsche Exponentialsummen in der neueren Zahlentheorie |date=1963 |publisher=VEB Deutscher Verlag der Wissenschaften |location=Berlin}}

:Q(x) = \frac{6x}{\pi^2} + O\left(x^{1/2}\exp\left(-c\frac{(\log x)^{3/5}}{(\log\log x)^{1/5}}\right)\right),

for some positive constant {{math|c}}.

Under the Riemann hypothesis, the error term can be reduced toJia, Chao Hua. "The distribution of square-free numbers", Science in China Series A: Mathematics 36:2 (1993), pp. 154–169. Cited in Pappalardi 2003, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A Survey on k-freeness]; also see Kaneenika Sinha, "[http://www.math.ualberta.ca/~kansinha/maxnrevfinal.pdf Average orders of certain arithmetical functions]", Journal of the Ramanujan Mathematical Society 21:3 (2006), pp. 267–277.

:Q(x) = \frac{x}{\zeta(2)} + O\left(x^{17/54+\varepsilon}\right) = \frac{6}{\pi^2}x + O\left(x^{17/54+\varepsilon}\right).

In 2015 the error term was further reduced (assuming also Riemann hypothesis) to{{cite journal |last1=Liu |first1=H.-Q. |title=On the distribution of squarefree numbers |journal=Journal of Number Theory |date=2016 |volume=159 |pages=202–222|doi=10.1016/j.jnt.2015.07.013 |doi-access=free }}

:Q(x) = \frac{6}{\pi^2}x + O\left(x^{11/35+\varepsilon}\right).

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

:\lim_{x\to\infty} \frac{Q(x)}{x} = \frac{6}{\pi^2}\approx 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{{cite journal | first1 = E. H. | last1 = Linfoot | author-link1 = Edward Linfoot | first2 = C. J. A. | last2 = Evelyn | title = On a Problem in the Additive Theory of Numbers | journal = Mathematische Zeitschrift | date = 1929 | volume = 30 | pages = 443–448 | doi = 10.1007/BF01187781 | s2cid = 120604049 | url = https://gdz.sub.uni-goettingen.de/id/PPN266833020_0030?tify={%22pages%22:[437],%22view%22:%22info%22} }}

:Q(x,n) = \frac{x}{\sum_{k=1}^\infty \frac{1}{k^n}} + O\left(\sqrt[n]{x}\right) = \frac{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 \frac{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, for every tuple {{math|1=(p1, ..., pl)}} of distinct primes, the Chinese remainder theorem guarantees the existence of an {{mvar|n}} that satisfies the simultaneous congruence

:n\equiv -i\pmod{p_i^2} \qquad (i=1, 2, \ldots, l).

Each {{math|1=n + i}} is then divisible by {{math|1=p{{su|b=i|p=2}}}}.{{cite book | last1= Parent | first1=D. P. |title=Exercises in Number Theory | publisher=Springer-Verlag New York | isbn=978-1-4757-5194-9 | url=https://www.springer.com/book/9780387960630 | doi=10.1007/978-1-4757-5194-9 | year=1984| series=Problem Books in Mathematics }} On the other hand, the above-mentioned estimate Q(x) = 6x/\pi^2 + 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+cx^{1/5}\log x.{{cite journal

| last1 = Filaseta | first1 = Michael

| last2 = Trifonov | first2 = Ognian

| doi = 10.1112/jlms/s2-45.2.215

| issue = 2

| journal = Journal of the London Mathematical Society

| mr = 1171549

| pages = 215–221

| series = Second Series

| title = On gaps between squarefree numbers. II

| volume = 45

| year = 1992}} The abc conjecture would allow x+x^{o(1)}.{{cite journal |last1=Granville |first1=Andrew |author-link=Andrew Granville |year=1998 |title=ABC allows us to count squarefrees |journal=Int. Math. Res. Not. |volume=1998 |issue=19 |pages=991–1009 |doi=10.1155/S1073792898000592 |doi-access=}}

= Computation of {{Math|''Q''(''x'')}} =

The squarefree integers {{Math|≤ x}} can be identified and counted in {{Math|Õ(x)}} time by using a modified Sieve of Eratosthenes. If only {{Math|Q(x)}} is desired, and not a list of the numbers that it counts, then ({{EquationNote|1}}) can be used to compute {{Math|Q(x)}} in {{Math|Õ({{radical|x}})}} time. The largest known value of {{Math|Q(x)}}, for {{Math|1=x = 1036}}, was computed by Jakub Pawlewicz in 2011 using an algorithm that achieves {{Math|Õ(x2/5)}} time,{{cite arXiv |eprint=1107.4890 |last1=Pawlewicz |first1=Jakub |title=Counting Square-Free Numbers |date=2011 |class=math.NT }} and an algorithm taking {{Math|Õ(x1/3)}} time has been outlined but not implemented.{{r|HirschKesslerMendlovic2024|at=§5.5}}

=Table of ''Q''(''x''), {{Sfrac|6|π<sup>2</sup>}}''x'', and ''R''(''x'') =

The table shows how Q(x) and \frac{6}{\pi^2}x (with the latter rounded to one decimal place) compare at powers of 10.

R(x) = Q(x) -\frac{6}{\pi^2}x , also denoted as \Delta(x) .

:

class="wikitable" style="text-align: right"

! x

! Q(x)

! \frac{6}{\pi^2}x

! R(x)

10

| 7

| 6.1

| 0.9

102

| 61

| 60.8

| 0.2

103

| 608

| 607.9

| 0.1

104

| 6,083

| 6,079.3

| 3.7

105

| 60,794

| 60,792.7

| 1.3

106

| 607,926

| 607,927.1

| {{font color|red|−1.3}}

107

| 6,079,291

| 6,079,271.0

| 20.0

108

| 60,792,694

| 60,792,710.2

| {{font color|red|−16.2}}

109

| 607,927,124

| 607,927,101.9

| 22.1

1010

| 6,079,270,942

| 6,079,271,018.5

| {{font color|red|−76.5}}

1011

| 60,792,710,280

| 60,792,710,185.4

| 94.6

1012

| 607,927,102,274

| 607,927,101,854.0

| 420.0

1013

| 6,079,271,018,294

| 6,079,271,018,540.3

| {{font color|red|−246.3}}

1014

| 60,792,710,185,947

| 60,792,710,185,402.7

| 544.3

1015

| 607,927,101,854,103

| 607,927,101,854,027.0

| 76.0

R(x) changes its sign infinitely often as x tends to infinity.{{cite journal |last1=Minoru |first1=Tanaka |title=Experiments concerning the distribution of squarefree numbers |journal=Proceedings of the Japan Academy, Series A, Mathematical Sciences |year=1979 |volume=55 |issue=3 |doi=10.3792/pjaa.55.101 |s2cid=121862978 |url=https://projecteuclid.org/euclid.pja/1195517398|doi-access=free }}

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

:\prod_{n=0}^\infty (p_{n+1})^{a_n}, a_n \in \lbrace 0, 1 \rbrace,\text{ and }p_n\text{ is the }n\text{th prime},

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

:\sum_{n=0}^\infty {a_n}\cdot 2^n .

The square-free number 42 has factorization {{nowrap|2 × 3 × 7}}, or as an infinite product {{nowrap|21 · 31 · 50 · 71 · 110 · 130 ···}} 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 {{nowrap|20 · 31 · 50 · 71 · 110 · 131 {{=}} 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

The central binomial coefficient

: {2n \choose n}

is never squarefree for n > 4. This was proven in 1985 for all sufficiently large integers by András Sárközy,{{cite journal

| last = Sárközy | first = A. | author-link = András Sárközy

| doi = 10.1016/0022-314X(85)90017-4 | doi-access=free

| issue = 1

| journal = Journal of Number Theory

| mr = 777971

| pages = 70–80

| title = On divisors of binomial coefficients. I

| volume = 20

| year = 1985}} and for all integers > 4 in 1996 by Olivier Ramaré and Andrew Granville.{{cite journal

| last1=Ramaré | first1=Olivier | last2=Granville | first2=Andrew

| title=Explicit bounds on exponential sums and the scarcity of squarefree binomial coefficients

| journal=Mathematika

| volume=43

| date=1996

| issue=1

| pages=73–107

| doi=10.1112/S0025579300011608}}

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 \mathrm{core}_t(n) maps every positive integer n to the quotient of n by its largest divisor that is a t-th power. That is,

: \mathrm{core}_t(p^e) = p^{e\bmod t}.

The integer \mathrm{core}_t(n) is t-free, and every t-free integer is mapped to itself by the function \mathrm{core}_t.

The Dirichlet generating function of the sequence \left(\mathrm{core}_t(n) \right)_{n\in \N} is

: \sum_{n\ge 1}\frac{\mathrm{core}_t(n)}{n^s}

= \frac{\zeta(ts)\zeta(s-1)}{\zeta(ts-t)}.

See also {{OEIS2C|A007913}} (t=2), {{OEIS2C|A050985}} (t=3) and {{OEIS2C|A053165}} (t=4).

Notes

{{reflist | refs=

{{Cite journal

|last1=Hirsch

|first1=Dean

|last2=Kessler

|first2=Ido

|last3=Mendlovic

|first3=Uri

|date=2024

|title=Computing {{math|1=π(N)}}: An elementary approach in {{math|1=Õ({{radical|N}})}} time

|url=https://www.ams.org/journals/mcom/0000-000-00/S0025-5718-2024-04039-5/

|journal=Mathematics of Computation

|language=English

|arxiv=2212.09857

|doi=10.1090/mcom/4039

|issn=0025-5718

}}

}}

References

  • {{cite book | last1=Shapiro | first1=Harold N. |title=Introduction to the theory of numbers | publisher=Oxford University Press Dover Publications | isbn=978-0-486-46669-9 | year=1983}}
  • {{cite journal | first1=Andrew | last1=Granville | first2=Olivier | last2=Ramaré | title=Explicit bounds on exponential sums and the scarcity of squarefree binomial coefficients | mr=1401709 | zbl=0868.11009 | year=1996 | journal=Mathematika | volume=43 | pages=73–107 | doi=10.1112/S0025579300011608 | citeseerx=10.1.1.55.8 }}
  • {{cite book |last=Guy | first=Richard K. | author-link=Richard K. Guy | title=Unsolved problems in number theory | publisher=Springer-Verlag |edition=3rd | year=2004 |isbn=978-0-387-20860-2 | zbl=1058.11001 }}
  • {{cite web

|url= http://oeis.org/wiki/Squarefree_numbers

|title= OEIS Wiki

|last=

|first=

|date=

|website=

|publisher=

|access-date= September 24, 2021

|quote=}}

{{Divisor classes}}

{{Use dmy dates|date=September 2019}}

{{DEFAULTSORT:Square-Free Integer}}

Category:Number theory

Category:Integer sequences