1 Introduction
1.1 Motivation
Since the work of Shanks [Reference Shanks14], there have been many investigations of properties of quadratic fields
${\mathbb Q}(\sqrt {a})$
, for
$a\in {\mathcal A}$
, where
${\mathcal A}$
is some sequence of arithmetic interest, including values of exponential polynomials [Reference Banks and Shparlinski1, Reference Luca and Shparlinski12, Reference Patterson, van der Poorten and Williams13, Reference van der Poorten and Williams16, Reference Williams17], coordinates of integer points on algebraic curves [Reference Bilu2–Reference Bilu, Luca, Elsholtz and Grabner4, Reference Dvornicich and Zannier6] and polynomial values [Reference Cutter, Granville and Tucker5, Reference Luca and Shparlinski11]. Kulkarni and Levin [Reference Kulkarni and Levin10] considered statistical properties of quadratic fields
${\mathbb Q}(\sqrt {f(r)})$
generated by polynomials
$f(X) \in {\mathbb Z}[X]$
evaluated at rational points.
To define the quantities of interest, for an integer N, we denote by
${\mathcal F}(N)$
the set of all Farey fractions of order N and their reciprocals, that is,

Given a nonconstant polynomial
$f(X) \in {\mathbb Z}[X]$
of degree d without multiple roots, we denote by
${\mathcal R}_f(N)$
the set of discriminants of the quadratic fields
${\mathbb Q}(\sqrt {f(r)})$
for
$r \in {\mathcal F}(N)$
.
Similarly, define the set
${\mathcal Q}_f(N)$
of discriminants of the quadratic fields
${\mathbb Q}\sqrt {f(n)})$
for
$n\in \{1, \ldots , N\}$
. For linear and quadratic polynomials f, Cutter et al. [Reference Cutter, Granville and Tucker5, Theorems 1A and 1B] gave an asymptotic formula for
$\# {\mathcal Q}_f(N)$
. In the case of quadratic polynomials, Luca and Shparlinski [Reference Luca and Shparlinski11, Theorem 2] improved the saving in the error term of [Reference Cutter, Granville and Tucker5, Theorem 1B] from
$\log N$
to
$N^{-1/3}$
. For polynomials f of higher degree
$d \ge 3$
, an asymptotic formula for
$\# {\mathcal Q}_f(N)$
is only known conditionally under the
$ABC$
-conjecture (see [Reference Cutter, Granville and Tucker5, Theorem 1C]). Several additional results on the distribution of the fields
${\mathbb Q}(\sqrt {f(n)})$
for
$n\in \{1, \ldots , N\}$
have been given in [Reference Luca and Shparlinski12].
Kulkarni and Levin [Reference Kulkarni and Levin10] initiated the study of the distribution of the fields
${\mathbb Q}(\sqrt {f(r)})$
for
$r \in {\mathcal F}(N)$
. In particular, by a special case of [Reference Kulkarni and Levin10, Theorem 1.2],

with some constant
$c(f)> 0$
depending only on f. To show (1.1), Kulkarni and Levin [Reference Kulkarni and Levin10] used a slightly modified result of Stewart and Top [Reference Stewart and Top15, Theorem 2] on squarefree parts of binary forms.
Here we use a different approach similar to that of [Reference Luca and Shparlinski12] to obtain some results about the statistics of individual values of discriminants of the fields
${\mathbb Q}(\sqrt {f(r)})$
for
$r \in {\mathcal F}(N)$
. More precisely, our approach is based on the square-sieve of Heath-Brown [Reference Heath-Brown7] combined with various bounds on double character sums.
1.2 General conventions
We use the Landau symbols ‘O’ and ‘o’ as well as the Vinogradov symbols ‘
$\gg $
’ and ‘
$\ll $
’ with their usual meanings. We recall that
$A = O(B)$
,
$A \ll B$
and
$B \gg A$
are all equivalent to the inequality
$|A| \le c B$
with some constant
$c> 0$
, while
$A=o(B)$
means that
$A/B$
tends to zero. The implied constants in ‘O’, ‘
$\ll $
’ and ‘
$\gg $
’ may depend on the polynomial
$f(X)$
.
For a real
$A\ge 1$
, we write
$a \sim A$
to indicate that
$A \le a \le 2A$
.
1.3 Our results
Given a squarefree integer
$s\ge 1$
and an arbitrary integer
$N \ge 1$
, we let

For a similar quantity

the upper bound

is given in [Reference Luca and Shparlinski12, Theorem 1.1] and a similar argument can easily yield

However, here we take advantage of having essentially a two-dimensional problem and thus we can get savings from each variable (the numerator and denominator of
$r \in {\mathcal F}(N)$
). Hence, we obtain a stronger bound.
Theorem 1.1. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. Then uniformly over squarefree integers
$s\ge 1$
and for any integer
$N \ge 2$
,

We also show that on average over
$s \in \{1, \ldots , S\}$
, a better bound can be obtained provided that S is in a certain specific region with respect to N. More precisely, let us define

Clearly, from Theorem 1.1 and also from the trivial bound,

Similarly, we note that the argument of the proof of [Reference Luca and Shparlinski12, Theorem 1.3] immediately implies

We now obtain a bound which improves (1.2) and (1.3) for
$S \le N^{4/5}.$
Theorem 1.2. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. Then uniformly for
$S\ge 1$
,

In particular, we see from Theorem 1.2 that for all but
$o(N^2)$
elements
$r \in {\mathcal F}(N)$
, the field
${\mathbb Q}(\sqrt {f(r)})$
is of discriminant at least
$N^{4/5+o(1)}$
.
2 Preparations
2.1 Preliminary discussion
In [Reference Kulkarni and Levin10], as in [Reference Cutter, Granville and Tucker5, Reference Luca and Shparlinski11, Reference Luca and Shparlinski12], we observe that studying the fields
${\mathbb Q}(\sqrt {f(r)})$
for
$r \in {\mathcal F}(N)$
is equivalent to studying the squarefree parts of
$f(r)$
. To be more precise, for a rational number
$\rho \ne 0$
, we define the squarefree part
$S(\rho )$
as the smallest positive integer
$s= S(\rho )$
such that
$\rho $
can be written as

with some integers a and b (it is also convenient to set
$S(0) =1$
). In particular,
$S(f(r))$
is the discriminant of
${\mathbb Q}(\sqrt {f(r)})$
and thus

Next, since we are interested in upper bounds, it is convenient to discard the condition
$\gcd (a,b)=1$
. In the definition of
$R_f(s, N)$
, we let r run through
$N^2$
(not necessarily distinct) integer ratios
$a/b$
with
$1\le a,b \le N$
. Hence, we work with

and thus with

Finally, considering the discriminant of f, we note that if
$f(X) \in {\mathbb Z}[X]$
has only simple roots, then for a sufficiently large p (depending on f), it also has only simple roots modulo p. Everywhere below, we assume that our primes are large enough to have this property.
2.2 Character sums modulo primes
Our proofs rest on some bounds for character sums. For an odd integer m, we use

to denote, as usual, the Jacobi symbol of k modulo m. Furthermore, when we write

the value
$f(a/b)$
is computed modulo m and, in particular,
$\gcd (b/\gcd (a,b),m)=1$
.
We also denote

Lemma 2.1. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. For all primes
$ p$
and all integers
$\lambda $
and
$\mu $
with

we have

Proof. Let W be the desired sum. Making the change of variable
$a \mapsto ab$
(which for every fixed b runs through the full residue system modulo p together with a) and then adding the value
$b=0$
to the sum, we obtain

The sum over b vanishes unless
$\lambda a + \mu \equiv 0\pmod p$
, which by (2.1) is possible for only one value of a modulo p. Hence,
$W = O(p)$
.
We also recall the classical Weil bound for pure character sums (see [Reference Iwaniec and Kowalski9, Theorem 11.23]).
Lemma 2.2. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
, having only simple roots. For all primes p,

Lemma 2.2 immediately implies the following corollary.
Corollary 2.3. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. For all primes p,

2.3 Character sums modulo products of two primes
The following result is a direct implication of the Chinese remainder theorem for character sums (see [Reference Iwaniec and Kowalski9, (12.20) and (12.21)]) combined with Lemma 2.1 and Corollary 2.3.
Lemma 2.4. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. Let
$m = \ell p$
for two distinct primes
$\ell , p \sim z$
for some real
$z\ge 1$
. We have

Using the standard reduction between complete and incomplete sums (see [Reference Iwaniec and Kowalski9, Section 12.2]), we obtain the following result.
Lemma 2.5. Let
$f(X) \in {\mathbb Z}[X]$
be a fixed polynomial of degree
$d \ge 2$
having only simple roots. Let
$m = \ell p$
for two distinct primes
$\ell , p \sim z$
for some real
$z\ge 1$
. For any integers
$m \ge N\ge 1$
,

Proof. We use the well-known bound (see, for example, [Reference Iwaniec and Kowalski9, Bound (8.6)])

which holds for any integers
$\lambda $
with
$|\lambda | \le m/2$
and
$N \le m$
. As in [Reference Iwaniec and Kowalski9, Lemma 12.1],

where

Recalling Lemma 2.4, we see that the contribution
$E_1$
to E from the pairs
$(\lambda , \mu )$
with
$\gcd (\lambda , \mu , m) =1$
can be estimated as

Next, by Lemma 2.4, we estimate the contribution
$E_2$
to E from the pairs
$(\lambda , \mu )$
with
$1 < \gcd (\lambda , \mu , m) < m$
as

Since
$\ell $
and p are of the same size and due to the symmetry between
$\lambda $
and
$\mu $
, it is enough to estimate

Handling the sum over
$\lambda $
in a very crude way and discarding the condition
$p \mid \lambda $
,

Hence,

which is dominated by the contribution from
$E_1$
and we obtain

Substituting this bound in (2.2) and using Lemma 2.4 again (this time in the case
$\gcd (\lambda , \mu , m) =m$
), we conclude the proof.
2.4 Large sieve inequality for Jacobi symbols
We also make use of the following bound of character sums ‘on average’ over odd squarefree moduli, which is due to Heath-Brown [Reference Heath-Brown8, Theorem 1].
Lemma 2.6. For all real positive numbers U and Z such that
$UZ\to \infty $
and complex-valued functions
$\psi (s)$
,

3 Proofs of the main results
3.1 Proof of Theorem 1.1
Let us fix some sufficiently large real
$z> 1$
and let
${\mathcal L}_z$
be the set of primes
$\ell \sim z$
. By the prime number theorem,

For a rational number r, we consider the sum

where, as before, r is computed modulo
$\ell $
and
$\Sigma ^*$
means that the primes
$\ell $
dividing the denominator of r are excluded.
If
$r= a/b $
is a perfect square in
${\mathbb Q}$
, that is,
$\sqrt {r} \in {\mathbb Q}$
, then

where
$h = \max \{|a|, |b|\} +1 $
and the term
$O(\log h)$
accounts for
$\ell \mid ab$
. For each
$r \in Q$
with
$S(f(r)) = s$
, we see that
$sf(r)$
is a perfect square. Thus, for such
$r \in {\mathcal F}(N)$
,

provided that

and N is large enough. In particular,

Squaring out, changing the order of summation, and separating the ‘diagonal term’
$N\#{\mathcal L}_z$
corresponding to
$\ell = p$
, we see that

Substituting (3.3) in (3.2) yields

Since
$\ell p \ge z^2> N$
, we can apply Lemma 2.5 to the inner sum in (3.4), which yields

which, after substitution in (3.4), implies

Choosing
$z=N^{2/3} (\log N)^{-1/3} $
(which obviously satisfies (3.1)), yields
$R_f^*(s,N) \ll N^{4/3} (\log N)^{4/3}$
, which, in turn, implies the desired result.
3.2 Proof of Theorem 1.2
We follow the proof of Theorem 1.1. Using (3.2) for each squarefree
$s\in \{1,\ldots ,S\}$
, we write

Instead of (3.3), we have

Applying Lemma 2.5, we obtain

We use the Cauchy inequality to derive from Lemma 2.6 that

as
$z,S \to \infty $
. After substitution in (3.6), the last inequality yields

as
$z, S \to \infty $
(note that all terms containing N get absorbed in
$N^2 S^{1+ o(1)}z^{1+o(1)}$
). Substituting the last inequality in (3.5) gives

as
$z, S \to \infty $
. We now take
$z = N^{2/3} S^{1/6}$
to balance the first and the third terms (for which (3.1) is obviously satisfied). This yields

(since we can always assume that
$S = N^{O(1)}$
).
We remark that by (1.2), the bound is trivial unless
$N^{4/3+ o(1)} S^{5/6} \le N^2$
or
$S \le N^{4/5}$
. However, under this condition, the last term in (3.7) can be dropped, which concludes the proof.