1. Introduction
Let be the finite field with q elements. A q-ary linear code is a k-dimensional subspace of with minimum (Hamming) distance If the parameters satisfy the code is called an MDS (maximum distance separable) code. A self-dual code is a linear code satisfying A linear complementary-dual code is a linear code satisfying
The study of MDS self-dual codes has attracted a great deal of attention in recent years due to its theoretical and practical importance. The center of the study of MDS codes includes the existence of MDS codes [
1], classification of MDS codes [
2], balanced MDS codes [
3], non-Reed-Solomon MDS codes [
4], complementary-dual MDS codes [
5,
6], and lowest density MDS codes [
7].
As the parameters of an MDS self-dual code are completely determined by the code’s length
n, the main interest here is to determine the existence and give the construction of
q-ary MDS self-dual codes for various lengths. The problem is completely solved for the case where
q is even [
8]. Many MDS self-dual codes over finite fields of odd characteristics were constructed [
9,
10,
11,
12,
13,
14].
In [
11], Jin and Xing constructed several classes of MDS self-dual code from generalized Reed-Solomon code. Yan generalized Jin and Xing’s method and constructed several classes of MDS self-dual codes via generalized Reed-Solomon codes and extended generalized Reed-Solomon codes [
14]. In [
12], Ladad, Liu and Luo produced more classes of MDS self-dual codes based on [
11] and [
14]. In [
9], based on the [
11,
12,
14] more new parameter MDS self-dual codes were presented. Based on the method raised in [
9], we present some classes of MDS self-dual codes.
2. Preliminaries
In this section we introduce some basic notations of generalized Reed-Solomon codes and extended generalized Reed-Solomon codes. For more details, the reader is referred to [
15].
Throughout this paper,
q is a prime power,
is the finite fields with
q elements and let
n be a positive integer with
For any
we denote by
the conjugation of
Given an
linear code
, its Euclidean dual code (resp. Hermitian dual code) is denoted by
(resp.
). The codes
and
are defined by
respectively. In this paper, we only consider the Euclidean inner product.
Let
where
are
n distinct elements of
. Fix
n nonzero elements
of
(
are not necessarily distinct), put
For
the
k-dimensional generalized Reed-Solomon code (GRS for short) of length
n associated with
and
is defined to be
It is well known that the code
is a
q-ary
MDS code and the dual of a GRS code is again a GRS MDS code; indeed
for some
with
for all
(e.g., see [
15]).
Furthermore, the extended generalized Reed-Solomon code
given by
where
stands for the coefficient of
in
It is also well known that
is a
q-ary
MDS code and the dual code is also a GRS MDS code (e.g., see [
15]).
Put
and denote by
the matrix
Lemma 1 ([
11])
. The solution space of the equation system has dimension 1 and is a basis of this solution space, where Furthermore, for any two polynomials with and , one has The conclusion of the following lemma is straightforward. For completeness, we provide its proof.
Lemma 2 ([
11])
. Let n be an even number, if there exists such that is square element for all then the code defined in (1) is MDS self-dual code of length n. Proof. Let
with
and
By Lemma 1, we have
where
for
Hence,
This implies that □
H. Yan [
14] observed the following two results.
Lemma 3 ([
14])
. Let n be an even integer and If is square element for all then the code defined in (2) is MDS self-dual code of length Lemma 4 ([
14])
. Let be a positive integer and let be a primitive m-th root of unity. Then for any we have 3. Main Result
Let where r is odd prime power, be the finite fields with q elements. Suppose is a primitive m-th root of unity and is the cyclic group generated by
Theorem 1. Let where r is an odd prime power, . Suppose that and is even, If Then there exists an -MDS self-dual code.
Proof. Let
be a primitive
m-th root of unity and
is the cyclic group of order
By the theorem of group homomorphism,
Let
be
t distinct elements, such that
Denote
and
be a set of coset representatives of
. Let
Then the entries of are distinct in
It is known that
. By the statement of Lemma 3, we get
Let
then
So
Let g be a generator of , then Note that and are square elements of we take then is a square element of .
This implies there exists a q-ary MDS self-dual code. □
Example 1. Let is even. For we choose By Theorem 1, there exists the MDS self-dual code with length 13,932.
Theorem 2. Let where r is an odd prime power. Suppose that m is odd, and is even. If and t is odd, then there exists a q-ary MDS self-dual code over
Proof. Let
and
be the same as in Theorem 1, we choose
t distinct even number
,
Denote
. Suppose all
The proof is as similar as in Theorem 1. We get
Let
then we get
since
is even, it implies that
v is a square element of
So
is square element of
. By Lemma 3, there exists a
q-ary
MDS self-dual code. □
Example 2. Let is even. Since for we choose By Theorem 2, there exists the MDS self-dual code with length
Theorem 3. Let where r is an odd prime power, . Suppose that m is odd, and is even. If and t is odd, then there exists a q-ary MDS self-dual code over .
Proof. Let
and
be the same as in Theorem 1, we choose
t distinct even number
,
Denote
, and
We define the generalized Reed -Solomon code
with
For any
and
we get
and
Since is even, so are square elements of we only need to consider As the calculation in the proof of Theorem 1, Since all and t is odd, so is even. , are square elements of By Lemma 2, there exists a q-ary MDS self-dual code. □
Example 3. Let is even. Since , for we choose By Theorem 2, there exists the MDS self-dual code with length
Theorem 4. Let where r is an odd prime power. Suppose that is even. If and is even, then there exists a q-ary MDS self-dual code over .
Proof. Let
and
be the same as in Theorem 1. We define the extended generalized Reed -Solomon code
with
For any
and
we get
and
Case 1: If m is even, t is odd.
and are square elements of Let as the calculation in Theorem 1, So we only need to consider the parity of
are even number, so is a square element of
are odd number, so is a square element of
Case 2: If m and t are even, we assume A is an even integer. It follows that is an even integer.
Case 3: If m is odd, t is even.
- (1)
If all are odd, and then then is a square element of
- (2)
If all are even, and then is a square element of
- (1)
If then is square of
- (2)
If then is square of
□
We can extend the Theorem 1 to a more general case.
Theorem 5. Let where r is an odd prime power. Suppose that is even, and is even. If then there exists a q-ary MDS self-dual code over
Proof. Let
be a primitive
m-th root of unity and
is the cyclic group of order
By the theorem of group homomorphism,
Let
be
t distinct elements, such that
Denote
and
be a set of coset representatives of
. Let
Similar with Theorem 1, we get
Since
then
where
is
s-th primitive root of unity. So
Let
Since
then
So
Let
g be a generator of
It follows that
and
So
Case 1: If m odd and t even, we can take Hence, we have is square element of
Case 2: If m even and , we can take Hence, we have is square element of
So there exists a q-ary MDS self-dual code with length . □