Counting distinct prime factors in integer windows around squares

Gerhard Paseman asked whether a window of \(2c+1\) consecutive integers centred at \(k\) can collectively have more than \(2c+1\) distinct prime divisors when \(c^2<k\le(c+1)^2\). The answer is no. For every integer \(k\ge2\), take \(c=\lceil\sqrt{k}\rceil-1\). Then \[\omega\!\left(\prod_{i=-c}^{c}(k+i)\right)\le 2c+1, \] where \(\omega(n)\) counts each prime divisor of \(n\) once and both endpoints of the window are included. A square centre \(k=d^2\), with integer \(d\ge2\), has radius \(d-1\). At \(k=1\), allowing \(c=0\) gives the window \(\{1\}\) and \(\omega(1)=0\). Gerhard Paseman, West Coast Number Theory 2024, Problem 024:06, PDF p. 2 A single integer comparison can certify every centre with the same radius. Set \(L=2c+1\) and \(M_c=c^2+3c+1\), the largest possible right endpoint for radius \(c\). Let \(p_i\) be the \(i\)-th prime and \(\pi(L)\) the number of primes at most \(L\). Define \[D_L=\prod_{\pi(L)<i\le L+1}p_i. \] If \(D_L>\binom{M_c}{L}\), the bound holds throughout that band of centres. For a window ending at \(M=k+c\), its product is \(L!\binom{M}{L}\). Any prime divisor greater than \(L\) must divide the binomial coefficient. A violation would require at least \(L+1-\pi(L)\) such primes, whose product is at least \(D_L\), while \(\binom{M}{L}\le\binom{M_c}{L}\). The same test applies to any window of \(L\) consecutive positive integers with right endpoint at most an integer \(B\ge L\), using \(\binom{B}{L}\) in the comparison. This uses the prime-product comparison of Erdős and Selfridge. Erdős and Selfridge, Theorem 1 and its proof, pp. 490–491 The comparison holds for every \(c\ge1000\). With natural logarithms, the bounds used for \(L=2c+1\ge2000\) are \[\begin{aligned} \frac{\log D_L}{L}&>\log L-1+\log\log L-\frac{1}{\sqrt L\log 2}-\frac{2}{\log L}-\frac{51}{50},\ \frac{\log\binom{M_c}{L}}{L}&<\log L+1-\log 4+\log(1+4/L). \end{aligned} \] The first right-hand side exceeds the second throughout this range. The lower bound uses the established estimates \(p_i>i\log i\) and \(\sum_{p\le x}\log p<1.01624x<(51/50)x\), where the sum runs over primes at most \(x\). Rosser and Schoenfeld, eq. (3.12), printed p. 69 and Theorem 9, eq. (3.32), printed p. 71 For \(1\le c\le999\), sieve the primes through \(20{,}000\), which supplies the first \(2{,}000\) primes, and compute the comparison in exact integers. The strict inequality certifies 971 bands containing 998,613 centres. The individual scan takes exactly the 28 bands with \(D_L\le\binom{M_c}{L}\). For each integer \(k\) in those bands, take the union of the prime factors of the integers from \(k-c\) to \(k+c\). To factor each integer, divide out each sieved prime in increasing order while its square is at most the current remainder, recording each divisor once. Record any final remainder greater than one as a prime. The sieve extends beyond the square root of the largest integer that can occur, \(1{,}000{,}999\). The scan finds at most \(L\) distinct primes in each of the 1,386 windows it checks. Together the two tests cover every centre from \(2\) through \(10^6\). The bound is attained at \(c=3, k=14\), whose window has prime divisors \(\{2,3,5,7,11,13,17\}\), and at the square centre \(c=3, k=16\), whose window has prime divisors \(\{2,3,5,7,13,17,19\}\). The strict band comparison permits equality in the original bound, so these examples establish attainment and the full classification of equality remains open in this treatment.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-04
DOI
https://doi.org/10.5281/zenodo.24804222
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Counting distinct prime factors in integer windows around squares

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

Counting distinct prime factors in integer windows around squares

Zixuan He
preprint en

Abstract

Gerhard Paseman asked whether a window of \(2c+1\) consecutive integers centred at \(k\) can collectively have more than \(2c+1\) distinct prime divisors when \(c^2<k\le(c+1)^2\). The answer is no. For every integer \(k\ge2\), take \(c=\lceil\sqrt{k}\rceil-1\). Then \[\omega\!\left(\prod_{i=-c}^{c}(k+i)\right)\le 2c+1, \] where \(\omega(n)\) counts each prime divisor of \(n\) once and both endpoints of the window are included. A square centre \(k=d^2\), with integer \(d\ge2\), has radius \(d-1\). At \(k=1\), allowing \(c=0\) gives the window \(\{1\}\) and \(\omega(1)=0\). Gerhard Paseman, West Coast Number Theory 2024, Problem 024:06, PDF p. 2 A single integer comparison can certify every centre with the same radius. Set \(L=2c+1\) and \(M_c=c^2+3c+1\), the largest possible right endpoint for radius \(c\). Let \(p_i\) be the \(i\)-th prime and \(\pi(L)\) the number of primes at most \(L\). Define \[D_L=\prod_{\pi(L)<i\le L+1}p_i. \] If \(D_L>\binom{M_c}{L}\), the bound holds throughout that band of centres. For a window ending at \(M=k+c\), its product is \(L!\binom{M}{L}\). Any prime divisor greater than \(L\) must divide the binomial coefficient. A violation would require at least \(L+1-\pi(L)\) such primes, whose product is at least \(D_L\), while \(\binom{M}{L}\le\binom{M_c}{L}\). The same test applies to any window of \(L\) consecutive positive integers with right endpoint at most an integer \(B\ge L\), using \(\binom{B}{L}\) in the comparison. This uses the prime-product comparison of Erdős and Selfridge. Erdős and Selfridge, Theorem 1 and its proof, pp. 490–491 The comparison holds for every \(c\ge1000\). With natural logarithms, the bounds used for \(L=2c+1\ge2000\) are \[\begin{aligned} \frac{\log D_L}{L}&>\log L-1+\log\log L-\frac{1}{\sqrt L\log 2}-\frac{2}{\log L}-\frac{51}{50},\ \frac{\log\binom{M_c}{L}}{L}&<\log L+1-\log 4+\log(1+4/L). \end{aligned} \] The first right-hand side exceeds the second throughout this range. The lower bound uses the established estimates \(p_i>i\log i\) and \(\sum_{p\le x}\log p<1.01624x<(51/50)x\), where the sum runs over primes at most \(x\). Rosser and Schoenfeld, eq. (3.12), printed p. 69 and Theorem 9, eq. (3.32), printed p. 71 For \(1\le c\le999\), sieve the primes through \(20{,}000\), which supplies the first \(2{,}000\) primes, and compute the comparison in exact integers. The strict inequality certifies 971 bands containing 998,613 centres. The individual scan takes exactly the 28 bands with \(D_L\le\binom{M_c}{L}\). For each integer \(k\) in those bands, take the union of the prime factors of the integers from \(k-c\) to \(k+c\). To factor each integer, divide out each sieved prime in increasing order while its square is at most the current remainder, recording each divisor once. Record any final remainder greater than one as a prime. The sieve extends beyond the square root of the largest integer that can occur, \(1{,}000{,}999\). The scan finds at most \(L\) distinct primes in each of the 1,386 windows it checks. Together the two tests cover every centre from \(2\) through \(10^6\). The bound is attained at \(c=3, k=14\), whose window has prime divisors \(\{2,3,5,7,11,13,17\}\), and at the square centre \(c=3, k=16\), whose window has prime divisors \(\{2,3,5,7,13,17,19\}\). The strict band comparison permits equality in the original bound, so these examples establish attainment and the full classification of equality remains open in this treatment.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon