1. Introduction
In practice, communication systems are not 100% reliable due to noise or other forms of interference. Coding theory is a branch of Engineering Mathematics that has been introduced and applied to solve this problem since the 1960s. Codes have later been extensively studied and linked with other problems and applications.
In 1990, the (Euclidean) hull of a linear code has been introduced to classify finite projective planes in [
1]. It is defined to be the intersection of a linear code and its Euclidean dual. Hulls of linear codes have various applications and play an important role in the efficiency determination of some algorithms in coding theory such as computing permutation equivalence of two linear codes and finding the automorphism group of linear codes (see, for example, [
2,
3,
4,
5,
6]). Precisely, the efficiency of these computations is limited by the hull size of codes. In [
7], the hulls of linear codes have been applied in constructing good entanglement-assisted quantum error correcting codes.
Properties of hulls of codes have been extensively studied. The average dimensions of the Euclidean hull of linear codes and of cyclic codes were given in [
8,
9], respectively. The dimensions of the hulls of cyclic codes and negacyclic codes were determined in [
10]. Later, the complete study of the average dimension of the Hermitian hull of cyclic and constacyclic codes was given in [
11,
12]. It is of natural interest to study the average dimension of the Euclidean hull of constacyclic codes. In [
13], it has been shown that the Euclidean dual of
-constacyclic code is again
-constacyclic if and only if
. Therefore, the average dimension of the Euclidean hull of negacyclic codes
is the only remaining case.
In this paper, we focus on the average dimension of the Euclidean hull of negacyclic codes of length
n over finite fields
as well as its lower and upper bounds. The paper is organized as follows. Basic properties of codes and polynomials over finite fields are recalled in
Section 2. In
Section 3, the expression for
, the formula for the average dimension of neagcyclic codes, is given together with some upper bounds. In
Section 4, upper and lower bounds on
are derived. The summary and remarks are given in
Section 5.
2. Preliminaries
Let
p be a prime and let
q be a
p-power. Denote by
the finite field of order
q and characteristic
p. For given positive integers
, a
linear code of length
n and dimension
k over
is a
k-dimensional subspace of the
-vector space
. The Euclidean dual of a linear code
C is defined to be
The Euclidean hull of a linear code
C is defined to be
A linear code of length n over is said to be negacyclic if for all .
Let
denote the set of all neagcyclic codes of length
n over
. The
average dimension of the hull of negacyclic codes of length n over
is defined to be
Every non-zero negacyclic code
C of length
n over
can be viewed as an ideal of the principal ideal ring
generated by a monic divisor
of
(see [
10]). In this case,
is called the
generator polynomial for
C and
.
For a polynomial of degree k and , the reciprocal polynomial of is defined to be . It is not difficult to see that . Then, we have two types of polynomials. A polynomial is called self-reciprocal if . Otherwise, and are called a reciprocal polynomial pair.
Let
C be a negacyclic code of length
n over
with the generator polynomial
and let
. Then,
is a monic divisor of
and it is the generator polynomial of
by Lemma 2.1 of [
13]. Therefore,
is generated by the polynomial
(see Theorem 1 of [
10]).
Recall that the characteristic of
is
p. Then, a positive integer
n can be written in the form of
, where
and
. Using arguments similar to those in
Section 4 of [
10], up to permutation, there exist nonnegative integers
and
such that
where
and
are a reciprocal polynomial pair and
is a monic irreducible self-reciprocal polynomial for all
and
.
For a given negacyclic code
C of length
n over
, based on the factorization in (
1), the generator polynomial of
C can be viewed of the form
where
. It follows that the generator polynomial of
is
and hence the generator polynomial of
is
Since 1 and are identical when the characteristic of is even, in the rest of this paper, we assume that the characteristic p of is odd.
4. Properties of and Bounds on
In this section, some number theoretical tools are constructed and applied to study properties of . As a consequence, lower and upper bounds for can be derived using .
For an odd prime power q, let . For coprime positive integers i and j, denote by the multiplicative order of i modulo j. An element in has the following properties.
Lemma 2. Let q be an odd prime power. If and , then is even.
Proof. Since , there exists the smallest positive integer k such that . It follows that . Then, . Since , is even. ☐
Next, we introduce a partition for the set
. For each integer
, let
where
is used if
is the integer such that
and
. Then, we have
.
Theorem 2 (Theorem 4 of [
9])
. Let q be an odd prime power and let ℓ be a positive integer. Then, the following statements hold:- 1.
Let ℓ be an odd integer. If is such that the prime factorization of ℓ. Then, if and only if there exists such that for all i. In this case, we have .
- 2.
Let be an integer. Then if and only if divides . Moreover, if , then .
- 3.
Let q and ℓ be odd. Then, if and only if . In this case, ℓ and belong to the same set .
- 4.
Let where is odd and . Then, if and only if and . In this case, we have .
The characterization of elements in are given in the following corollary.
Corollary 2. Let be an integer such that . Let ℓ be a positive integer relatively prime to q and let . Then, the following statements hold:
- 1.
.
- 2.
if and only if either ℓ has an odd prime divisor, each odd prime divisor of ℓ belongs to and , or and .
- 3.
Let . Then, if and only if ℓ has an odd prime divisor, each odd prime divisor of ℓ belongs to and .
Lemma 3. Let an integer and let ℓ be a positive integer. If , then .
Proof. By Corollary 2, we have . Since , it follows that . By Little Fermat’s Theorem, we have . Then, . Hence, . ☐
Let . Next, we give the expression of .
Lemma 4. Assume that is factorized as in Equation (1). Then,where φ is the Euler’s totient function. Proof. From Equation (29) of [
10],
can be factored as
where
,
,
and
are a monic irreducible-reciprocal polynomial pair of degree
, and
is a monic irreducible self-reciprocal polynomial of degree
.
Altogether, it can be concluded that
Remark 1. From Lemma 4, we have the following facts. The set can be empty. For convenience, the empty summation will be regarded as 0. In this case, . For example, since .
The expression of the set can be simplified using the definition of as follows.
Lemma 5. Write , where is an odd integer and β is a non-negative integer. Then, .
Proof. Let . Then, we have . Hence, for all , which implies . ☐
The following result is a consequence of Lemma 5 and Theorem 2.
Proposition 1. Let be the integer such that . Then, the following statements hold:
- 1.
if and only if .
- 2.
if and only if and .
- 3.
if and only if and .
Proof. To prove (i), assume that . Then, by Theorem 2, it can be concluded that . Hence, .
Conversely, assume that . Then, . Let . By Lemma 5, for some . Therefore, by Theorem 2, which implies .
To prove (ii), assume that . Then, . Since , we have . Hence, which implies by Theorem 2.
Conversely, assume that and . Let . Then, . Since , .
Statement (iii) follows immediately from (i) and (ii). ☐
By Proposition 1, we have the following corollary.
Corollary 3. Let be the integer such that . Then, the following statements hold:
- 1.
if and only if .
- 2.
if and only if and .
- 3.
if and only if and .
Proof. By Proposition 1,
if and only if
. Equivalently,
This proves (i).
By Proposition 1,
and
if and only if
. Equivalently,
Statement (iii) can be deduced directly from (i) and (ii). ☐
Corollary 4. Assume the notations as above. Then, the following statements hold:
- 1.
if and only if .
- 2.
If , then .
Proof. The first statement can be deduced directly from Theorem 1 and Corollary 3. The second statement follows from Corollary 1 and the fact that reaches its maximum value when . ☐
Next, we focus on the case where . Let ℓ be a positive integer relatively prime to q. Let be the prime factorization of ℓ, where , , are distinct odd primes, and for all . Partition the index set into as follows:
if for all ,
if .
Let and for all . For convenience, the empty product will be referred to as 1. Therefore, we have which is called the -factorization of ℓ, where for all but finitely many integers i. By Theorem 2, we have . The characterization of is given in the following lemma.
Lemma 6 (Lemma 9 of [
9])
. Let be the integer such that . Let be such that and let be the -factorization of ℓ. If , then at least one of the following conditions is valid:- 1.
.
- 2.
.
- 3.
and for an integer .
- 4.
and for two distinct and .
The following proposition provides a simplified expression of .
Proposition 2. Let be an -factorization of . If and , then Proof. We distinguish the proof into two cases where and .
- Case 1
. We have
. By Lemma 5 and Theorem 2, we have
- Case 2
. We have
and
. By Corollary 2, we have
. Since
if and only if
, it follows that
The results follow.
☐
Theorem 3. Let q be an odd prime power and . Let , where and . Let , where . Then, the following statements hold:
- 1.
if and only if , , and .
- 2.
If , , and , then .
- 3.
If and , then .
Proof. By Equation (
3),
if and only if
By Corollary 3, it is not difficult to see that and if and only if and . On the other hand, we have and if and only if . Therefore, if and only if and . This proves (i).
To prove (ii), assume that
,
, and
. By Corollary 3, we have
. By Equation (
3), it follows that
It is not difficult to see that . Since , it follows that . Hence, the minimum value of is . Therefore, we have
To prove (iii), assume that and .
- Case 1
. By Corollary 1, we have
. Then, by Equation (
3),
can be expressed as
It is not difficult to see that for all . Hence, .
- Case 2
. Let
be an
-factorization of
and
where
for all
and
. Note that if
and
are greater than 1, then they are greater than or equal to 3.
- Case 2.1
. We have
. It is easy to verify that
By Lemma 6, we have the following six subcases:
- Case 2.1.1
and . Then, and , a contradiction.
- Case 2.1.2
and . Thus, , a contradiction.
- Case 2.1.3
and . We have . Thus, .
- Case 2.1.4
and . Thus, . Therefore, .
- Case 2.1.5
. Hence,
. Without loss of generality, we may assume that
. We have
- Case 2.1.6
. Then,
. Let
.
Let
s be an index such that
and
. Then,
. Since
, we have
by Lemma 3. Hence,
. Therefore,
- Case 2.2
. Then,
. It follows that
By Lemma 6, we have the following six subcases.
- Case 2.2.1
and . Then, and , a contradiction.
- Case 2.2.2
and
. Note that
. If
, then
and
, a contradiction. Otherwise,
. Then,
and
. Hence,
- Case 2.2.3
and
. Then,
and
. Hence,
- Case 2.2.4
and
. Then,
. It follows that
- Case 2.2.5
. Then,
. We have
- Case 2.2.6
. Then,
. Hence,
Altogether, we have
, and, hence,
☐
From Theorem 3 and Corollary 4, we can conclude that the average dimension of the Hull of negacyclic codes of length over is zero if and only if , , and . For the other cases, the average dimension of the Hull of negacyclic codes of length over is bounded by and . In these cases, grows at the same rate as the length n of the codes as n tends to ∞.