1 Introduction
For an odd positive integer n, write
$({\cdot }/{n})$
for the Jacobi symbol; for prime n, the same notation denotes the Legendre symbol. Sun has introduced a number of determinants whose entries are defined by quadratic forms and Legendre or Jacobi symbols, and has posed several conjectures about their arithmetic behaviour (see, for example, [Reference Sun8, Reference Sun9]). For any integer
$n>3$
, put
where
$c,d\in \mathbb Z$
. Sun [Reference Sun9, Conjecture 4.1] conjectured that for odd n,
We prove this conjecture in the following slightly stronger form: in the composite case, neither the parity of n nor any Jacobi-symbol condition is needed.
Determinants of this type lie at the intersection of determinant evaluations, finite-field methods and character sums. Classical related work includes Carlitz’s cyclotomic matrices [Reference Carlitz1] and Chapman’s Legendre-symbol matrices [Reference Chapman2]. Motivated by Sun’s conjectures, Krachun et al. [Reference Krachun, Petrov, Sun and Vsemirnov5] proved several determinant identities involving Jacobi symbols. Further results on determinants connected with quadratic residues and Legendre symbols were obtained, among others, by Wu [Reference Wu12], Wang and Wu [Reference Wang and Wu11], Wu et al. [Reference Wu, She and Ni13], Grinberg et al. [Reference Grinberg, Sun and Zhao3], Luo and Sun [Reference Luo and Sun6], Guo et al. [Reference Guo, Li, Tao and Wei4], and Wang and Sun [Reference Wang and Sun10]. She and Sun [Reference She and Sun7] studied several determinants and congruences associated with powers and Jacobi-symbol values of the binary form
$i^2+cij+dj^2$
, while Zhu and Ren [Reference Zhu and Ren14] treated related prime-modulus subdeterminants. The result proved in this paper concerns Sun’s full
$n\times n$
determinant (1.1) and establishes the modulus
$n^2$
congruence in [Reference Sun9, Conjecture 4.1].
The proof separates naturally into composite and prime moduli. If n is composite, an alternating polynomial determinant gives a product of two Vandermonde factors, and the special value
is divisible by n. Thus, its square divides
$D_n(c,d)$
. If
$n=p$
is prime, the problem is reduced to a rank estimate over
$\mathbb F_p$
. After the polynomial
is reduced as a function on
$\mathbb F_p^2$
, its coefficient matrix has one zero row and two dependent rows. The zero row is the only delicate point; it follows from the involution
$t\mapsto d/t$
and the assumption
$({d}/{p})=-1$
. A Smith normal form argument then lifts the rank defect modulo p to divisibility by
$p^2$
over the integers.
We prove the following result.
Theorem 1.1. Let
$n>3$
be an integer and let
$c,d\in \mathbb Z$
. Suppose either that n is composite, or that n is prime and the Legendre symbol
$({d}/{n})$
is
$-1$
. Then,
2 The composite case
We start with a standard divisibility fact, included to make the argument over
$\mathbb Z$
explicit.
Lemma 2.1. Let R be a commutative ring and assume
is alternating in the following sense: for every
$r<s$
, the polynomial obtained from G by setting
$x_s=x_r$
is zero. Then,
divides G in
$R[x_0,\ldots ,x_{N-1}]$
.
Proof. We argue by induction on N. The assertion is clear for
$N\leq 1$
. Put
$z=x_{N-1}$
and
$S=R[x_0,\ldots ,x_{N-2}]$
. We first prove that
divides G in
$S[z]$
. Suppose that, for some k with
$0\leq k\leq N-2$
, we have already written
with the empty product understood as
$1$
. Since G is zero after the specialisation
$z=x_k$
,
The product
$\prod _{i=0}^{k-1}(x_k-x_i)$
is monic as a polynomial in
$x_k$
and, hence, is a non-zero-divisor. Therefore,
$G_k|_{z=x_k}=0$
, so the monic factor theorem gives
$G_k=(z-x_k)G_{k+1}$
for some
$G_{k+1}\in S[z]$
. Repeating this for
$k=0,1,\ldots ,N-2$
, we obtain
It remains to apply the induction hypothesis to H in the variables
$x_0,\ldots ,x_{N-2}$
. If
$0\leq r<s\leq N-2$
and we set
$x_s=x_r$
, then the corresponding specialisation of G is zero. Since the corresponding specialisation of
$P(z)$
is monic in z, it is a non-zero-divisor; hence, the corresponding specialisation of H is zero. Thus, H is alternating in
$x_0,\ldots ,x_{N-2}$
in the same sense. By induction,
divides H. Multiplying this divisor by
$P(z)$
gives the required Vandermonde product for
$x_0,\ldots ,x_{N-1}$
.
Proposition 2.2. Let
$n>3$
be a composite integer. Then, for all
$c,d\in \mathbb Z$
,
Proof. Put
and consider the polynomial determinant
If two x-variables are made equal, then the corresponding two rows are equal; hence,
$\Phi $
is alternating in
$x_0,\ldots ,x_{n-1}$
in the sense of Lemma 2.1. Applying that lemma over
$\mathbb Z[y_0,\ldots ,y_{n-1}]$
, we find that
divides
$\Phi $
. Thus,
for some
If two y-variables are made equal, then the corresponding two columns of
$\Phi $
are equal. Since
$V(\mathbf x)$
is independent of the y-variables and nonzero in the integral domain under consideration, cancellation shows that
$\Phi _1$
is alternating in
$y_0,\ldots ,y_{n-1}$
in the same sense. Applying Lemma 2.1 again, now over
$\mathbb Z[x_0,\ldots ,x_{n-1}]$
, gives
for some
$H\in \mathbb Z[x_0,\ldots ,x_{n-1},y_0,\ldots ,y_{n-1}]$
, where
Specialising
$x_i=y_i=i$
yields
where
It remains to prove that
$n\mid V_n$
.
Let
$p^\alpha \parallel n$
. The difference
$s-r=p$
occurs for exactly
$n-p$
pairs of integers
$(r,s)$
with
${0\le r<s\le n-1}$
, and hence,
We claim that
$n-p\ge \alpha $
. It suffices to show that the set
has at least
$\alpha +1$
elements. Indeed, the
$\alpha +1$
elements
with the evident omission of
$p^2,\ldots ,p^\alpha $
when
$\alpha =1$
, are distinct elements of this set. Here,
$p^\alpha \leq n$
; and when
$\alpha =1$
, the compositeness of n and the divisibility
$p\mid n$
give
$n\ge 2p\ge p+1$
. Thus,
$n-p+1\ge \alpha +1$
, proving the claim. Therefore,
$\nu _p(V_n)\ge \alpha $
for every prime power
$p^\alpha \parallel n$
. Hence,
$n\mid V_n$
, and (2.1) shows
$n^2\mid D_n(c,d)$
.
3 The prime case
We use the following elementary consequence of the Smith normal form.
Lemma 3.1. Let A be an
$N\times N$
integer matrix, let p be a prime and let
$r\geq 0$
. If
then
$p^r$
divides
$\det \,A$
.
Proof. Let
be a Smith normal form of A, where
$U,V$
are unimodular integer matrices. The reductions of U and V modulo p are invertible over
$\mathbb F_p$
and, hence, multiplication by them preserves rank over
$\mathbb F_p$
. Thus, the rank of A modulo p is the number of diagonal entries
$s_i$
whose residue modulo p is nonzero. If this rank is at most
$N-r$
, then at least r of the
$s_i$
are divisible by p. Consequently,
as required. If some
$s_i=0$
, the conclusion is of course still valid.
Lemma 3.2. Let
$p\geq 3$
be a prime, let
$c,d\in \mathbb Z$
and suppose that
$({d}/{p})=-1$
. In
$\mathbb F_p[T]$
, write
If
$m=(p-3)/2$
, then
Proof. We still write c and d for their residues modulo p, and put
The assumption
$({d}/{p})=-1$
implies
$d\ne 0$
in
$\mathbb F_p$
. Define
Here and in the following, negative powers are interpreted in the multiplicative group
$\mathbb F_p^\times $
. By (3.1),
For any integer k, the usual orthogonality relation on
$\mathbb F_p^\times $
gives
Among the integers a with
$0\le a\le 2p-4$
, the only ones congruent to m modulo
$p-1$
are
$a=m$
and
$a=m+p-1$
. Hence,
Now, the map
$t\mapsto d/t$
is a permutation of
$\mathbb F_p^\times $
. Moreover,
for every
$t\in \mathbb F_p^\times $
. Therefore,
Since
and, by Euler’s criterion,
we obtain
for all
$t\in \mathbb F_p^\times $
. Summing over
$t\in \mathbb F_p^\times $
and noting that
$t\mapsto d/t$
is a permutation gives
$S=-S$
. Since p is odd,
$S=0$
. Equation (3.2) now gives the desired cancellation.
Lemma 3.3. Let
$p>3$
be a prime, let
$c,d\in \mathbb Z$
and suppose that
$({d}/{p})=-1$
. Let
$C=(C_{r,s})_{0\le r,s\le p-1}$
be the coefficient matrix of the unique polynomial
which has degree at most
$p-1$
in each variable and represents the same function on
$\mathbb F_p^2$
as
$ (X^2+cXY+dY^2)^{p-2}$
. Then,
Proof. First, note the uniqueness in the statement. If a polynomial of degree at most
$p-1$
in each variable vanishes on
$\mathbb F_p^2$
, then, after fixing
$Y=y\in \mathbb F_p$
, it is a polynomial in X of degree at most
$p-1$
with p roots; hence, it is zero. Its coefficients, as polynomials in Y, again have degree at most
$p-1$
and vanish at all
$y\in \mathbb F_p$
, and therefore are zero. Existence follows by applying one-variable Lagrange interpolation successively in the two variables.
Let the coefficients
$\alpha _a$
be defined by (3.1). We have the homogeneous expansion
For
$e\ge 0$
, put
$\bar e=0$
if
$e=0$
and, otherwise, let
$\bar e$
be the unique integer in
$\{1,\ldots ,p-1\}$
congruent to e modulo
$p-1$
. Then,
$z^e=z^{\bar e}$
for all
$z\in \mathbb F_p$
. Since every monomial in (3.3) has total degree
$2p-4<2p-2$
, the two exponents in the same monomial cannot both be at least p. Thus, at most one exponent in each monomial needs reduction to transform the right-hand side of (3.3) into
$R(X,Y)$
. This is the point at which we use
$p>3$
; for example, the reduction of
$Y^{2p-4}$
to
$Y^{p-3}$
requires
$p-3\in \{1,\ldots ,p-1\}$
.
We now record the reduction explicitly. First, the term
$a=0$
gives
$\alpha _0Y^{p-3}$
. For
${1\le r\le p-4}$
, the two indices
$a=r$
and
$a=r+p-1$
both reduce to the same monomial
The three boundary indices
$a=p-3,p-2,p-1$
give respectively
Finally, since
$\alpha _{2p-4}=1$
, the index
$a=2p-4$
gives
$X^{p-3}$
. Hence, the same function on
$\mathbb F_p^2$
is represented by
Let
$m=(p-3)/2$
. Since
$p>3$
, we have
$1\le m\le p-4$
. In (3.4), the only possible nonzero entry in row m of C is
and this is zero by Lemma 3.2. Hence, row m is zero. In addition, row
$0$
and row
$p-1$
can have nonzero entries only in column
$p-3$
, so these two rows are linearly dependent. These rows are distinct from row m. Consequently, the row rank of C is at most
$p-2$
.
Proposition 3.4. Let
$p>3$
be a prime, let
$c,d\in \mathbb Z$
and suppose that
$({d}/{p})=-1$
. Then,
Proof. Let
$a_i$
denote the residue class of i in
$\mathbb F_p$
. Let
be the reduction modulo p of the integer matrix defining
$D_p(c,d)$
. Here, c and d are also viewed modulo p. By Lemma 3.1, it is enough to prove that
Let
$R(X,Y)$
and
$C=(C_{r,s})$
be as in Lemma 3.3. Since R represents the same function on
$\mathbb F_p^2$
as
$(X^2+cXY+dY^2)^{p-2}$
, we have
Set
Then,
Hence,
by Lemma 3.3. Lemma 3.1, with
$N=p$
and
$r=2$
, now yields
$p^2\mid D_p(c,d)$
.
Acknowledgement
The authors thank the reviewers for their constructive comments and valuable suggestions. During the preparation of this work, the authors used DeepSeek V4 Pro to build a specialised agent for solving mathematical problems, which was employed for generating an initial proof of the main theorem, finding counterexamples, comparing proof strategies, formatting text and polishing language. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.









