A positive integer is called squarefull (or powerful) if every prime that divides it divides it at least twice. Thus is squarefull, whereas
is not. The first few squarefull numbers are
How many of these numbers are there up to ? Since every square is squarefull, there are at least
of them. Cubes, fifth powers, and products such as
give other examples. It is not immediately obvious whether these additional numbers change the order of magnitude or merely the constant in front of
. Write
for the number of positive integers not exceeding
in which each prime occurs either zero times or at least
times, where
is fixed. Erdős and Szekeres obtained
For squarefull numbers, Bateman and Grosswald (1958) obtained the more precise formula
The first constant is approximately and the second is approximately
. The contribution of the nonsquares is therefore quite substantial. The negative second term is also substantial at moderate values of
. There are several interesting questions here. Why is the first exponent
, and where does the exponent
come from? Why does the second term involve a value of the zeta function at a point where its defining series does not converge? Why does the exponent
appear in the error term? Finally, how much of the asymptotic survives if we count the numbers in a short interval rather than all the way from 1 to
? We shall see that each question is naturally associated with a different part of a single elementary factorization.
Elementary Estimates
Every squarefull number can be written uniquely as Indeed, an even prime exponent is of the form
, and an odd prime exponent occurring in a squarefull number is of the form
. The prime belongs to
precisely in the latter case. The remaining exponents determine
. For example,
,
, and
. There is no requirement that
and
be relatively prime.
For each fixed squarefree , we are counting the squares multiplied by
. The number of them up to
is simply
. Thus
Replacing each integer part by its argument costs at most 1. There are at most summands. Extending the resulting sum to infinity costs at most
So we have,
The remaining series is particularly simple, since a squarefree integer is a product of distinct primes:
We have therefore proved the first asymptotic formula, including its constant. The argument is useful to keep in mind: for small , the integers
form relatively dense sequences; for large
, their contribution decreases rapidly. It is the convergence of the sum over
that makes the leading order
rather than something larger.
The general case is similar. For a prime exponent , write
with
. If
, put the entire exponent into an
th power. Otherwise write
. This gives a unique decomposition
where the are squarefree and pairwise relatively prime. Again, they need not be relatively prime to
. For cube-full numbers, the decomposition is
with
squarefree and coprime. The exponent
, for instance, is
, while
is
. Put
, with these restrictions understood. Counting
first gives
. The number of allowed tuples with
is
: just count
first and sum the convergent series with exponents
for
. Partial summation gives
. The floor errors and the extension of the sum therefore both cost
. At each prime, we may put it in none of the
, or in exactly one of them. Hence the leading constant is
This proves the Erdős–Szekeres estimate. Notice how little is needed to obtain it: the division algorithm on prime exponents, a convergent series, and a bound on the total number of floor errors.
Second term
Let be the indicator of the
-full integers. It is multiplicative, since relatively prime integers have disjoint sets of prime divisors. Hence, in the region of absolute convergence
,
Setting gives, for example, the convergent sum of reciprocals of the powerful integers:
For , the decomposition into squares and cubes yields the particularly pleasant identity
Suppose we are looking for a second term in the counting function. This identity suggests precisely where to look. Perron’s formula expresses the counting function, with the usual convention at an integer endpoint, in terms of an integral of . The pole at
has residue
The pole at similarly contributes
. Thus the two poles predict exactly the two terms in the theorem. The possible singularities from zeros of the denominator occur at
, where
. This is a useful way of discovering the form of the answer, but it is not yet a proof of the error estimate. A contour shift must also control the integral at large imaginary parts and the truncation of Perron’s formula. In particular, shifting a contour to
does not in itself establish a little-oh error of order
. We shall instead derive the two terms by a real-variable counting argument. This will also explain the negative sign of the second coefficient.
The elementary identity follows by checking prime powers. If
, the corresponding local sum contains
; otherwise it is 1. Substituting
gives
where
Unlike the original count, counts representations, not distinct integers. For example, 64 is counted twice, as
and
. Möbius inversion is exactly what removes the extra representations. The advantage of this new sum is that there is no squarefree condition in it. We have separated the problem into a lattice-point problem and a sum involving the Möbius function. The same decomposition appears in the Dirichlet series: the coefficients of
count representations, while those of
are supported on sixth powers, with value
at
. The manipulation of Dirichlet series and the elementary manipulation of the sums are precisely the same calculation.
Dirichlet Hyperbola Method:
We would like to estimate the number of integer points in the region . Counting by either coordinate alone gives a good approximation near one of the axes, but a large number of floor errors near the other. To avoid this, put
. If both coordinates exceed
, their product
exceeds
. Conversely, the entire square
lies in our region. Thus, writing
, we have the exact formula
This time there are only floor errors. The two sums, however, have quite different behavior. For
, the partial sum of
approaches a finite limit. For
, it grows like
, but after subtracting this growing term there is again a finite limit. Euler summation gives, for fixed real
,
For , this formula can itself be used to define the continued zeta value: it is the limit of the partial sum minus
. No complex contour is needed to understand the constant here. Applying the formula twice gives smooth contributions
and
, together with the terms
At , this expression is
. Its first derivative with respect to
also vanishes at
, and its second derivative is bounded for
as
. Thus using the integer
rather than
changes this expression by only
.
It is worth keeping the floor errors rather than just bounding them. Write . Then
. The two contributions of
cancel, up to
, the two half-endpoint corrections from Euler summation. We obtain
where
In particular, . We have already recovered the second term, with an elementary argument. This explains the sign without appealing to the functional equation.
Bounding every floor error separately throws away the fact that has mean zero over a period. If the fractional parts of the values of
and
are reasonably distributed in
, the errors should cancel to some extent. This is the point at which exponential sums enter the problem. Write
. The Fourier series of the sawtooth function away from the integers is
. Truncating it at height
produces an error bounded by a constant times
, interpreted as 1 at integers. The error cannot simply be ignored: points near integers are precisely the points of interest. A standard trigonometric approximation to the sawtooth (with majorants for the error) gives the following convenient estimate for any real phase
on a block of length at most
:
Here and below a block may be truncated at its upper endpoint. Let us see what the classical van der Corput second derivative estimate alone gives. For , put
. On the block
, the magnitude of the second derivative of
is comparable to
. The second derivative bound gives
We use these two standard estimates as inputs; the purpose here is to see how the exponents arise. Summing over gives the bound
. Balancing the first two terms suggests taking
when this is at least 1. The bound becomes
For the first sawtooth sum, , the first expression is
. For
, use the trivial bound
; above this threshold the displayed bound is
. For the second sum,
, it is
. We can again use the trivial estimate below
. In both cases
throughout the range, and the chosen
is at least a constant for
. Adding the dyadic blocks, we obtain the useful classical bound
This already saves a fixed power over . More refined exponential sum estimates improve it. Shiu (1984), for instance, gave an exponent threshold of
for this asymmetric divisor problem. There is a substantial literature on these estimates, but for the global squarefull counting problem we do not need such a sharp exponent. Any bound
with a fixed
will suffice for the next calculation.
We return to the exact identity . Substituting the two main terms of
, and writing
, gives
The first two sums may be extended to infinity, with errors and
, respectively. Both are
. For the last sum we use the bound just obtained, with any fixed
. Taking absolute values yields
Thus the error in is
. Notice an important point: if we had used only
, the sum over
would be harmonic and we would obtain
. It is the strict inequality
that removes the logarithm. The same calculation explains why improving
further does not by itself improve the power of
in this final bound. For
, the argument
is bounded. There is no large parameter in the divisor problem in this range. But there are of order
such values of
. The cancellation needed here is of a different kind: it is cancellation of the Möbius function itself.
The prime number theorem gives . We can use this to obtain the little-oh error of Bateman and Grosswald. Partial summation first gives
for
, so the two tails in the main terms contribute only
. For the remaining sum, fix a small positive number
. On the range
, the bound for the divisor error gives
For , write the weight as
. As a function of
on the fixed interval
, it is a step function minus two smooth functions, hence of bounded variation. Indeed,
has only finitely many jumps on
. By partial summation and the bound
, the weighted Möbius sum on this range is
. First let
tend to infinity with
fixed, then let
tend to zero. Since
, the entire error is
. We have proved
This proof uses the prime number theorem and standard estimates for exponential sums. It is instructive to see where these two inputs are used. The exponential sum estimate handles the rounding errors in counting representations. The prime number theorem handles the sixth-power terms introduced by the squarefree condition. These are two different cancellation problems.
There is another reason that the exponent is important. Suppose we could prove a fixed power saving in the error of the global counting function. What would that tell us about the Dirichlet series? For
, partial summation gives
Write , with
and
. If
, the identity
continues the right side analytically to , apart from the two indicated poles. Thus a zero
of
with
would have to be canceled, with sufficient multiplicity, by a numerator zero at
or
. Bateman and Grosswald noted the connection with zeros of Riemann zeta function: obtaining a fixed exponent below
in the global error would imply a fixed zero-free strip
for some
. The full zero-free-strip implication requires an argument concerning cancellation of zeros; the preceding integral alone gives only the necessary cancellation condition, not the entire implication. We refer to the classical literature for this deeper assertion. In contrast, the prime number theorem gives cancellation sufficient for the little-oh bound, without providing a fixed power saving.
For , the same idea of separating the simplest products from the rest is useful. Put
. The local factor after removing
is
One can check this by multiplying the finite product and comparing coefficients. All powers from to
disappear immediately. The coefficients at
and
also cancel; the coefficient at
is -1. In the special case
the expression is exactly
. For
, the local calculation is particularly transparent:
. Consequently,
where the Euler product for has local factors
and an absolutely convergent Dirichlet series in
. This explains the appearance of the generalized divisor problem
If , the identity of coefficients gives the exact convolution
. The possible main terms suggested by the poles of
are
for
, with
The leading coefficient agrees with the earlier elementary Euler product. To prove an asymptotic including all the smaller terms, however, one must establish an error estimate strong enough to distinguish them; the pole calculation alone does not do this. The same difficulties occur as in the squarefull problem, now with several variables in the divisor sum and a more complicated arithmetic convolution.
Short Intervals:
We have counted all squarefull numbers up to . Let us now ask how many lie in
, where
. The global asymptotic suggests
Indeed, Taylor’s formula gives
The second term is smaller than the first by a factor of order . It is convenient to write
, so that the expected count is
. The parameter
is essentially the number of successive square gaps that the interval spans. Near
, the distance between successive squares is approximately
. The scale
is therefore natural, not just a consequence of differentiating the main term.
We cannot expect a relative asymptotic uniformly when stays bounded. The count is an integer, and at this scale the predicted main term itself is bounded. In fact, Shiu (1980) proved the existence of infinitely many intervals between successive squares containing no squarefull integer strictly between the endpoints. On the other hand, an interval of length a little more than
necessarily contains a square. Thus existence and asymptotic counting are two different problems. What does the global theorem already tell us? Subtracting the two asymptotic formulas gives
For with
, the main term dominates all the errors. Even
is allowed by the little-oh estimate. But in terms of the original length, this means
(at the endpoint with the stated normalization), not
. Can we count in substantially shorter intervals? To do so, we should not estimate the two global errors separately. There is more information in the difference of the original sums. From our exact convolution identity,
Choose a parameter between 1 and
. For
, we may apply the asymptotic for
at both endpoints. If
for some fixed
, the total error on this range is at most
Writing , the first main term from the small-
range is
. Extending the coefficient sum to infinity costs
, and the second main term contributes
. Thus the small-
contribution is
The idea is to stop the use of the global divisor estimate before reaching the troublesome range . Instead, we bound the large-
contribution by counting the triples directly in the thin region
Here we may take absolute values of . If a triple occurs, then
. For each fixed pair
, the allowed values of
lie in an interval of length
The number of integers in this interval is at most its length plus 1. Put . Since
, partial summation gives
. Summing the length bound and the 1 over the pairs, we obtain
Combining the two ranges gives the useful estimate
For instance, taking gives a sufficient condition
for a relative asymptotic (with
). Since
, this already goes below the threshold
. With the bound
from above, the exponent can be taken arbitrarily close to
. This is not the optimal choice of
, nor is this the best known result. But it demonstrates the idea with very little additional analysis. Better estimates for
are now useful: they reduce the small-
error, while the large-
range is handled by a separate counting argument. We are not asking for improved cancellation of the Möbius function in a global sum.
To go further, we should improve the bound for the large- range. The estimate just given replaces every integer-part error by 1. Yet the relevant intervals for
are often very short, and most of them contain no integer at all. The problem is to show that their endpoints do not cluster too much near integers. For an integer cutoff
, define
Summing over first gives the exact formula
The required large- count is
. Replacing the integer part by its argument, minus
and the sawtooth function, and using partial summation on the smooth terms reduces the remaining issue to controlling sums of the form
This is a two-variable version of the sum we met in the asymmetric divisor problem. Trigonometric approximation now leads to exponential sums
where is the intersection of a dyadic rectangle with the region
. Alternatively, if one applies the hyperbola formula directly to the small-
convolution, one encounters the two phases
These expressions are not arbitrary. Every exponent comes from solving the original inequality for one of its variables. The choice of which variable to sum over first can change the exponential sums considerably. The art is to choose the decomposition and the ranges in which each estimate is most effective. In his 1984 paper, Shiu applied a method of Roth, using the divisor error exponent together with two-dimensional exponential sum estimates. If is the infimum of the admissible exponents for
, his argument gives the short-interval threshold
where the interval length is and the asymptotic holds for fixed
with
. Using his bound for
, he obtained
. The detailed exponent-pair estimates are beyond the scope of this post, but the preceding decomposition explains where they are used.
References:
1. P. T. Bateman and E. Grosswald. On a theorem of Erdos and Szekeres.
2. Shiu, P., On square-full integers in a short interval, Glasgow Math.J., 25 (1984), 127-134.
3. Liu Hongquan, On Square-full Numbers in Short Intervals
4. Heath-Brown, Square-full numbers in short intervals