arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2307.04076v1 [cs.IT] 09 Jul 2023

The extended codes of a family of reversible MDS cyclic codesThanks: Z. Sun’s research was supported by The National Natural Science Foundation of China under Grant Number 62002093. C. Ding’s research was supported by the Hong Kong Research Grants Council, Proj. No. 16301123.

Zhonghua Sun Thanks: Z. Sun with the School of Mathematics, Hefei University of Technology, Hefei, 230601, Anhui, China (email: sunzhonghuas@163.com)    Cunsheng Ding Thanks: C. Ding is with the Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, Clear Water Bay, Kowloon, Hong Kong, China (email: cding@ust.hk)
Abstract

A linear code with parameters [n,k,nk+1][n,k,n-k+1] is called a maximum distance separable (MDS for short) code. A linear code with parameters [n,k,nk][n,k,n-k] is said to be almost maximum distance separable (AMDS for short). A linear code is said to be near maximum distance separable (NMDS for short) if both the code and its dual are AMDS. MDS codes are very important in both theory and practice. There is a classical construction of a [q+1,2u1,q2u+3][q+1,2u-1,q-2u+3] MDS code for each uu with 1uq+121\leq u\leq\lfloor\frac{q+1}{2}\rfloor, which is a reversible and cyclic code. The objective of this paper is to study the extended codes of this family of MDS codes. Two families of MDS codes and several families of NMDS codes are obtained. The NMDS codes have applications in finite geometry, cryptography and distributed and cloud data storage systems. The weight distributions of some of the extended codes are determined.

Index Terms:
Cyclic code, extended code, linear code, locally recoverable code, MDS code, subfield code

I Introduction of motivations, objectives and methodology

By an [n,k,d][n,k,d] code over GF(q){\mathrm{GF}}(q) we mean a kk-dimensional linear subspace of GF(q)n{\mathrm{GF}}(q)^{n} having minimum Hamming distance dd. The parameters of a linear code refer to its length, dimension and minimum distance. An [n,k,d][n,k,d] code over GF(q){\mathrm{GF}}(q) is called distance-optimal (respectively, dimension-optimal and length-optimal) if there is no [n,k,dd+1][n,k,d^{\prime}\geq d+1] (respectively, [n,kk+1,d][n,k^{\prime}\geq k+1,d] and [nn1,k,d][n^{\prime}\leq n-1,k,d]) linear code over GF(q){\mathrm{GF}}(q). An optimal code is a code that is length-optimal, or dimension-optimal, or distance-optimal, or meets a bound for linear codes.

Let Ai(𝒞)A_{i}({\mathcal{C}}) denote the number of codewords of Hamming weight ii in a linear code 𝒞{\mathcal{C}}. The vector (A0(𝒞),A1(𝒞),,An(𝒞))(A_{0}({\mathcal{C}}),A_{1}({\mathcal{C}}),\ldots,A_{n}({\mathcal{C}})) is called the weight distribution of 𝒞{\mathcal{C}}, and the weight enumerator is defined by the polynomial i=0nAi(𝒞)zi.\sum_{i=0}^{n}A_{i}({\mathcal{C}})z^{i}. Throughout this paper, we use dim(𝒞)\dim({\mathcal{C}}) and d(𝒞)d({\mathcal{C}}) to denote the dimension and minimum distance of a linear code 𝒞{\mathcal{C}}.

Denote [n]={0,1,,n1}[n]=\{0,1,\cdots,n-1\} for each positive integer nn. We usually index the coordinates of the codewords in 𝒞{\mathcal{C}} with the elements in [n][n]. An [n,k,d][n,k,d] code 𝒞{\mathcal{C}} over GF(q){\mathrm{GF}}(q) is called an (n,k,d,q,r)(n,k,d,q;r)-LRC (locally recoverable code) if for each i[n]i\in[n] there is a subset Ri[n]{i}R_{i}\subseteq[n]\setminus\{i\} of size rr and a function fi(x1,x2,,xr)f_{i}(x_{1},x_{2},\ldots,x_{r}) on GF(q)r{\mathrm{GF}}(q)^{r} such that ci=fi(𝐜Ri)c_{i}=f_{i}({\mathbf{c}}_{R_{i}}) for each codeword 𝐜=(c0,c1,,cn1){\mathbf{c}}=(c_{0},c_{1},\ldots,c_{n-1}) in 𝒞{\mathcal{C}}, where 𝐜Ri{\mathbf{c}}_{R_{i}} is the projection of 𝐜{\mathbf{c}} at RiR_{i}. The symbol cic_{i} is called the ii-th code symbol and the set RiR_{i} is called the repair set or recovering set of the code symbol cic_{i}. In this definition of LRCs, the degrees of the functions fif_{i} are not restricted. If we require that each fif_{i} be a homogeneous function of degree 11 in the definition above, then we say that 𝒞{\mathcal{C}} is (n,k,d,q,r)(n,k,d,q;r)-LLRC (linearly local recoverable code) and has linear locality rr. For general theory about minimum locality and minimum linear locality, the reader is referred to [35].

For any (n,k,d,q,r)(n,k,d,q;r)-LLRC, Gopalan et al. proved the following upper bound on the minimum distance dd [18]:

dnkkr+2.d\leq n-k-\left\lceil\frac{k}{r}\right\rceil+2. (1)

The bound in (1) is similar to the Singleton bound, and is thus called the Singleton-like bound. If an (n,k,d,q,r)(n,k,d,q;r)-LLRC meets the Singleton-like bound with equality, then we say that the (n,k,d,q,r)(n,k,d,q;r)-LLRC is distance-optimal (dd-optimal for short). If an (n,k,d,q,r)(n,k,d,q;r)-LLRC meets the Singleton-like bound minus one with equality, then we say that the (n,k,d,q,r)(n,k,d,q;r)-LLRC is almost distance-optimal (almost dd-optimal for short). Note that the Singleton-like bound is not tight for codes over small finite fields, as it is independent of the alphabet size qq.

For any (n,k,d,q,r)(n,k,d,q;r)-LLRC, Cadambe and Mazumdar developed the following bound on the dimension kk [5], [6]:

kmint+[tr+kopt(q)(nt(r+1),d)],k\leq\min_{t\in\mathbb{{Z}}_{+}}[tr+k_{{\rm opt}}^{(q)}(n-t(r+1),d)],

where +\mathbb{{Z}}_{+} denotes the set of all positive integers, and kopt(q)(n,d)k_{{\rm opt}}^{(q)}(n,d) is the largest possible dimension of a code with length nn, minimum distance dd, and alphabet size qq. An (n,k,d,q,r)(n,k,d,q;r)-LLRC that attains the CM bound with equality is said to be dimension-optimal (kk-optimal for short).

Any linear code with parameters [n,k,nk+1][n,k,n-k+1] for some positive integers nn and kk is called an MDS (maximum distance separable) code. Any linear code with parameters [n,k,nk][n,k,n-k] for some positive integers nn and kk is said to be almost maximum distance separable (AMDS for short). A linear code is said to be near maximum distance separable (NMDS for short) if both the code and its dual are almost maximum distance separable. By definition, an [n,k][n,k] linear code 𝒞{\mathcal{C}} is NMDS if and only if d(𝒞)+d(𝒞)=nd({\mathcal{C}})+d({\mathcal{C}}^{\perp})=n, where d(𝒞)d({\mathcal{C}}) and d(𝒞)d({\mathcal{C}}^{\perp}) denote the minimum distance of 𝒞{\mathcal{C}} and 𝒞{\mathcal{C}}^{\perp}, respectively.

MDS codes are very important in theory and have important applications. For example, the Reed-Solomon codes are widely used in communication systems and data storage devices. It is easy to verify that each MDS code is a dd-optimal and kk-optimal LLRC. In theory, MDS codes over finite fields are the same as arcs in projective geometry, and some MDS codes are hrperovals and can be used to construct tt-designs [13, Chapter 12]. Motivated by the importance of MDS codes in both theory and practice, our first objective is to construct several families of MDS codes by extending a family of known MDS cyclic codes. Our methodology is the extending technique in coding theory.

The error-correcting capability of NMDS codes is slightly worse than that of MDS codes. However, NMDS codes have the following advantages over MDS codes:

  • Some infinite families of NMDS codes support infinite families of tt-designs for t{2,3,4}t\in\{2,3,4\} [12, 22, 36, 40, 43], while MDS codes support only trivial designs.

  • The length nn of an NMDS code over GF(q){\mathrm{GF}}(q) with parameters [n,k,nk][n,k,n-k] can be more than q+1q+1, while that of an MDS code with parameters [n,k,nk+1][n,k,n-k+1] over GF(q){\mathrm{GF}}(q) is conjectured to be at most q+1q+1 for k{3,n3}k\not\in\{3,n-3\}.

NMDS codes correspond also to certain objects in projective geometry [1, 2, 3, 4, 7, 8, 14, 15, 17, 32]. In addition, NMDS codes have applications in cryptography [33]. Recently, it was shown in [35] that an NMDS code is either a dd-optimal and kk-optimal LLRC or an almost dd-optimal and kk-optimal LLRC (see [28, 29] for further information). This application of NMDS codes in distributed and cloud data storage as LLRCs is the second motivation of this paper. Compared with MDS codes, there are a very small number of families of NMDS codes reported in the literature [1, 2, 3, 4, 7, 12, 14, 21, 28, 29, 36, 38, 40]. Our second objective is to construct several families of NMDS codes by extending a family of known MDS cyclic codes.

While a lot of infinite families of MDS codes over finite fields with variable parameters have been constructed in the literature, very limited results on the extended codes of MDS codes are known [23, Chapter 7], [31, Chapter 11]. Our third objective is to study the extended codes of a family of MDS cyclic codes.

The rest of this paper is organised as follows. Section II presents some auxiliary results about linear codes. Section III introduces a family of known MDS codes over GF(q){\mathrm{GF}}(q). Section IV investigates the extended codes of this family of known MDS codes over GF(q){\mathrm{GF}}(q). Section V summarizes this paper and makes concluding remarks.

II Preliminaries

II-A Some operations on linear codes

Let 𝒞{\mathcal{C}} be an [n,k,d][n,k,d] code over GF(q){\mathrm{GF}}(q). The extended code 𝒞¯\overline{{\mathcal{C}}} of 𝒞{\mathcal{C}} is defined by

𝒞¯={(c0,c1,,cn1,cn)GF(q)n+1:(c0,c1,,cn1)𝒞 with i=0nci=0}.\overline{{\mathcal{C}}}=\left\{(c_{0},c_{1},\ldots,c_{n-1},c_{n})\in{\mathrm{GF}}(q)^{n+1}:(c_{0},c_{1},\ldots,c_{n-1})\in{\mathcal{C}}\mbox{ with }\sum_{i=0}^{n}c_{i}=0\right\}.

Let 𝐇\mathbf{H} and 𝐇¯\overline{\mathbf{H}} denote the check matrix of 𝒞{\mathcal{C}} and 𝒞¯\overline{{\mathcal{C}}}, respectively. Then we have the following known result whose proof is straightforward.

Lemma 1.

[23] Let 𝒞{\mathcal{C}} be an [n,k,d][n,k,d] code over GF(q){\mathrm{GF}}(q). Then 𝒞¯\overline{{\mathcal{C}}} is an [n+1,k,d¯][n+1,k,\overline{d}] code over GF(q){\mathrm{GF}}(q), where d¯=d\overline{d}=d or d+1d+1. In the binary case, d¯=d\overline{d}=d if dd is even, and d¯=d+1\overline{d}=d+1 otherwise. In addition, the check matrix 𝐇¯\overline{\mathbf{H}} of 𝒞¯\overline{{\mathcal{C}}} can be deduced from that of 𝒞{\mathcal{C}} by

𝐇¯=[𝟏1𝐇𝟎T],\displaystyle\overline{\mathbf{H}}=\begin{bmatrix}{\mathbf{1}}&1\\ \mathbf{H}&{\mathbf{0}}^{T}\end{bmatrix},

where 𝟏{\mathbf{1}} is the all-one vector of length nn and 𝟎{\mathbf{0}} is the all-zero vector of length nn.

The all-one vector 𝟏{\mathbf{1}} in GF(q)n{\mathrm{GF}}(q)^{n} and the rows of a generator matrix of 𝒞{\mathcal{C}} span a linear subspace 𝒞~\widetilde{{\mathcal{C}}} of GF(q)n{\mathrm{GF}}(q)^{n}, which is called the augmented code of 𝒞{\mathcal{C}}. If 𝟏𝒞{\mathbf{1}}\in{\mathcal{C}}, then 𝒞~=𝒞\widetilde{{\mathcal{C}}}={\mathcal{C}}. Otherwise, 𝒞{\mathcal{C}} is a subcode of 𝒞~\widetilde{{\mathcal{C}}} and dim(𝒞~)=dim(𝒞)+1\dim(\widetilde{{\mathcal{C}}})=\dim({\mathcal{C}})+1. The following lemma will be useful.

Lemma 2.

Let qq be a power of a prime pp, nn be a positive integer with n1(modp)n\equiv-1\pmod{p}. Let 𝒞{\mathcal{C}} be a linear code of length nn over GF(q){\mathrm{GF}}(q). Then 𝒞~¯=𝒞¯~\overline{\widetilde{{\mathcal{C}}}}=\widetilde{\overline{{\mathcal{C}}}}.

Proof.

Let 𝐜=(c0,c1,,cn1)𝒞{\mathbf{c}}=(c_{0},c_{1},\ldots,c_{n-1})\in{\mathcal{C}}. By definition, 𝒞¯={(𝐜,𝐜𝟏T):𝐜𝒞}\overline{{\mathcal{C}}}=\left\{\left({\mathbf{c}},-{\mathbf{c}}{\mathbf{1}}^{T}\right):{\mathbf{c}}\in{\mathcal{C}}\right\}, and

𝒞¯~={(a𝟏+𝐜,a𝐜𝟏T):aGF(q),𝐜𝒞},\displaystyle\widetilde{\overline{{\mathcal{C}}}}=\left\{\left(a{\mathbf{1}}+{\mathbf{c}},a-{\mathbf{c}}{\mathbf{1}}^{T}\right):a\in{\mathrm{GF}}(q),\,{\mathbf{c}}\in{\mathcal{C}}\right\}, (2)

where 𝟏{\mathbf{1}} is the all-one vector of length nn. Similarly, we have

𝒞~={a𝟏+𝐜:aGF(q),𝐜𝒞}\displaystyle\widetilde{{\mathcal{C}}}=\{a{\mathbf{1}}+{\mathbf{c}}:a\in{\mathrm{GF}}(q),\,{\mathbf{c}}\in{\mathcal{C}}\}

and

𝒞~¯={(a𝟏+𝐜,an𝐜𝟏T):aGF(q),𝐜𝒞}.\displaystyle\overline{\widetilde{{\mathcal{C}}}}=\left\{\left(a{\mathbf{1}}+{\mathbf{c}},-an-{\mathbf{c}}{\mathbf{1}}^{T}\right):a\in{\mathrm{GF}}(q),\,{\mathbf{c}}\in{\mathcal{C}}\right\}.

Note that

(a𝐜𝟏T)(an𝐜𝟏T)=(n+1)a=0\left(a-{\mathbf{c}}{\mathbf{1}}^{T}\right)-\left(-an-{\mathbf{c}}{\mathbf{1}}^{T}\right)=(n+1)a=0

for each aGF(q)a\in{\mathrm{GF}}(q). The desired result follows. ∎

The following lemma will also be needed later.

Lemma 3.

Let 𝒞{\mathcal{C}} be a linear code of length nn over GF(q){\mathrm{GF}}(q) and the all-one vector 𝟏𝒞{\mathbf{1}}\in{\mathcal{C}}. Then the following hold.

  1. 1.

    (𝒞¯)=𝒞¯~(\overline{{\mathcal{C}}})^{\perp}=\widetilde{\overline{{\mathcal{C}}^{\perp}}}.

  2. 2.

    If 𝟏𝒞{\mathbf{1}}\notin{\mathcal{C}}^{\perp} and 𝒞{\mathcal{C}} is an MDS code, then d((𝒞¯))=d(𝒞~)+1d((\overline{{\mathcal{C}}})^{\perp})=d(\widetilde{{\mathcal{C}}^{\perp}})+1.

Proof.

1) Let 𝐇\mathbf{H} denote the check matrix of 𝒞{\mathcal{C}}. Since 𝟏𝒞{\mathbf{1}}\in{\mathcal{C}}, the sum of all the coordinates in each codewords of 𝒞{\mathcal{C}}^{\perp} is zero. As a result, we conclude that the code 𝒞¯\overline{{\mathcal{C}}^{\perp}} has generator matrix [𝐇𝟎T]\begin{bmatrix}\mathbf{H}&{\mathbf{0}}^{T}\end{bmatrix}, where 𝟎{\mathbf{0}} is the all-zero vector. The desired conclusion follows from Lemma 1.

2) By Result 1 and Equation (2), we deduce that

(𝒞¯)={(a𝟏+𝐜,a):aGF(q),𝐜𝒞}.\displaystyle(\overline{{\mathcal{C}}})^{\perp}=\left\{\left(a{\mathbf{1}}+{\mathbf{c}},a\right):a\in{\mathrm{GF}}(q),\,{\mathbf{c}}\in{\mathcal{C}}^{\perp}\right\}. (3)

Suppose 𝒞{\mathcal{C}} is an [n,k,nk+1][n,k,n-k+1] MDS code over GF(q){\mathrm{GF}}(q), then 𝒞{\mathcal{C}}^{\perp} is an [n,nk,k+1][n,n-k,k+1] MDS code over GF(q){\mathrm{GF}}(q). Since 𝟏𝒞{\mathbf{1}}\notin{\mathcal{C}}^{\perp}, we deduce that 𝒞~\widetilde{{\mathcal{C}}^{\perp}} is an [n,nk+1][n,n-k+1] code over GF(q){\mathrm{GF}}(q). By the Singleton bound, d(𝒞~)k=d(𝒞)1d(\widetilde{{\mathcal{C}}^{\perp}})\leq k=d({\mathcal{C}}^{\perp})-1. It follows that there exist aGF(q)\{0}a\in{\mathrm{GF}}(q)\backslash\{0\} and 𝐜𝒞{\mathbf{c}}\in{\mathcal{C}}^{\perp} such that 𝚠𝚝(a𝟏+𝐜)=d(𝒞~){\mathtt{wt}}(a{\mathbf{1}}+{\mathbf{c}})=d(\widetilde{{\mathcal{C}}^{\perp}}). Note that (a𝟏+𝐜,a)(𝒞¯)\left(a{\mathbf{1}}+{\mathbf{c}},a\right)\in(\overline{{\mathcal{C}}})^{\perp}, we get that

d((𝒞¯))d(𝒞~)+1.\displaystyle d((\overline{{\mathcal{C}}})^{\perp})\leq d(\widetilde{{\mathcal{C}}^{\perp}})+1. (4)

On the other hand, let 𝐜¯(𝒞¯)\overline{{\mathbf{c}}}\in(\overline{{\mathcal{C}}})^{\perp} and 𝐜¯𝟎\overline{{\mathbf{c}}}\neq{\mathbf{0}}. By Equation (3), there exist 𝐜𝒞{\mathbf{c}}\in{\mathcal{C}}^{\perp} and aGF(q)a\in{\mathrm{GF}}(q) such that 𝐜¯=(a𝟏+𝐜,a)\overline{{\mathbf{c}}}=\left(a{\mathbf{1}}+{\mathbf{c}},a\right). If a=0a=0, it follows from 𝐜¯𝟎\overline{{\mathbf{c}}}\neq{\mathbf{0}} that 𝐜𝟎{\mathbf{c}}\neq{\mathbf{0}}. Consequently,

𝚠𝚝(𝐜¯)\displaystyle{\mathtt{wt}}(\overline{{\mathbf{c}}}) =𝚠𝚝(𝐜)d(𝒞)d(𝒞~)+1.\displaystyle={\mathtt{wt}}({\mathbf{c}})\geq d({\mathcal{C}}^{\perp})\geq d(\widetilde{{\mathcal{C}}^{\perp}})+1.

If a0a\neq 0, 𝚠𝚝(𝐜¯)=1+𝚠𝚝(a𝟏+𝐜){\mathtt{wt}}(\overline{{\mathbf{c}}})=1+{\mathtt{wt}}(a{\mathbf{1}}+{\mathbf{c}}). It follows from 𝟏𝒞{\mathbf{1}}\notin{\mathcal{C}}^{\perp} that a𝟏+𝐜𝟎a{\mathbf{1}}+{\mathbf{c}}\neq{\mathbf{0}}. Consequently,

𝚠𝚝(𝐜¯)d(𝒞~)+1.{\mathtt{wt}}(\overline{{\mathbf{c}}})\geq d(\widetilde{{\mathcal{C}}^{\perp}})+1.

In summary,

d((𝒞¯))d(𝒞~)+1.\displaystyle d((\overline{{\mathcal{C}}})^{\perp})\geq d(\widetilde{{\mathcal{C}}^{\perp}})+1. (5)

Combining Inequalities (4) and (5), we deduce that d((𝒞¯))=d(𝒞~)+1d((\overline{{\mathcal{C}}})^{\perp})=d(\widetilde{{\mathcal{C}}^{\perp}})+1. This completes the proof. ∎

When 𝒞{\mathcal{C}} is a cyclic code of length nn over GF(q){\mathrm{GF}}(q), the augmented code of 𝒞{\mathcal{C}} has the following result.

Lemma 4.

Let 𝒞{\mathcal{C}} be the cyclic code of length nn over GF(q){\mathrm{GF}}(q) with generator polynomial g(x)g(x). Then 𝒞~\widetilde{{\mathcal{C}}} is the cyclic code of length nn over GF(q){\mathrm{GF}}(q) with generator polynomial gcd(xn1x1,g(x))\gcd(\frac{x^{n}-1}{x-1},g(x)).

Proof.

Let 𝒞{\mathcal{C}}^{\prime} be the cyclic code of length nn over GF(q){\mathrm{GF}}(q) with generator polynomial xn1x1\frac{x^{n}-1}{x-1}, then

𝒞~=𝒞+𝒞={𝐜1+𝐜2:𝐜1𝒞,𝐜2𝒞}.\widetilde{{\mathcal{C}}}={\mathcal{C}}^{\prime}+{\mathcal{C}}=\{{\mathbf{c}}_{1}+{\mathbf{c}}_{2}:{\mathbf{c}}_{1}\in{\mathcal{C}}^{\prime},{\mathbf{c}}_{2}\in{\mathcal{C}}\}.

The desired result follows from [23, Theorem 4.3.7]. ∎

II-B Cyclic codes and BCH codes over finite fields

An [n,k,d][n,k,d] code 𝒞{\mathcal{C}} over GF(q){\mathrm{GF}}(q) is called cyclic if (c0,c1,,cn1)𝒞(c_{0},c_{1},\ldots,c_{n-1})\in{\mathcal{C}} implies

(cn1,c0,c1,,cn2)𝒞.(c_{n-1},c_{0},c_{1},\ldots,c_{n-2})\in{\mathcal{C}}.

We identify any vector (c0,c1,,cn1)GF(q)n(c_{0},c_{1},\ldots,c_{n-1})\in{\mathrm{GF}}(q)^{n} with the polynomial

c(x)=i=0n1cixiGF(q)[x]/(xn1).c(x)=\sum_{i=0}^{n-1}c_{i}x^{i}\in{\mathrm{GF}}(q)[x]/(x^{n}-1).

Then a code 𝒞{\mathcal{C}} of length nn over GF(q){\mathrm{GF}}(q) corresponds to a subset 𝒞(x){\mathcal{C}}(x) of the ring GF(q)[x]/(xn1){\mathrm{GF}}(q)[x]/(x^{n}-1), where

𝒞(x):={i=0n1cixi:𝐜=(c0,c1,,cn1)𝒞}.{\mathcal{C}}(x):=\left\{\sum_{i=0}^{n-1}c_{i}x^{i}:{\mathbf{c}}=(c_{0},c_{1},\ldots,c_{n-1})\in{\mathcal{C}}\right\}.

A linear code 𝒞{\mathcal{C}} is cyclic if and only if 𝒞(x){\mathcal{C}}(x) is an ideal of the ring GF(q)[x]/(xn1){\mathrm{GF}}(q)[x]/(x^{n}-1).

Note that every ideal of GF(q)[x]/(xn1){\mathrm{GF}}(q)[x]/(x^{n}-1) must be principal. Let 𝒞=(g(x)){\mathcal{C}}=(g(x)) be a cyclic code of length nn over GF(q){\mathrm{GF}}(q), where g(x)g(x) is monic and has the smallest degree among all the generators of 𝒞{\mathcal{C}}. Then g(x)g(x) is unique and called the generator polynomial, and h(x)=(xn1)/g(x)h(x)=(x^{n}-1)/g(x) is referred to as the check polynomial of 𝒞{\mathcal{C}}.

Let nn be a positive integer with gcd(n,q)=1\gcd(n,q)=1. Let n\mathbb{{Z}}_{n} denote the ring of integers modulo nn. For any integer ss with 0s<n0\leq s<n, the qq-cyclotomic coset of ss modulo nn is defined by

Cs(q,n)={s,sq,sq2,,sqs1}modnn,C_{s}^{(q,n)}=\{s,sq,sq^{2},\cdots,sq^{\ell_{s}-1}\}\bmod n\subseteq\mathbb{{Z}}_{n},

where s\ell_{s} is the smallest positive integer such that ssqs(modn)s\equiv sq^{\ell_{s}}\pmod{n}, and is the size of the qq-cyclotomic coset. The smallest integer in Cs(q,n)C_{s}^{(q,n)} is called the coset leader of Cs(q,n)C_{s}^{(q,n)}. Let Γ(n,q)\Gamma_{(n,q)} be the set of all the coset leaders. It is easily seen that Cs(q,n)Ct(q,n)=C_{s}^{(q,n)}\cap C_{t}^{(q,n)}=\emptyset for any two distinct elements ss and tt in Γ(n,q)\Gamma_{(n,q)}, and

sΓ(n,q)Cs(q,n)=n.\displaystyle\bigcup_{s\in\Gamma_{(n,q)}}C_{s}^{(q,n)}=\mathbb{{Z}}_{n}.

Hence, the distinct qq-cyclotomic cosets modulo nn partition n\mathbb{{Z}}_{n}.

Let m=ordn(q)m={\mathrm{ord}}_{n}(q) be the order of qq modulo nn, and let α\alpha be a generator of the group GF(qm){\mathrm{GF}}(q^{m})^{*}. Put β=α(qm1)/n\beta=\alpha^{(q^{m}-1)/n}, then β\beta must be a primitive nn-th root of unity in GF(qm){\mathrm{GF}}(q^{m}). The minimal polynomial 𝖬βs(x){\mathsf{M}}_{\beta^{s}}(x) of βs\beta^{s} over GF(q){\mathrm{GF}}(q) is the monic polynomial of the smallest degree over GF(q){\mathrm{GF}}(q) with βs\beta^{s} as a root and is given by

𝖬βs(x)=iCs(q,n)(xβi)GF(q)[x],\displaystyle{\mathsf{M}}_{\beta^{s}}(x)=\prod_{i\in C_{s}^{(q,n)}}(x-\beta^{i})\in{\mathrm{GF}}(q)[x],

which is irreducible over GF(q){\mathrm{GF}}(q).

Let δ\delta be an integer with 2δn2\leq\delta\leq n and let hh be an integer. A BCH code over GF(q){\mathrm{GF}}(q) with length nn and designed distance δ\delta, denoted by 𝒞(q,n,δ,h){\mathcal{C}}_{(q,n,\delta,h)}, is a cyclic code with generator polynomial

lcm(𝖬βh(x),𝖬βh+1(x),,𝖬βh+δ2(x)).\displaystyle{\mathrm{lcm}}({\mathsf{M}}_{\beta^{h}}(x),{\mathsf{M}}_{\beta^{h+1}}(x),\cdots,{\mathsf{M}}_{\beta^{h+\delta-2}}(x)). (6)

If h=1h=1, the code 𝒞(q,n,δ,h){\mathcal{C}}_{(q,n,\delta,h)} with the generator polynomial in (6) is called a narrow-sense BCH code. If n=qm1n=q^{m}-1, then 𝒞(q,n,δ,h){\mathcal{C}}_{(q,n,\delta,h)} is referred to as a primitive BCH code.

BCH codes are a subclass of cyclic codes with interesting properties and applications. In many cases BCH codes are the best linear codes. For example, among all binary cyclic codes of odd lengths nn with n125n\leq 125 the best cyclic code is always a BCH code except for two special cases [10]. Reed-Solomon codes are also BCH codes and are widely used in communication devices and consumer electronics. In the past decade, a lot of progress on the study of BCH codes has been made (see, for example, [25, 27, 30, 34, 42, 44]).

A cyclic code 𝒞{\mathcal{C}} is said to be reversible if 𝒞𝒞={𝟎}{\mathcal{C}}\cap{\mathcal{C}}^{\perp}=\{{\mathbf{0}}\}. Such code is said to be linear complementary dual (LCD) code. The family of MDS codes presented in Section III are cyclic BCH codes and reversible.

II-C The weight distributions of MDS codes and NMDS codes

The weight distribution of MDS codes is known and given by the following lemma [31, p. 321]. We will use it later.

Lemma 5.

Let 𝒞{\mathcal{C}} be an [n,k,d][n,k,d] code over GF(q){\mathrm{GF}}(q) with d=nk+1d=n-k+1, and let the weight enumerator of 𝒞{\mathcal{C}} be 1+i=dnAizi1+\sum_{i=d}^{n}A_{i}z^{i}. Then

Ai=(ni)(q1)j=0id(1)j(i1j)qijdA_{i}=\binom{n}{i}(q-1)\sum_{j=0}^{i-d}(-1)^{j}\binom{i-1}{j}q^{i-j-d}

for all dind\leq i\leq n.

We have the following weight distribution formulas for NMDS codes.

Lemma 6.

[15] Let 𝒞{\mathcal{C}} be an [n,k,nk][n,k,n-k] NMDS code. Then the weight distributions of 𝒞{\mathcal{C}} and 𝒞{\mathcal{C}}^{\perp} are given by

Ank+s=(nks)j=0s1(1)j(nk+sj)(qsj1)+(1)s(ks)Ank\displaystyle A_{n-k+s}=\binom{n}{k-s}\sum_{j=0}^{s-1}(-1)^{j}\binom{n-k+s}{j}(q^{s-j}-1)+(-1)^{s}\binom{k}{s}A_{n-k} (7)

for s{1,2,,k}s\in\{1,2,\cdots,k\}, and

Ak+s=(nk+s)j=0s1(1)j(k+sj)(qsj1)+(1)s(nks)Ak\displaystyle A_{k+s}^{\perp}=\binom{n}{k+s}\sum_{j=0}^{s-1}(-1)^{j}\binom{k+s}{j}(q^{s-j}-1)+(-1)^{s}\binom{n-k}{s}A_{k}^{\perp} (8)

for s{1,2,,nk}s\in\{1,2,\cdots,n-k\}.

By definition, we have i=0nAi=qk\sum_{i=0}^{n}A_{i}=q^{k} and i=0nAi=qnk\sum_{i=0}^{n}A_{i}^{\perp}=q^{n-k}. The weight distribution of an NMDS code 𝒞{\mathcal{C}} or its dual cannot be determined by Equations (7) and (8). It was shown in [12] that two [n,k,nk][n,k,n-k] NMDS codes over GF(q){\mathrm{GF}}(q) could have different weight distributions. Thus, the weight distribution of an [n,k,nk][n,k,n-k] NMDS code over GF(q){\mathrm{GF}}(q) depends on not only nn, kk and qq, but also some other parameters of the code. This is a major difference between MDS codes and NMDS codes. Actually, it could be very difficult to determine the weight distribution of an NMDS code. This difficulty will be justified in this paper later.

III The family of classical MDS cyclic codes

Starting from now on, let q=pm>2q=p^{m}>2, where pp is a prime and mm is a positive integer. Let α\alpha be a primitive element of GF(q2){\mathrm{GF}}(q^{2}). Define β=αq1\beta=\alpha^{q-1}, then β\beta is a primitive (q+1)(q+1)-th root of unity in GF(q2){\mathrm{GF}}(q^{2}). Let 𝕄βi(x)\mathbb{M}_{\beta^{i}}(x) denote the minimal polynomial of βi\beta^{i} over GF(q){\mathrm{GF}}(q). It is easily verified that

xq+11=i=0q+12𝕄βi(x),x^{q+1}-1=\prod_{i=0}^{\lfloor\frac{q+1}{2}\rfloor}\mathbb{M}_{\beta^{i}}(x),

where 𝕄β0(x)=x1\mathbb{M}_{\beta^{0}}(x)=x-1,

𝕄βi(x)\displaystyle\mathbb{M}_{\beta^{i}}(x) =(xβi)(xβq+1i)\displaystyle=(x-\beta^{i})(x-\beta^{q+1-i})
=(xβi)(xβi)\displaystyle=(x-\beta^{i})(x-\beta^{-i})

for all 1iq21\leq i\leq\frac{q}{2}, and

𝕄βq+12(x)\displaystyle\mathbb{M}_{\beta^{\frac{q+1}{2}}}(x) =xβq+12=x+1\displaystyle=x-\beta^{\frac{q+1}{2}}=x+1

for qq being odd.

For each uu with 1uq+121\leq u\leq\lfloor\frac{q+1}{2}\rfloor, define

gu(x)=𝕄βu(x)𝕄βu+1(x)𝕄βq+12(x).\displaystyle g_{u}(x)=\mathbb{M}_{\beta^{u}}(x)\mathbb{M}_{\beta^{u+1}}(x)\cdots\mathbb{M}_{\beta^{\lfloor\frac{q+1}{2}\rfloor}}(x).

Let 𝒞u{\mathcal{C}}_{u} be the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with generator polynomial gu(x)g_{u}(x). We have the following result.

Theorem 7.

[31, Chapter 11] [9] For each uu with 1uq+121\leq u\leq\lfloor\frac{q+1}{2}\rfloor, 𝒞u{\mathcal{C}}_{u} is a [q+1,2u1,q2u+3][q+1,2u-1,q-2u+3] MDS cyclic code and (𝒞u)({\mathcal{C}}_{u})^{\perp} is a [q+1,q+22u,2u][q+1,q+2-2u,2u] MDS cyclic code. Both codes are reversible.

The codes 𝒞u{\mathcal{C}}_{u} and (𝒞u)({\mathcal{C}}_{u})^{\perp} are called the classical MDS cyclic codes. Reed-Solomon codes over GF(q){\mathrm{GF}}(q) are MDS codes over GF(q){\mathrm{GF}}(q) with length q1q-1. Hence, the codes 𝒞u{\mathcal{C}}_{u} and (𝒞u)({\mathcal{C}}_{u})^{\perp} in Theorem 7 are not Reed-Solomon codes. The objective of this paper is to study the extended codes of some of the MDS codes 𝒞u{\mathcal{C}}_{u}.

IV The extended codes of the family of MDS cyclic codes

The objective of this section is to study the extended codes 𝒞u¯\overline{{\mathcal{C}}_{u}} of the family of MDS codes 𝒞u{\mathcal{C}}_{u} introduced in Section III and their duals. As will be seen later, we can settle the parameters of the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} only for a few values of uu.

IV-A Some general results of the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} and its dual

By Lemma 1, the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} has length q+2q+2, dimension 2u12u-1 and

d(𝒞u¯)=d(𝒞u) or d(𝒞u¯)=d(𝒞u)+1.d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}_{u})\mbox{ or }d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}_{u})+1.

As will be seen later, both cases can happen.

In the case that d(𝒞u¯)=d(𝒞u)+1d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}_{u})+1, 𝒞u¯\overline{{\mathcal{C}}_{u}} is an MDS code and the parameters and weight distributions of 𝒞u¯\overline{{\mathcal{C}}_{u}} are easily obtained from Lemma 5. A trivial verification shows that if u=1u=1, then 𝒞¯u\overline{{\mathcal{C}}}_{u} is a [q+2,1,q+2][q+2,1,q+2] MDS code over GF(q){\mathrm{GF}}(q). It will be proved later that 𝒞2¯\overline{{\mathcal{C}}_{2}} and 𝒞q/2¯\overline{{\mathcal{C}}_{q/2}} are MDS codes for even qq. The classical MDS code conjecture leads to the conjecture that 𝒞u¯\overline{{\mathcal{C}}_{u}} is an AMDS code for the other cases.

In the case that d(𝒞u¯)=d(𝒞u)d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}_{u}), 𝒞u¯\overline{{\mathcal{C}}_{u}} is a [q+2,2u1,q+32u][q+2,2u-1,q+3-2u] AMDS code over GF(q){\mathrm{GF}}(q), but its weight distribution cannot be derived from Lemma 6. As will be seen later, settling the weight distribution of 𝒞u¯\overline{{\mathcal{C}}_{u}} is very difficult in general. In this case, we have

d((𝒞u¯))2u1.\displaystyle d((\overline{{\mathcal{C}}_{u}})^{\perp})\leq 2u-1.

If d((𝒞u¯))=2u1d((\overline{{\mathcal{C}}_{u}})^{\perp})=2u-1, then 𝒞u¯\overline{{\mathcal{C}}_{u}} is an NMDS code. We are much more interested in this case. As will be seen later, in some cases we indeed have d((𝒞u¯))<2u1d((\overline{{\mathcal{C}}_{u}})^{\perp})<2u-1. The most difficult problem in this project is to determine d((𝒞u¯))d((\overline{{\mathcal{C}}_{u}})^{\perp}). The following theorem may be useful in determining d((𝒞u¯))d((\overline{{\mathcal{C}}_{u}})^{\perp}).

Theorem 8.

Let notation be the same as before. Let 2uq+122\leq u\leq\lfloor\frac{q+1}{2}\rfloor. Then

d((𝒞u¯))=d(𝒞(q,q+1,u,1))+1.\displaystyle d((\overline{{\mathcal{C}}_{u}})^{\perp})=d({\mathcal{C}}_{(q,q+1,u,1)})+1.
Proof.

Recall that 𝒞u{\mathcal{C}}_{u} has generator polynomial

gu(x)=𝕄βu(x)𝕄βu+1(x)𝕄βq+12(x).g_{u}(x)=\mathbb{M}_{\beta^{u}}(x)\mathbb{M}_{\beta^{u+1}}(x)\cdots\mathbb{M}_{\beta^{\lfloor\frac{q+1}{2}\rfloor}}(x).

It is easily verified that (𝒞u)({\mathcal{C}}_{u})^{\perp} has generator polynomial

hu(x)=(x1)𝕄β(x)𝕄βu1(x).h_{u}(x)=(x-1)\mathbb{M}_{\beta}(x)\cdots\mathbb{M}_{\beta^{u-1}}(x).

It is easily seen that gu(x)|(xq+11x1)g_{u}(x)\mid(\frac{x^{q+1}-1}{x-1}) and hu(x)(xq+11x1)h_{u}(x)\nmid(\frac{x^{q+1}-1}{x-1}), then 𝟏𝒞u{\mathbf{1}}\in{\mathcal{C}}_{u} and 𝟏(𝒞u){\mathbf{1}}\notin({\mathcal{C}}_{u})^{\perp}. By Result 2 of Lemma 3, we deduce that d((𝒞u¯))=d(𝒞u~)+1d((\overline{{\mathcal{C}}_{u}})^{\perp})=d(\widetilde{{\mathcal{C}}_{u}^{\perp}})+1. It is easily seen that

gcd(xn1x1,hu(x))=𝕄β(x)𝕄β2(x)𝕄βu1(x).\displaystyle\gcd\left(\frac{x^{n}-1}{x-1},h_{u}(x)\right)=\mathbb{M}_{\beta}(x)\mathbb{M}_{\beta^{2}}(x)\cdots\mathbb{M}_{\beta^{u-1}}(x). (9)

It follows from Lemma 4 that 𝒞u~\widetilde{{\mathcal{C}}_{u}^{\perp}} is the narrow-sense BCH code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with designed distance uu. The desired result follows. ∎

It follows from Equation (9) that (𝒞u~)\left(\widetilde{{\mathcal{C}}_{u}^{\perp}}\right)^{\perp} is the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with generator polynomial (x1)gu(x)(x-1)g_{u}(x), which is subcode of 𝒞u{\mathcal{C}}_{u}. Specifically,

𝒞u=(𝒞u~)~.\displaystyle{\mathcal{C}}_{u}=\widetilde{\left(\widetilde{{\mathcal{C}}_{u}^{\perp}}\right)^{\perp}}. (10)

To simplify notation, we will use 𝒞(u){\mathcal{C}}(u) to denote the code (𝒞u~)\left(\widetilde{{\mathcal{C}}_{u}^{\perp}}\right)^{\perp}. With this new notation, Equation (10) becomes 𝒞u=𝒞(u)~{\mathcal{C}}_{u}=\widetilde{{\mathcal{C}}(u)}. Note that 𝒞(u)𝒞u{\mathcal{C}}(u)\subseteq{\mathcal{C}}_{u}, we get that d(𝒞u)d(𝒞(u))d({\mathcal{C}}_{u})\leq d({\mathcal{C}}(u)). Hence, 𝒞(u){\mathcal{C}}(u) is a [q+1,2u2,d][q+1,2u-2,d] code over GF(q){\mathrm{GF}}(q), where d{q2u+3,q2u+4}d\in\{q-2u+3,q-2u+4\}. Furthermore, we have the following result.

Theorem 9.

Let notation be the same as before. Let 2uq+122\leq u\leq\lfloor\frac{q+1}{2}\rfloor . Then d(𝒞u¯)=d(𝒞(u))d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}(u)) and Aq2u+3(𝒞u¯)=Aq2u+3(𝒞(u))A_{q-2u+3}(\overline{{\mathcal{C}}_{u}})=A_{q-2u+3}({\mathcal{C}}(u)).

Proof.

Let Tr(x){\mathrm{Tr}}(x) denote the trace function from GF(q2){\mathrm{GF}}(q^{2}) to GF(q){\mathrm{GF}}(q). By Delsarte’s theorem,

𝒞(u)={𝐜(a1,a2,,au1):aiGF(q2)},{\mathcal{C}}(u)=\left\{{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1}):a_{i}\in{\mathrm{GF}}(q^{2})\right\},

and 𝒞u={a𝟏+𝐜(a1,a2,,au1):aGF(q),aiGF(q2)}{\mathcal{C}}_{u}=\left\{a{\mathbf{1}}+{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1}):a\in{\mathrm{GF}}(q),a_{i}\in{\mathrm{GF}}(q^{2})\right\}, where

𝐜(a1,a2,,au1)=(Tr(i=1u1aiβij))j=0q.{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1})=\left({\mathrm{Tr}}\left(\sum_{i=1}^{u-1}a_{i}\beta^{ij}\right)\right)_{j=0}^{q}.

For any ii with 1iu11\leq i\leq u-1, βi1\beta^{i}\neq 1. Then j=0qβij=0\sum_{j=0}^{q}\beta^{ij}=0. It is easily verified that

(a𝟏+𝐜(a1,a2,,au1))𝟏T=\displaystyle(a{\mathbf{1}}+{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1})){\mathbf{1}}^{T}= a+j=0qTr(i=1u1aiβij)\displaystyle\penalty\ a+\sum_{j=0}^{q}{\mathrm{Tr}}\left(\sum_{i=1}^{u-1}a_{i}\beta^{ij}\right)
=\displaystyle= a+Tr(i=1u1aij=0qβij)\displaystyle\penalty\ a+{\mathrm{Tr}}\left(\sum_{i=1}^{u-1}a_{i}\sum_{j=0}^{q}\beta^{ij}\right)
=\displaystyle= a.\displaystyle\penalty\ a.

Therefore,

𝒞u¯={(a𝟏+𝐜(a1,a2,,au1),a):aGF(q),aiGF(q2)}.\overline{{\mathcal{C}}_{u}}=\{(a{\mathbf{1}}+{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1}),-a):a\in{\mathrm{GF}}(q),\ a_{i}\in{\mathrm{GF}}(q^{2})\}.

Since d(𝒞u)=q2u+3d({\mathcal{C}}_{u})=q-2u+3, we deduce that

𝚠𝚝((,,,))=q2u+3{\mathtt{wt}}((a{\mathbf{1}}+{\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1}),-a))=q-2u+3

if and only if a=0a=0 and 𝚠𝚝(𝐜(a1,a2,,au1))=q2u+3{\mathtt{wt}}({\mathbf{c}}(a_{1},a_{2},\ldots,a_{u-1}))=q-2u+3. As a result,

Aq2u+3(𝒞u¯)=Aq2u+3(𝒞(u)).A_{q-2u+3}(\overline{{\mathcal{C}}_{u}})=A_{q-2u+3}({\mathcal{C}}(u)). (11)

Notice that

d(𝒞u¯),d(𝒞(u)){q2u+3,q2u+4},d(\overline{{\mathcal{C}}_{u}}),d({\mathcal{C}}(u))\in\{q-2u+3,q-2u+4\},

by Equation (11), we deduce that d(𝒞u¯)=d(𝒞(u))d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}(u)). This completes the proof. ∎

Theorems 8 and 9 show that 𝒞u{\mathcal{C}}_{u}, 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)}, 𝒞u¯\overline{{\mathcal{C}}_{u}} and their duals have the following relationship:

𝒞u:[q+1,2u1,q2u+3]Dual(𝒞u):[q+1,q2u+2,2u]𝒞(u):[q+1,2u2,d2]Dual𝒞(q,q+1,u,1):[q+1,q2u+3,d1]d2{q2u+3,q2u+4}ud12u1𝒞u¯:[q+2,2u1,d2]Dual(𝒞u¯):[q+2,q2u+3,d1+1].\displaystyle\begin{matrix}{\mathcal{C}}_{u}:\penalty\ [q+1,2u-1,q-2u+3]&\stackrel{{\scriptstyle{\rm Dual}}}{{\longleftrightarrow}}&({\mathcal{C}}_{u})^{\perp}:\penalty\ [q+1,q-2u+2,2u]\\ \bigcup&&\bigcap\\ {\mathcal{C}}(u):\penalty\ [q+1,2u-2,d_{2}]&\stackrel{{\scriptstyle{\rm Dual}}}{{\longleftrightarrow}}&{\mathcal{C}}_{(q,q+1,u,1)}:\penalty\ [q+1,q-2u+3,d_{1}]\\ d_{2}\in\{q-2u+3,q-2u+4\}&&u\leq d_{1}\leq 2u-1\\ \overline{{\mathcal{C}}_{u}}:\penalty\ [q+2,2u-1,d_{2}]&\stackrel{{\scriptstyle{\rm Dual}}}{{\longleftrightarrow}}&(\overline{{\mathcal{C}}_{u}})^{\perp}:\penalty\ [q+2,q-2u+3,d_{1}+1].\\ \end{matrix}

Hence, the minimum distance of (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} (resp. 𝒞u¯\overline{{\mathcal{C}}_{u}} ) can be determined if the minimum distance of the code 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} (resp. 𝒞(u){\mathcal{C}}(u) ) is known and vice versa. The following lemma comes from [37].

Lemma 10.

Let qq be a prime power and let uu with 2uq+122\leq u\leq\lfloor\frac{q+1}{2}\rfloor. Then the following hold.

  1. 1.

    If u|(q+1)u\mid(q+1), then d(𝒞(q,q+1,u,1))=ud({\mathcal{C}}_{(q,q+1,u,1)})=u.

  2. 2.

    If u(q+1)u\nmid(q+1), then d(𝒞(q,q+1,u,1))u+1d({\mathcal{C}}_{(q,q+1,u,1)})\geq u+1.

Theorem 11.

Let q=pm>2q=p^{m}>2, where pp is a prime and mm is a positive integer. Let uu be an integer with 2uq+122\leq u\leq\lfloor\frac{q+1}{2}\rfloor. Then the following hold.

  1. 1.

    If u|(q+1)u\mid(q+1), then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,2u1,q2u+3][q+2,2u-1,q-2u+3] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,q2u+3,u+1][q+2,q-2u+3,u+1].

  2. 2.

    If u(q+1)u\nmid(q+1) and (u+1)|(q+1)(u+1)\mid(q+1), then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,2u1,d][q+2,2u-1,d], where d=q2u+4d=q-2u+4 if u=p=2u=p=2 and mm is odd, d=q2u+3d=q-2u+3 otherwise. The dual code (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,q2u+3,u+2][q+2,q-2u+3,u+2].

Proof.

By Theorem 7, 𝒞u{\mathcal{C}}_{u} has parameters [q+1,2u1,q2u+3][q+1,2u-1,q-2u+3]. It follows from Lemma 1 that 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,2u1,d][q+2,2u-1,d], where d{q2u+3,q2u+4}d\in\{q-2u+3,q-2u+4\}. By Theorem 8, we obtain that d((𝒞u¯))=d(𝒞(q,q+1,u,1))+1d((\overline{{\mathcal{C}}_{u}})^{\perp})=d({\mathcal{C}}_{(q,q+1,u,1)})+1.

1) Since u|(q+1)u\mid(q+1), by Lemma 10, we deduce that d(𝒞(q,q+1,u,1))=ud({\mathcal{C}}_{(q,q+1,u,1)})=u. Therefore, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,q+32u,u+1][q+2,q+3-2u,u+1]. Since u>2u>2, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is not MDS. As a result, 𝒞u¯\overline{{\mathcal{C}}_{u}} is not MDS. Therefore, d=q2u+3d=q-2u+3.

2) It is easily verified that 𝒞(q,q+1,u+1,1)𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u+1,1)}\subseteq{\mathcal{C}}_{(q,q+1,u,1)}. Consequently,

d(𝒞(q,q+1,u,1))d(𝒞(q,q+1,u+1,1)).d({\mathcal{C}}_{(q,q+1,u,1)})\leq d({\mathcal{C}}_{(q,q+1,u+1,1)}).

Since (u+1)|(q+1)(u+1)\mid(q+1), we deduce that d(𝒞(q,q+1,u+1,1))=u+1d({\mathcal{C}}_{(q,q+1,u+1,1)})=u+1. Since u(q+1)u\nmid(q+1), it follows from Lemma 10 that d(𝒞(q,q+1,u,1))u+1d({\mathcal{C}}_{(q,q+1,u,1)})\geq u+1. Consequently, d(𝒞(q,q+1,u,1))=u+1d({\mathcal{C}}_{(q,q+1,u,1)})=u+1. It then following from Theorem 8 that d((𝒞u¯))=u+2d((\overline{{\mathcal{C}}_{u}})^{\perp})=u+2. In this case, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is an MDS code if and only if u=2u=2. By assumption, 2(q+1)2\nmid(q+1) and 3|(q+1)3\mid(q+1), we deduce that p=2p=2 and mm is odd. Therefore, we have the following hold.

  • If u=p=2u=p=2 and mm is odd, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is a [q+2,q1,4][q+2,q-1,4] MDS code and 𝒞u¯\overline{{\mathcal{C}}_{u}} is a [q+2,3,q][q+2,3,q] MDS code.

  • Otherwise, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is not MDS. Consequently, 𝒞u¯\overline{{\mathcal{C}}_{u}} is not MDS. Hence, d=q2u+3d=q-2u+3.

This completes the proof. ∎

Lemma 12.

[26] Let uu be a power of a prime pp and q=ueq=u^{e} with e2e\geq 2. Then d(𝒞(q,q+1,u,1))=u+1d({\mathcal{C}}_{(q,q+1,u,1)})=u+1.

Theorem 13.

Let q=pm>2q=p^{m}>2, where pp is a prime and mm is a positive integer. If u=psu=p^{s}, where ss is a positive integer with s|ms\mid m and s<ms<m. Then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,2u1,d][q+2,2u-1,d], where d=q2u+4d=q-2u+4 if u=2u=2, and d=q2u+3d=q-2u+3 if u>2u>2. The dual code (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,q2u+3,u+2][q+2,q-2u+3,u+2].

Proof.

By Theorem 7, 𝒞u{\mathcal{C}}_{u} has parameters [q+1,2u1,q2u+3][q+1,2u-1,q-2u+3]. By Lemma 1, 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,2u1,d][q+2,2u-1,d], where d{q2u+3,q2u+4}d\in\{q-2u+3,q-2u+4\}. It follows from Theorem 8 and Lemma 12 that d((𝒞u¯))=u+2d((\overline{{\mathcal{C}}_{u}})^{\perp})=u+2. Hence, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,q2u+3,u+2][q+2,q-2u+3,u+2]. Notice that (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is an MDS code over GF(q){\mathrm{GF}}(q) if and only if u=2u=2. Consequently, d(𝒞u¯)=q2u+4d(\overline{{\mathcal{C}}_{u}})=q-2u+4 for u=2u=2, and d(𝒞u¯)=q2u+3d(\overline{{\mathcal{C}}_{u}})=q-2u+3 for u>2u>2. This completes the proof. ∎

Example 14.

Let q=32q=3^{2}. By Theorems 11 and 13, we obtain the following results.

  1. 1.

    If u=2u=2, the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [11,3,8][11,3,8] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [11,8,3][11,8,3]. These two linear codes are optimal codes [16].

  2. 2.

    If u=3u=3, the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [11,5,6][11,5,6] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [11,6,5][11,6,5]. These two linear codes are optimal codes [16].

  3. 3.

    If u=4u=4, the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [11,7,4][11,7,4] and is an optimal code [16]. The code (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [11,4,6][11,4,6] and is a distance-almost-optimal code [16].

IV-B The case u=2u=2

In this subsection, we study the parameters of 𝒞2¯\overline{{\mathcal{C}}_{2}} and its dual. By Theorems 11 and 13, we have the following results.

Corollary 15.

Let qq be an odd prime power. Then 𝒞2¯\overline{{\mathcal{C}}_{2}} is a [q+2,3,q1][q+2,3,q-1] NMDS code over GF(q){\mathrm{GF}}(q).

Proof.

The desired result follows directly from Result 1 of Theorem 11. ∎

Example 16.

Let q=5q=5. Then the extended code 𝒞2¯\overline{{\mathcal{C}}_{2}} has parameters [7,3,4][7,3,4] and (𝒞2¯)(\overline{{\mathcal{C}}_{2}})^{\perp} has parameters [7,4,3][7,4,3]. These two linear codes are optimal codes [16].

Corollary 17.

Let q=2mq=2^{m} with m2m\geq 2. Then 𝒞2¯\overline{{\mathcal{C}}_{2}} is a [q+2,3,q][q+2,3,q] MDS code over GF(q){\mathrm{GF}}(q) with weight enumerator

1+(q+2)(q21)2zq+q(q1)22zq+2.1+\frac{(q+2)(q^{2}-1)}{2}z^{q}+\frac{q(q-1)^{2}}{2}z^{q+2}.
Proof.

The desired conclusion on the parameters of 𝒞2¯\overline{{\mathcal{C}}_{2}} follows from Theorem 13. The desired conclusion on the weight distribution follows from Lemma 5. This completes the proof. ∎

Any [2m+2,3,2m][2^{m}+2,3,2^{m}] code over GF(2m){\mathrm{GF}}(2^{m}) is called a hyperoval code, as it corresponds to a hyperoval in the Desarguesian projective plane PG(2,GF(2m)){\mathrm{PG}}(2,{\mathrm{GF}}(2^{m})) [13, Chapter 12].

Example 18.

Let q=23q=2^{3}. The extended code 𝒞2¯\overline{{\mathcal{C}}_{2}} has parameters [10,3,8][10,3,8] and weight enumerator 1+315z8+196z101+315z^{8}+196z^{10}. The dual code (𝒞2¯)(\overline{{\mathcal{C}}_{2}})^{\perp} has parameters [10,7,4][10,7,4].

IV-C The case u=3u=3

In this subsection, we study the parameters of 𝒞3¯\overline{{\mathcal{C}}_{3}} and its dual. Let 𝒞(3){\mathcal{C}}(3) be the dual of the BCH code 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)}, then 𝒞(3){\mathcal{C}}(3) is the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with check polynomial 𝕄β(x)𝕄β2(x)\mathbb{M}_{\beta}(x)\mathbb{M}_{\beta^{2}}(x), where β\beta is a primitive (q+1)(q+1)-th root of unity in GF(q2){\mathrm{GF}}(q^{2}). The following lemmas will be needed later.

Lemma 19.

Let notation be the same as before. Let Uq+1={1,β,,βq}U_{q+1}=\{1,\beta,\cdots,\beta^{q}\}. Then d(𝒞(q,q+1,3,1))4d({\mathcal{C}}_{(q,q+1,3,1)})\leq 4 if and only if there are four pairwise distinct elements x,y,z,wx,y,z,w in Uq+1U_{q+1} such that

xy+xz+xw+yz+yw+zw=0.xy+xz+xw+yz+yw+zw=0.
Proof.

For any 44 pairwise distinct elements x,y,z,wx,y,z,w in Uq+1U_{q+1}, define a 4×44\times 4 matrix 𝐌\mathbf{M} by

[x2y2z2w2x1y1z1w1xyzwx2y2z2w2].\begin{bmatrix}x^{-2}&y^{-2}&z^{-2}&w^{-2}\\ x^{-1}&y^{-1}&z^{-1}&w^{-1}\\ x&y&z&w\\ x^{2}&y^{2}&z^{2}&w^{2}\\ \end{bmatrix}.

It is clear that d(𝒞(q,q+1,3,1))4d({\mathcal{C}}_{(q,q+1,3,1)})\leq 4 if and only if there are four pairwise distinct elements x,y,z,wx,y,z,w in Uq+1U_{q+1} such that the system of homogeneous linear equations

𝐌𝐱T=𝟎\mathbf{M}{\mathbf{x}}^{T}={\mathbf{0}} (12)

has a nonzero solution in GF(q)4{\mathrm{GF}}(q)^{4}. By [26, Lemma 16], (12) has a nonzero solution in GF(q)4{\mathrm{GF}}(q)^{4} if and only if rank(𝐌)<4{\mathrm{rank}}(\mathbf{M})<4, where rank(𝐌){\mathrm{rank}}(\mathbf{M}) denotes the rank of the matrix 𝐌\mathbf{M}. It is easily verified that

det(𝐌)=σx,y,z,w×(xy+xz+xw+yz+yw+zw).\det(\mathbf{M})=\sigma_{x,y,z,w}\times(xy+xz+xw+yz+yw+zw). (13)

where σx,y,z,w=(yx)(zx)(zy)(wx)(wy)(wz)(xyzw)2\sigma_{x,y,z,w}=\frac{(y-x)(z-x)(z-y)(w-x)(w-y)(w-z)}{(xyzw)^{2}}. Notice that x,y,z,wx,y,z,w are pairwise distinct, we get that σx,y,z,w0\sigma_{x,y,z,w}\neq 0. Therefore, rank(𝐌)<4{\mathrm{rank}}(\mathbf{M})<4 if and only if

xy+xz+xw+yz+yw+zw=0.xy+xz+xw+yz+yw+zw=0.

This completes the proof. ∎

The parameters of 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)} and 𝒞(3){\mathcal{C}}(3) are documented in the following theorem.

Theorem 20.

Let q5q\geq 5 be a prime power. Then the following hold.

  1. 1.

    If 3|(q+1)3\mid(q+1), then 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)} has parameters [q+1,q3,3][q+1,q-3,3] and 𝒞(3){\mathcal{C}}(3) has parameters [q+1,4,q3][q+1,4,q-3].

  2. 2.

    If 3(q+1)3\nmid(q+1), then 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)} is a [q+1,q3,4][q+1,q-3,4] NMDS code over GF(q){\mathrm{GF}}(q).

Proof.

It is clear that 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)} has length q+1q+1 and dimension q3q-3, and 𝒞(3){\mathcal{C}}(3) has length q+1q+1 and dimension 44, respectively. Notice that d(𝒞(3)){q3,q2}d({\mathcal{C}}(3))\in\{q-3,q-2\}, and d(𝒞(3))=q2d({\mathcal{C}}(3))=q-2 if and only if 𝒞(3){\mathcal{C}}(3) is MDS. Hence, we only need to prove that d(𝒞(q,q+1,3,1))=3d({\mathcal{C}}_{(q,q+1,3,1)})=3 for 3|(q+1)3\mid(q+1) and d(𝒞(q,q+1,3,1))=4d({\mathcal{C}}_{(q,q+1,3,1)})=4 for 3(q+1)3\nmid(q+1). The rest of the proof is divided into the following two cases.

Case 1: 3|(q+1)3\mid(q+1). It follows from Lemma 10 that d(𝒞(q,q+1,3,1))=3d({\mathcal{C}}_{(q,q+1,3,1)})=3. The desired result follows.

Case 2: 3(q+1)3\nmid(q+1). Suppose q=pmq=p^{m}, where pp is a prime and mm is a positive integer. If p{2,3}p\in\{2,3\}, the desired result was proved in [12]. Now suppose pp is an odd prime. Since 3(q+1)3\nmid(q+1), by Lemma 10, d(𝒞(q,q+1,3,1))4d({\mathcal{C}}_{(q,q+1,3,1)})\geq 4. Below we prove that d(𝒞(q,q+1,3,1))4d({\mathcal{C}}_{(q,q+1,3,1)})\leq 4. Let xUq+1x\in U_{q+1}, y=xy=-x, zUq+1\{x,x}z\in U_{q+1}\backslash\{x,-x\} and w=x2z1w=x^{2}z^{-1}. It is easily verified that x,y,z,wUq+1x,y,z,w\in U_{q+1} and

xy+xz+xw+yz+yw+zw=0.xy+xz+xw+yz+yw+zw=0.

Since qq is odd, we deduce that yxy\neq x. We now prove that x2z1Uq+1\{x,x,z}x^{2}z^{-1}\in U_{q+1}\backslash\{x,-x,z\}.

  • If x2z1=xx^{2}z^{-1}=x, we get that z=xz=x, a contradiction.

  • If x2z1=yx^{2}z^{-1}=y, we get that z=xz=-x, a contradiction.

  • If x2z1=zx^{2}z^{-1}=z, we deduce that z=xz=x or x-x, a contradiction.

By Lemma 19, d(𝒞(q,q+1,3,1))4d({\mathcal{C}}_{(q,q+1,3,1)})\leq 4. In summary, d(𝒞(q,q+1,3,1))=4d({\mathcal{C}}_{(q,q+1,3,1)})=4. This completes the proof. ∎

The parameters of 𝒞3¯\overline{{\mathcal{C}}_{3}} are documented in the following theorem.

Theorem 21.

Let q5q\geq 5 be a prime power. Then the following hold.

  1. 1.

    If 3|(q+1)3\mid(q+1), then 𝒞3¯\overline{{\mathcal{C}}_{3}} has parameters [q+2,5,q3][q+2,5,q-3] and (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} has parameters [q+2,q3,4][q+2,q-3,4].

  2. 2.

    If 3(q+1)3\nmid(q+1), then 𝒞3¯\overline{{\mathcal{C}}_{3}} is a [q+2,5,q3][q+2,5,q-3] NMDS code over GF(q){\mathrm{GF}}(q).

Proof.

By Theorem 7, 𝒞3{\mathcal{C}}_{3} has parameters [q+1,5,q3][q+1,5,q-3]. Then 𝒞3¯\overline{{\mathcal{C}}_{3}} has length q+2q+2 and dimension 55. Consequently, (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} has length q+2q+2 and dimension q3q-3. By Theorems 9 and 20, we get that d(𝒞3¯)=d(𝒞(3))=q3d(\overline{{\mathcal{C}}_{3}})=d({\mathcal{C}}(3))=q-3. By Theorems 8 and 20, we obtain that

d((𝒞3¯))=d(𝒞(q,q+1,3,1))+1={4if 3|(q+1),5if 3(q+1).\displaystyle d((\overline{{\mathcal{C}}_{3}})^{\perp})=d({\mathcal{C}}_{(q,q+1,3,1)})+1=\begin{cases}4\penalty\ &{\rm if}\penalty\ 3\mid(q+1),\\ 5\penalty\ &{\rm if}\penalty\ 3\nmid(q+1).\end{cases}

This completes the proof. ∎

Example 22.

Let q=52q=5^{2}. Then the following hold.

  1. 1.

    The code 𝒞3{\mathcal{C}}_{3} has parameters [26,5,22][26,5,22] and (𝒞3)({\mathcal{C}}_{3})^{\perp} has parameters [26,21,6][26,21,6].

  2. 2.

    The BCH code 𝒞(q,q+1,3,1){\mathcal{C}}_{(q,q+1,3,1)} has parameters [26,22,4][26,22,4] and 𝒞(3){\mathcal{C}}(3) has parameters [26,4,22][26,4,22].

  3. 3.

    The extended code 𝒞3¯\overline{{\mathcal{C}}_{3}} has parameters [27,5,22][27,5,22] and (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} has parameters [27,22,5][27,22,5].

By Theorem 9, we have

Aq3(𝒞3¯)=Aq3(𝒞(3)).A_{q-3}(\overline{{\mathcal{C}}_{3}})=A_{q-3}({\mathcal{C}}(3)). (14)

When q>5q>5 and q2(mod3)q\not\equiv 2\pmod{3}, by Theorem 21, 𝒞3¯\overline{{\mathcal{C}}_{3}} is an NMDS code over GF(q){\mathrm{GF}}(q). From Lemma 6 and Equation (14), the weight distribution of 𝒞3¯\overline{{\mathcal{C}}_{3}} is determined by Aq3(𝒞(3))A_{q-3}({\mathcal{C}}(3)). It seems difficult to determine Aq3(𝒞(3))A_{q-3}({\mathcal{C}}(3)) in general. We will determine the weight distribution of 𝒞3¯\overline{{\mathcal{C}}_{3}} for two special cases. The following two lemmas will be needed later.

Lemma 23.

[12] Let q=2mq=2^{m} with m4m\geq 4 being even. Then 𝒞(3){\mathcal{C}}(3) is a [q+1,4,q3][q+1,4,q-3] NMDS code with the following weight distribution:

  • A0(𝒞(3))=1A_{0}({\mathcal{C}}(3))=1.

  • Aq3(𝒞(3))=(q4)(q1)q(q+1)24A_{q-3}({\mathcal{C}}(3))=\frac{(q-4)(q-1)q(q+1)}{24}.

  • Aq2(𝒞(3))=(q1)q(q+1)2A_{q-2}({\mathcal{C}}(3))=\frac{(q-1)q(q+1)}{2}.

  • Aq1(𝒞(3))=(q+1)q2(q1)4A_{q-1}({\mathcal{C}}(3))=\frac{(q+1)q^{2}(q-1)}{4}.

  • Aq(𝒞(3))=(q1)(q+1)(2q2+q+6)6A_{q}({\mathcal{C}}(3))=\frac{(q-1)(q+1)(2q^{2}+q+6)}{6}.

  • Aq+1(𝒞(3))=3q44q33q2+4q8A_{q+1}({\mathcal{C}}(3))=\frac{3q^{4}-4q^{3}-3q^{2}+4q}{8}.

  • Ai(𝒞(3))=0A_{i}({\mathcal{C}}(3))=0 for other ii.

Lemma 24.

[12] Let q=3mq=3^{m} with m2m\geq 2. Then 𝒞(3){\mathcal{C}}(3) is a [q+1,4,q3][q+1,4,q-3] NMDS code with the following weight distribution:

  • A0(𝒞(3))=1A_{0}({\mathcal{C}}(3))=1.

  • Aq3(𝒞(3))=(q1)2q(q+1)24A_{q-3}({\mathcal{C}}(3))=\frac{(q-1)^{2}q(q+1)}{24}.

  • Aq1(𝒞(3))=(q1)q(q+1)(q+3)4A_{q-1}({\mathcal{C}}(3))=\frac{(q-1)q(q+1)(q+3)}{4}.

  • Aq(𝒞(3))=(q21)(q2q+3)3A_{q}({\mathcal{C}}(3))=\frac{(q^{2}-1)(q^{2}-q+3)}{3}.

  • Aq+1(𝒞(3))=3(q1)2q(q+1)8A_{q+1}({\mathcal{C}}(3))=\frac{3(q-1)^{2}q(q+1)}{8}.

  • Ai(𝒞(3))=0A_{i}({\mathcal{C}}(3))=0 for other ii.

The following family of NMDS codes were claimed but not proved in [35]. Here we prove they are indeed NMDS and settle the weight distribution of 𝒞3¯\overline{{\mathcal{C}}_{3}}.

Theorem 25.

Let q=2mq=2^{m} with m4m\geq 4 being even. Then 𝒞3¯\overline{{\mathcal{C}}_{3}} is a [q+2,5,q3][q+2,5,q-3] NMDS code with the following weight distribution:

  • A0(𝒞3¯)=1A_{0}(\overline{{\mathcal{C}}_{3}})=1.

  • Aq3(𝒞3¯)=q44q3q2+4q24A_{q-3}(\overline{{\mathcal{C}}_{3}})=\frac{q^{4}-4q^{3}-q^{2}+4q}{24}.

  • Aq2(𝒞3¯)=q54q4+17q3+4q218q24A_{q-2}(\overline{{\mathcal{C}}_{3}})=\frac{q^{5}-4q^{4}+17q^{3}+4q^{2}-18q}{24}.

  • Aq1(𝒞3¯)=3q44q33q2+4q4A_{q-1}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{4}-4q^{3}-3q^{2}+4q}{4}.

  • Aq(𝒞3¯)=3q52q4+17q3+14q220q1212A_{q}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{5}-2q^{4}+17q^{3}+14q^{2}-20q-12}{12}.

  • Aq+1(𝒞3¯)=8q5+13q444q313q2+36q24A_{q+1}(\overline{{\mathcal{C}}_{3}})=\frac{8q^{5}+13q^{4}-44q^{3}-13q^{2}+36q}{24}.

  • Aq+2(𝒞3¯)=3q58q4+7q32q8A_{q+2}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{5}-8q^{4}+7q^{3}-2q}{8}.

  • Ai(𝒞3¯)=0A_{i}(\overline{{\mathcal{C}}_{3}})=0 for other ii.

Proof.

The conclusions on the parameters of 𝒞3¯\overline{{\mathcal{C}}_{3}} and (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} follow from Theorem 21. It remains to prove the weight distribution of the code 𝒞3¯\overline{{\mathcal{C}}_{3}}. It follows from Lemma 23 and Equation (14) that

Aq3(𝒞3¯)=(q4)(q1)q(q+1)24.A_{q-3}(\overline{{\mathcal{C}}_{3}})=\frac{(q-4)(q-1)q(q+1)}{24}. (15)

Recall that 𝒞3¯\overline{{\mathcal{C}}_{3}} is an NMDS code over GF(q){\mathrm{GF}}(q). From Lemma 6 and Equation (15), the desired weight distribution follows. ∎

Example 26.

Let q=24q=2^{4}. Then 𝒞3¯\overline{{\mathcal{C}}_{3}} has parameters [18,5,13][18,5,13] and weight enumerator

1+2040z13+35700z14+44880z15+257295z16+377400z17+331260z18.\displaystyle 1+2040z^{13}+35700z^{14}+44880z^{15}+257295z^{16}+377400z^{17}+331260z^{18}.

The dual code (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} has parameters [18,13,5][18,13,5]. Hence, 𝒞3¯\overline{{\mathcal{C}}_{3}} is NMDS in this case.

Similar to the proof of Theorem 25, one can prove the following.

Theorem 27.

Let q=3mq=3^{m} with m2m\geq 2. Then 𝒞3¯\overline{{\mathcal{C}}_{3}} is a [q+2,5,q3][q+2,5,q-3] NMDS code with the following weight distribution:

  • A0(𝒞3¯)=1A_{0}(\overline{{\mathcal{C}}_{3}})=1.

  • Aq3(𝒞3¯)=q4q3q2+q24A_{q-3}(\overline{{\mathcal{C}}_{3}})=\frac{q^{4}-q^{3}-q^{2}+q}{24}.

  • Aq2(𝒞3¯)=q54q4+2q3+4q23q24A_{q-2}(\overline{{\mathcal{C}}_{3}})=\frac{q^{5}-4q^{4}+2q^{3}+4q^{2}-3q}{24}.

  • Aq1(𝒞3¯)=3q4+q33q2q4A_{q-1}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{4}+q^{3}-3q^{2}-q}{4}.

  • Aq(𝒞3¯)=3q52q4+2q3+14q25q1212A_{q}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{5}-2q^{4}+2q^{3}+14q^{2}-5q-12}{12}.

  • Aq+1(𝒞3¯)=8q5+13q429q313q2+21q24A_{q+1}(\overline{{\mathcal{C}}_{3}})=\frac{8q^{5}+13q^{4}-29q^{3}-13q^{2}+21q}{24}.

  • Aq+2(𝒞3¯)=3q58q4+6q3q8A_{q+2}(\overline{{\mathcal{C}}_{3}})=\frac{3q^{5}-8q^{4}+6q^{3}-q}{8}.

  • Ai(𝒞3¯)=0A_{i}(\overline{{\mathcal{C}}_{3}})=0 for other ii.

Example 28.

Let q=32q=3^{2}. Then 𝒞3¯\overline{{\mathcal{C}}_{3}} has parameters [11,5,6][11,5,6] and weight enumerator

1+240z6+1440z7+5040z8+13880z9+22320z10+16128z11.\displaystyle 1+240z^{6}+1440z^{7}+5040z^{8}+13880z^{9}+22320z^{10}+16128z^{11}.

The dual code (𝒞3¯)(\overline{{\mathcal{C}}_{3}})^{\perp} has parameters [11,6,5][11,6,5]. Hence, 𝒞3¯\overline{{\mathcal{C}}_{3}} is NMDS in this case.

IV-D The case u=4u=4

In this subsection, we study the parameters of 𝒞4¯\overline{{\mathcal{C}}_{4}} and its dual. Before studying 𝒞4¯\overline{{\mathcal{C}}_{4}}, we need to do some preparations. Let 𝒞(4){\mathcal{C}}(4) denote the dual of the BCH code 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)}, then 𝒞(4){\mathcal{C}}(4) is the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with check polynomial 𝕄β(x)𝕄β2(x)𝕄β3(x)\mathbb{M}_{\beta}(x)\mathbb{M}_{\beta^{2}}(x)\mathbb{M}_{\beta^{3}}(x), where β\beta is a primitive (q+1)(q+1)-th root of unity in GF(q2){\mathrm{GF}}(q^{2}). When q=2mq=2^{m} with m4m\geq 4, the parameters of the BCH code 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} were studied in [36].

Lemma 29.

[36] Let q=2mq=2^{m} with m5m\geq 5 being odd. Then 𝒞(4){\mathcal{C}}(4) is a [q+1,6,q5][q+1,6,q-5] NMDS code over GF(q){\mathrm{GF}}(q) and

Aq5(𝒞(4))=(q1)(q8)30(q+14).A_{q-5}({\mathcal{C}}(4))=\frac{(q-1)(q-8)}{30}\binom{q+1}{4}.
Theorem 30.

Let q=2mq=2^{m} with m4m\geq 4. Then the following hold.

  1. 1.

    If mm is even, then 𝒞4¯\overline{{\mathcal{C}}_{4}} has parameters [q+2,7,q5][q+2,7,q-5] and (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} has parameters [q+2,q5,6][q+2,q-5,6].

  2. 2.

    If mm is odd, then 𝒞4¯\overline{{\mathcal{C}}_{4}} is a [q+2,7,q5][q+2,7,q-5] NMDS code with the following weight distribution:

    • A0(𝒞4¯)=1A_{0}(\overline{{\mathcal{C}}_{4}})=1.

    • Aq5(𝒞4¯)=q611q5+25q45q326q2+16q720A_{q-5}(\overline{{\mathcal{C}}_{4}})=\frac{q^{6}-11q^{5}+25q^{4}-5q^{3}-26q^{2}+16q}{720}.

    • Aq4(𝒞4¯)=q711q6+75q5155q4+24q3+166q2100q720A_{q-4}(\overline{{\mathcal{C}}_{4}})=\frac{q^{7}-11q^{6}+75q^{5}-155q^{4}+24q^{3}+166q^{2}-100q}{720}.

    • Aq3(𝒞4¯)=3q617q5+27q4+q330q2+16q48A_{q-3}(\overline{{\mathcal{C}}_{4}})=\frac{3q^{6}-17q^{5}+27q^{4}+q^{3}-30q^{2}+16q}{48}.

    • Aq2(𝒞4¯)=3q77q6+101q5133q464q3+140q240q144A_{q-2}(\overline{{\mathcal{C}}_{4}})=\frac{3q^{7}-7q^{6}+101q^{5}-133q^{4}-64q^{3}+140q^{2}-40q}{144}.

    • Aq1(𝒞4¯)=8q7+47q669q5+167q4+141q3214q280q144A_{q-1}(\overline{{\mathcal{C}}_{4}})=\frac{8q^{7}+47q^{6}-69q^{5}+167q^{4}+141q^{3}-214q^{2}-80q}{144}.

    • Aq(𝒞4¯)=45q7+93q6+127q5255q4200q3+402q2+28q240240A_{q}(\overline{{\mathcal{C}}_{4}})=\frac{45q^{7}+93q^{6}+127q^{5}-255q^{4}-200q^{3}+402q^{2}+28q-240}{240}.

    • Aq+1(𝒞4¯)=264q7+151q6845q5+415q4+181q3566q2+400q720A_{q+1}(\overline{{\mathcal{C}}_{4}})=\frac{264q^{7}+151q^{6}-845q^{5}+415q^{4}+181q^{3}-566q^{2}+400q}{720}.

    • Aq+2(𝒞4¯)=53q7133q6+99q519q4+8q28q144A_{q+2}(\overline{{\mathcal{C}}_{4}})=\frac{53q^{7}-133q^{6}+99q^{5}-19q^{4}+8q^{2}-8q}{144}.

    • Ai(𝒞4¯)=0A_{i}(\overline{{\mathcal{C}}_{4}})=0 for other ii.

Proof.

1) The first desired result follows directly from Theorem 13.

2) With Lemma 6, Theorem 9 and Lemma 29, similar to the proof of Theorem 25, we can prove the second desired result. Details are omitted here. ∎

Example 31.

Let q=24q=2^{4}. Then 𝒞4¯\overline{{\mathcal{C}}_{4}} has parameters [18,7,11][18,7,11] and is AMDS. The dual code (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} has parameters [18,11,6][18,11,6], but is not AMDS.

Example 32.

Let q=25q=2^{5}. Then 𝒞4¯\overline{{\mathcal{C}}_{4}} has parameters [34,7,27][34,7,27] and weight enumerator

1+1014816z27+34588312z28+55814880z29+686184752z30+\displaystyle 1+1014816z^{27}+34588312z^{28}+55814880z^{29}+686184752z^{30}+
2244500192z31+6875142087z32+12784990240z33+11677503088z34.\displaystyle 2244500192z^{31}+6875142087z^{32}+12784990240z^{33}+11677503088z^{34}.

The dual code (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} has parameters [34,27,7][34,27,7]. Hence, 𝒞4¯\overline{{\mathcal{C}}_{4}} is NMDS in this case.

Theorem 30 documents another family of NMDS codes in this paper.

Starting from now on, let q9q\geq 9 be an odd prime power. Let Tr(x){\mathrm{Tr}}(x) denote the trace function from GF(q2){\mathrm{GF}}(q^{2}) to GF(q){\mathrm{GF}}(q). To determine the parameters of 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} and 𝒞(4){\mathcal{C}}(4), we need the following preparations.

Suppose x1,x2,x3,x4,x5x_{1},x_{2},x_{3},x_{4},x_{5} are five pairwise distinct elements in Uq+1={1,β,,βq}U_{q+1}=\{1,\beta,\cdots,\beta^{q}\}. Define a 6×56\times 5 matrix 𝐌\mathbf{M} by

[x13x23x33x43x53x12x22x32x42x52x11x21x31x41x51x1x2x3x4x5x12x22x32x42x52x13x23x33x43x53].\displaystyle\begin{bmatrix}x_{1}^{-3}&x_{2}^{-3}&x_{3}^{-3}&x_{4}^{-3}&x_{5}^{-3}\\ x_{1}^{-2}&x_{2}^{-2}&x_{3}^{-2}&x_{4}^{-2}&x_{5}^{-2}\\ x_{1}^{-1}&x_{2}^{-1}&x_{3}^{-1}&x_{4}^{-1}&x_{5}^{-1}\\ x_{1}&x_{2}&x_{3}&x_{4}&x_{5}\\ x_{1}^{2}&x_{2}^{2}&x_{3}^{2}&x_{4}^{2}&x_{5}^{2}\\ x_{1}^{3}&x_{2}^{3}&x_{3}^{3}&x_{4}^{3}&x_{5}^{3}\\ \end{bmatrix}.

For any i{±1,±2,±3}i\in\{\pm 1,\pm 2,\pm 3\}, let 𝐌[i]\mathbf{M}[i] denote the submatrix of 𝐌\mathbf{M} obtained by deleting the row (x1i,x2i,x3i,x4i,x5i)(x_{1}^{i},x_{2}^{i},x_{3}^{i},x_{4}^{i},x_{5}^{i}) of the matrix 𝐌\mathbf{M}. Let I={1,2,3,4,5}I=\{1,2,3,4,5\}, the elementary symmetric polynomial (ESP) of degree ii in 55 variables x1,x2,,x5x_{1},x_{2},\cdots,x_{5}, written σ5,i\sigma_{5,i}, is defined by

σ5,i=JI,|J|=ijJxj.\sigma_{5,i}=\sum_{J\subseteq I,|J|=i}\prod_{j\in J}x_{j}.
Lemma 33.

Let q9q\geq 9 be an odd prime power and 4|(q1)4\mid(q-1). Then d(𝒞(q,q+1,4,1))=5d({\mathcal{C}}_{(q,q+1,4,1)})=5 if and only if there are five pairwise distinct elements x1,x2,x3,x4,x5x_{1},x_{2},x_{3},x_{4},x_{5} in Uq+1U_{q+1} such that σ5,2=0\sigma_{5,2}=0.

Proof.

Since 4|(q1)4\mid(q-1), we get that 4(q+1)4\nmid{(q+1)}. By Lemma 10, we deduce that d(𝒞(q,q+1,4,1))5d({\mathcal{C}}_{(q,q+1,4,1)})\geq 5. Therefore, d(𝒞(q,q+1,3,1))=5d({\mathcal{C}}_{(q,q+1,3,1)})=5 if and only if there are five pairwise distinct elements x1,x2,x3,x4,x5x_{1},x_{2},x_{3},x_{4},x_{5} in Uq+1U_{q+1} such that the system of homogeneous linear equations

𝐌𝐱T=𝟎\mathbf{M}{\mathbf{x}}^{T}={\mathbf{0}} (16)

has a nonzero solution in GF(q)5{\mathrm{GF}}(q)^{5}. By [26, Lemma 16], (16) has a nonzero solution in GF(q)5{\mathrm{GF}}(q)^{5} if and only if rank(𝐌)4{\mathrm{rank}}(\mathbf{M})\leq 4.

It is easily verified that

det(𝐌[3])\displaystyle\det(\mathbf{M}[-3]) =1j<i5(xixj)σ5,5×σ5,2q,\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}}\times\sigma_{5,2}^{q},
det(𝐌[2])\displaystyle\det(\mathbf{M}[-2]) =1j<i5(xixj)σ5,5×(σ5,1qσ5,2qσ5,5qσ5,2),\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}}\times(\sigma_{5,1}^{q}\sigma_{5,2}^{q}-\sigma_{5,5}^{q}\sigma_{5,2}),
det(𝐌[1])\displaystyle\det(\mathbf{M}[-1]) =1j<i5(xixj)σ5,5×(σ5,22qσ5,5qσ5,1qσ5,2),\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}}\times(\sigma_{5,2}^{2q}-\sigma_{5,5}^{q}\sigma_{5,1}^{q}\sigma_{5,2}),
det(𝐌[1])\displaystyle\det(\mathbf{M}[1]) =1j<i5(xixj)σ5,53×(σ5,22σ5,5σ5,1σ5,2q),\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}^{3}}\times(\sigma_{5,2}^{2}-\sigma_{5,5}\sigma_{5,1}\sigma_{5,2}^{q}),
det(𝐌[2])\displaystyle\det(\mathbf{M}[2]) =1j<i5(xixj)σ5,53×(σ5,1σ5,2σ5,5σ5,2q),\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}^{3}}\times(\sigma_{5,1}\sigma_{5,2}-\sigma_{5,5}\sigma_{5,2}^{q}),
det(𝐌[3])\displaystyle\det(\mathbf{M}[3]) =1j<i5(xixj)σ5,53×σ5,2.\displaystyle=\frac{\prod_{1\leq j<i\leq 5}(x_{i}-x_{j})}{\sigma_{5,5}^{3}}\times\sigma_{5,2}.

It then follows that rank(𝐌)4{\mathrm{rank}}(\mathbf{M})\leq 4 if and only if σ5,2=0\sigma_{5,2}=0. This completes the proof. ∎

Lemma 34.

Let q9q\geq 9 be an odd prime power and 4|(q1)4\mid(q-1). Then the following hold.

  1. 1.

    Tr(βi)Tr(βj){\mathrm{Tr}}(\beta^{i})\neq{\mathrm{Tr}}(\beta^{j}) for any iji\neq j with 1i,jq121\leq i,j\leq\frac{q-1}{2}.

  2. 2.

    Tr(βi){0,2,2}{\mathrm{Tr}}(\beta^{i})\notin\{0,2,-2\} for any 1iq121\leq i\leq\frac{q-1}{2}.

  3. 3.

    Tr(βi)=1{\mathrm{Tr}}(\beta^{i})=-1 with 1iq121\leq i\leq\frac{q-1}{2} if and only if 3|(q+1)3\mid(q+1) and i=q+13i=\frac{q+1}{3}.

Proof.

1) It is easily seen that

xq+11=(x1)(x+1)i=1q12(x2Tr(βi)x+1).x^{q+1}-1=(x-1)(x+1)\prod_{i=1}^{\frac{q-1}{2}}(x^{2}-{\mathrm{Tr}}(\beta^{i})x+1).

Since gcd(q+1,q)=1\gcd(q+1,q)=1, we deduce that xq+11x^{q+1}-1 has no multiple roots. Hence, Tr(βi)Tr(βj){\mathrm{Tr}}(\beta^{i})\neq{\mathrm{Tr}}(\beta^{j}) for any iji\neq j with 1i,jq121\leq i,j\leq\frac{q-1}{2}.

2) Since 4|(q1)4\mid(q-1), we deduce that

xq+11=x2(xq11)+x21x21(modx2+1).x^{q+1}-1=x^{2}(x^{q-1}-1)+x^{2}-1\equiv x^{2}-1\pmod{x^{2}+1}.

It follows that gcd(xq+11,x2+1)=gcd(x21,x2+1)=1\gcd(x^{q+1}-1,x^{2}+1)=\gcd(x^{2}-1,x^{2}+1)=1. It then follows that Tr(βi)0{\mathrm{Tr}}(\beta^{i})\neq 0 for any 1iq121\leq i\leq\frac{q-1}{2}. We now prove that Tr(βi){2,2}{\mathrm{Tr}}(\beta^{i})\notin\{2,-2\} for any 1iq121\leq i\leq\frac{q-1}{2}. Since

Tr(βq+12i)=Tr(βi)=Tr(βi),{\mathrm{Tr}}(\beta^{\frac{q+1}{2}-i})={\mathrm{Tr}}(-\beta^{-i})=-{\mathrm{Tr}}(\beta^{i}),

to prove the desired result we only need to prove Tr(βi)2{\mathrm{Tr}}(\beta^{i})\neq 2 for any 1iq121\leq i\leq\frac{q-1}{2}. It is easily verified that Tr(βi)=2{\mathrm{Tr}}(\beta^{i})=2 with 1iq121\leq i\leq\frac{q-1}{2} if and only if β2i2βi+1=0\beta^{2i}-2\beta^{i}+1=0, i.e., βi=1\beta^{i}=1 with 1iq121\leq i\leq\frac{q-1}{2}, a contradiction. The desired result follows.

3) It is clear that Tr(βi)=1{\mathrm{Tr}}(\beta^{i})=-1 if and only if β2i+βi+1=0\beta^{2i}+\beta^{i}+1=0. Notice that

β3i1=(βi1)(β2i+βi+1),\beta^{3i}-1=(\beta^{i}-1)(\beta^{2i}+\beta^{i}+1),

and βi1\beta^{i}\neq 1 for any 1iq121\leq i\leq\frac{q-1}{2}. Hence, β2i+βi+1=0\beta^{2i}+\beta^{i}+1=0 with 1iq121\leq i\leq\frac{q-1}{2} if and only if β3i=1\beta^{3i}=1. It follows that Tr(βi)=1{\mathrm{Tr}}(\beta^{i})=-1 with 1iq121\leq i\leq\frac{q-1}{2} if and only if 3|(q+1)3\mid(q+1) and i=q+13i=\frac{q+1}{3}. This completes the proof. ∎

Lemma 35.

Let q=pmq=p^{m} and 4|(q1)4\mid(q-1), where pp is an odd prime and mm is a positive integer. Then the following hold.

  1. 1.

    For any jj with 1jq1\leq j\leq q,

    i=1q12Tr(βji)=1(1)j.\sum_{i=1}^{\frac{q-1}{2}}{\mathrm{Tr}}(\beta^{ji})=-1-(-1)^{j}.
  2. 2.

    If 3|(q1)3\mid(q-1),

    i=1q12(Tr(βi)+1)1=q16modp,-\sum_{i=1}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1}=\frac{q-1}{6}\bmod{p},

    where imodpi\bmod{p} denotes the unique integer jj such that 0jp10\leq j\leq p-1 and p|(ij)p\mid(i-j).

  3. 3.

    If 3|(q+1)3\mid(q+1),

    i=1,iq+13q12(Tr(βi)+1)1=q12modp.-\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1}=\frac{q-1}{2}\bmod{p}.
Proof.

1) It is easily seen that

i=1q12Tr(βji)\displaystyle\sum_{i=1}^{\frac{q-1}{2}}{\mathrm{Tr}}(\beta^{ji}) =i=1q12[(βj)i+(βj)q+1i]\displaystyle=\sum_{i=1}^{\frac{q-1}{2}}[(\beta^{j})^{i}+(\beta^{j})^{q+1-i}]
=i=0q(βj)i1(βj)q+12\displaystyle=\sum_{i=0}^{q}(\beta^{j})^{i}-1-(\beta^{j})^{\frac{q+1}{2}}
=1(1)j\displaystyle=-1-(-1)^{j}

for any 1jq1\leq j\leq q. The desired result follows.

2) If 3|(q1)3\mid(q-1), then

xxq+11x1=(x2+x+1)j=0q13x3j1.x\frac{x^{q+1}-1}{x-1}=(x^{2}+x+1)\sum_{j=0}^{\frac{q-1}{3}}x^{3j}-1.

Hence,

(β2i+βi+1)j=0q13β3ij=1(\beta^{2i}+\beta^{i}+1)\sum_{j=0}^{\frac{q-1}{3}}\beta^{3ij}=1

for each 1iq1\leq i\leq q. It follows that

(Tr(βi)+1)1\displaystyle({\mathrm{Tr}}(\beta^{i})+1)^{-1} =βi(β2i+βi+1)1\displaystyle=\beta^{i}(\beta^{2i}+\beta^{i}+1)^{-1}
=j=0q13β(3j+1)i\displaystyle=\sum_{j=0}^{\frac{q-1}{3}}\beta^{(3j+1)i}
=j=0q76(β(3j+1)i+β(3j+1)i)+β(q+12)i\displaystyle=\sum_{j=0}^{\frac{q-7}{6}}(\beta^{(3j+1)i}+\beta^{-(3j+1)i})+\beta^{(\frac{q+1}{2})i}
=(1)i+j=0q76Tr(β(3j+1)i),\displaystyle=(-1)^{i}+\sum_{j=0}^{\frac{q-7}{6}}{\mathrm{Tr}}(\beta^{(3j+1)i}),

where the third equation follows from the fact that β[3(q13j)+1]i=β(q3j)i=β(3j+1)i\beta^{[3(\frac{q-1}{3}-j)+1]i}=\beta^{(q-3j)i}=\beta^{-(3j+1)i}. Consequently,

i=1q12(Tr(βi)+1)1\displaystyle-\sum_{i=1}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1} =i=1q12[(1)i+j=0q76Tr(β(3j+1)i)]\displaystyle=-\sum_{i=1}^{\frac{q-1}{2}}[(-1)^{i}+\sum_{j=0}^{\frac{q-7}{6}}{\mathrm{Tr}}(\beta^{(3j+1)i})]
=i=1q12j=0q76Tr(β(3j+1)i)\displaystyle=-\sum_{i=1}^{\frac{q-1}{2}}\sum_{j=0}^{\frac{q-7}{6}}{\mathrm{Tr}}(\beta^{(3j+1)i})
=j=0q76i=1q12Tr(β(3j+1)i)\displaystyle=-\sum_{j=0}^{\frac{q-7}{6}}\sum_{i=1}^{\frac{q-1}{2}}{\mathrm{Tr}}(\beta^{(3j+1)i})
=j=0q76[1+(1)3j+1]\displaystyle=\sum_{j=0}^{\frac{q-7}{6}}[1+(-1)^{3j+1}]
=q16modp,\displaystyle=\frac{q-1}{6}\bmod{p},

where the fourth equation follows from Result 1. The desired result follows.

3) If 3|(q+1)3\mid(q+1), then

(x2+x+1)j=0q53(2+3j)x3j(x1)+3j=0q23x3j=1.(x^{2}+x+1)\sum_{j=0}^{\frac{q-5}{3}}(2+3j)x^{3j}(x-1)+3\sum_{j=0}^{\frac{q-2}{3}}x^{3j}=1.

Let ii be an integer with 1iq121\leq i\leq\frac{q-1}{2} and iq+13i\neq\frac{q+1}{3}, then j=0q23β3ij=0\sum_{j=0}^{\frac{q-2}{3}}\beta^{3ij}=0. It follows that

(β2i+βi+1)j=0q53(2+3j)β3ij(βi1)=1.(\beta^{2i}+\beta^{i}+1)\sum_{j=0}^{\frac{q-5}{3}}(2+3j)\beta^{3ij}(\beta^{i}-1)=1.

Consequently,

(Tr(βi)+1)1\displaystyle({\mathrm{Tr}}(\beta^{i})+1)^{-1} =βi(β2i+βi+1)1\displaystyle=\beta^{i}(\beta^{2i}+\beta^{i}+1)^{-1}
=j=0q53(2+3j)(β(2+3j)iβ(1+3j)i)\displaystyle=\sum_{j=0}^{\frac{q-5}{3}}(2+3j)(\beta^{(2+3j)i}-\beta^{(1+3j)i})
=j=0q53(2+3j)β(2+3j)ij=1q23[2+3(q23j)]β[1+3(q23j)]i\displaystyle=\sum_{j=0}^{\frac{q-5}{3}}(2+3j)\beta^{(2+3j)i}-\sum_{j=1}^{\frac{q-2}{3}}[2+3(\frac{q-2}{3}-j)]\beta^{[1+3(\frac{q-2}{3}-j)]i}
=j=0q53(2+3j)β(2+3j)i+j=1q233jβ(2+3j)i\displaystyle=\sum_{j=0}^{\frac{q-5}{3}}(2+3j)\beta^{(2+3j)i}+\sum_{j=1}^{\frac{q-2}{3}}3j\beta^{-(2+3j)i}
=2j=0q53β(2+3j)i+3j=1q53jTr(β(2+3j)i)2βi\displaystyle=2\sum_{j=0}^{\frac{q-5}{3}}\beta^{(2+3j)i}+3\sum_{j=1}^{\frac{q-5}{3}}j{\mathrm{Tr}}(\beta^{(2+3j)i})-2\beta^{i}
=2Tr(βi)+3j=1q53jTr(β(2+3j)i),\displaystyle=-2{\mathrm{Tr}}(\beta^{i})+3\sum_{j=1}^{\frac{q-5}{3}}j{\mathrm{Tr}}(\beta^{(2+3j)i}),

where the sixth equation follows from the fact that

j=0q53β(2+3j)iβi\displaystyle\sum_{j=0}^{\frac{q-5}{3}}\beta^{(2+3j)i}-\beta^{i} =β2i(β3i)q231β3i1βi\displaystyle=\beta^{2i}\frac{(\beta^{3i})^{\frac{q-2}{3}}-1}{\beta^{3i}-1}-\beta^{i}
=βqiβ2iβ3i1βi\displaystyle=\frac{\beta^{qi}-\beta^{2i}}{\beta^{3i}-1}-\beta^{i}
=Tr(βi).\displaystyle=-{\mathrm{Tr}}(\beta^{i}).

Therefore,

i=1,iq+13q12(Tr(βi)+1)1\displaystyle-\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1} =i=1,iq+13q12[2Tr(βi)3j=1q53jTr(β(2+3j)i)]\displaystyle=\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}[2{\mathrm{Tr}}(\beta^{i})-3\sum_{j=1}^{\frac{q-5}{3}}j{\mathrm{Tr}}(\beta^{(2+3j)i})]
=i=1q12[2Tr(βi)3j=1q53jTr(β(2+3j)i)]2Tr(βq+13)+3j=1q53jTr(β2(q+1)3)\displaystyle=\sum_{i=1}^{\frac{q-1}{2}}[2{\mathrm{Tr}}(\beta^{i})-3\sum_{j=1}^{\frac{q-5}{3}}j{\mathrm{Tr}}(\beta^{(2+3j)i})]-2{\mathrm{Tr}}(\beta^{\frac{q+1}{3}})+3\sum_{j=1}^{\frac{q-5}{3}}j{\mathrm{Tr}}(\beta^{\frac{2(q+1)}{3}})
=3j=1q53j[1+(1)2+3j]+23j=1q53j\displaystyle=3\sum_{j=1}^{\frac{q-5}{3}}j[1+(-1)^{2+3j}]+2-3\sum_{j=1}^{\frac{q-5}{3}}j
=q12modp.\displaystyle=\frac{q-1}{2}\bmod{p}.

This completes the proof. ∎

Lemma 36.

Let q9q\geq 9 be an odd prime power, 4|(q1)4\mid(q-1) and 3(q+1)3\nmid(q+1). Then there exist two distinct integers ii and jj with 1i,jq121\leq i,j\leq\frac{q-1}{2} such that (Tr(βi)+1)(Tr(βj)+1)+1=0({\mathrm{Tr}}(\beta^{i})+1)({\mathrm{Tr}}(\beta^{j})+1)+1=0.

Proof.

If 5|(q+1)5\mid(q+1), then

(Tr(βq+15)+1)(Tr(β2(q+1)5)+1)+1=2i=04βi(q+1)5=0.\displaystyle({\mathrm{Tr}}(\beta^{\frac{q+1}{5}})+1)({\mathrm{Tr}}(\beta^{\frac{2(q+1)}{5}})+1)+1=2\sum_{i=0}^{4}\beta^{\frac{i(q+1)}{5}}=0.

The desired result follows. Below we suppose 5(q+1)5\nmid(q+1).

Let

Δ={i: 1iq12},\Delta=\left\{i:\ 1\leq i\leq\frac{q-1}{2}\right\},

then |Δ|=q12|\Delta|=\frac{q-1}{2}. By Result 3 of Lemma 34, Tr(βi)1{\mathrm{Tr}}(\beta^{i})\neq-1 for any iΔi\in\Delta. Let

S1={Tr(βi)+1:iΔ}S_{1}=\left\{{\mathrm{Tr}}(\beta^{i})+1:\ i\in\Delta\right\}

and S2={(Tr(βi)+1)1:iΔ}S_{2}=\left\{-({\mathrm{Tr}}(\beta^{i})+1)^{-1}:\ i\in\Delta\right\}. By Result 1 of Lemma 34, we deduce that |S1|=|S2|=|Δ||S_{1}|=|S_{2}|=|\Delta|. It is clear that

|S1S2|=|S1|+|S2||S1S2|=2|Δ||S1S2|.|S_{1}\cap S_{2}|=|S_{1}|+|S_{2}|-|S_{1}\cup S_{2}|=2|\Delta|-|S_{1}\cup S_{2}|. (17)

It follows from Result 2 of Lemma 34 that S1S2GF(q)\{1,0,1}S_{1}\cup S_{2}\subseteq{\mathrm{GF}}(q)\backslash\{-1,0,1\}. It follows from Equation (17) that |S1S2|q1(q3)=2|S_{1}\cap S_{2}|\geq q-1-(q-3)=2. Define

N:=|{iΔ:(Tr(βi)+1)2+1=0}|,N:=\left|\left\{i\in\Delta:({\mathrm{Tr}}(\beta^{i})+1)^{2}+1=0\right\}\right|,

then N{0,1,2}N\in\{0,1,2\}. Clearly, to prove the desired conclusion, it suffices to prove |S1S2|3|S_{1}\cap S_{2}|\geq 3 or N1N\leq 1.

Suppose on the contrary that |S1S2|=2|S_{1}\cap S_{2}|=2 and N=2N=2, then S1S2=GF(q)\{1,0,1}S_{1}\cup S_{2}={\mathrm{GF}}(q)\backslash\{-1,0,1\} and S1S2={a,a}S_{1}\cap S_{2}=\{a,-a\}, where aGF(q)a\in{\mathrm{GF}}(q)^{*} and a2=1a^{2}=-1. We seek a contradiction by considering two cases.

Case 1: p=3p=3. It is easily verified that

(Tr(βi)+1)2+1\displaystyle({\mathrm{Tr}}(\beta^{i})+1)^{2}+1 =β2i+β2iβiβi+1\displaystyle=\beta^{2i}+\beta^{-2i}-\beta^{i}-\beta^{-i}+1
=β2i(β4iβ3i+β2iβi+1)\displaystyle=\beta^{-2i}(\beta^{4i}-\beta^{3i}+\beta^{2i}-\beta^{i}+1)
=β2i(β5i+1βi+1).\displaystyle=\beta^{-2i}\left(\frac{\beta^{5i}+1}{\beta^{i}+1}\right).

It follows that (Tr(βi)+1)2+1=0({\mathrm{Tr}}(\beta^{i})+1)^{2}+1=0 with iΔi\in\Delta if and only if 10|(q+1)10\mid(q+1) and i{q+110,3(q+1)10}i\in\{\frac{q+1}{10},\frac{3(q+1)}{10}\}. By assumption, 5(q+1)5\nmid(q+1). Hence, N=0N=0, i.e., we get a contradiction.

Case 2: p>3p>3. Since 3(q+1)3\nmid(q+1), we deduce that 3|(q1)3\mid(q-1). Since S1S2=GF(q)\{1,0,1}S_{1}\cup S_{2}={\mathrm{GF}}(q)\backslash\{-1,0,1\} and S1S2={a,a}S_{1}\cap S_{2}=\{a,-a\}, we have

0=sS1S2s\displaystyle 0=\sum_{s\in S_{1}\cup S_{2}}s =sS1s+sS1ssS1S2s\displaystyle=\sum_{s\in S_{1}}s+\sum_{s\in S_{1}}s-\sum_{s\in S_{1}\cap S_{2}}s
=i=1q12(Tr(βi)+1)i=1q12(Tr(βi)+1)1\displaystyle=\sum_{i=1}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)-\sum_{i=1}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1}
=(q12+q16)modp,\displaystyle=(\frac{q-1}{2}+\frac{q-1}{6})\bmod{p}, (18)

where the last equation follows from Lemma 35. Clearly,

q12+q16=2(q1)30(modp).\frac{q-1}{2}+\frac{q-1}{6}=\frac{2(q-1)}{3}\not\equiv 0\pmod{p}.

Hence, Equation (18) is impossible, i.e., we get a contradiction.

Collecting the conclusions in Cases 1 and 2 yields |S1S2|3|S_{1}\cap S_{2}|\geq 3 or N1N\leq 1. This completes the proof. ∎

Lemma 37.

Let q>5q>5 be an odd prime, 4|(q1)4\mid(q-1) and 3|(q+1)3\mid(q+1). Then there exist two distinct integers ii and jj with 1i,jq121\leq i,j\leq\frac{q-1}{2} such that (Tr(βi)+1)(Tr(βj)+1)+1=0({\mathrm{Tr}}(\beta^{i})+1)({\mathrm{Tr}}(\beta^{j})+1)+1=0.

Proof.

Similar to Lemma 36, if 5|(q+1)5\mid(q+1), we have

(Tr(βq+15)+1)(Tr(β2(q+1)5)+1)+1=0.\displaystyle({\mathrm{Tr}}(\beta^{\frac{q+1}{5}})+1)({\mathrm{Tr}}(\beta^{\frac{2(q+1)}{5}})+1)+1=0.

The desired result follows. Below we suppose 5(q+1)5\nmid(q+1).

Let

Γ={i: 1iq12,iq+13},\Gamma=\left\{i:\ 1\leq i\leq\frac{q-1}{2},\ i\neq\frac{q+1}{3}\right\},

then |Γ|=q32|\Gamma|=\frac{q-3}{2}. By Result 3 of Lemma 34, Tr(βi)1{\mathrm{Tr}}(\beta^{i})\neq-1 for any iΓi\in\Gamma. Let

T1={Tr(βi)+1:iΓ}T_{1}=\left\{{\mathrm{Tr}}(\beta^{i})+1:\ i\in\Gamma\right\}

and T2={(Tr(βi)+1)1:iΓ}T_{2}=\left\{-({\mathrm{Tr}}(\beta^{i})+1)^{-1}:\ i\in\Gamma\right\}. By Result 1 of Lemma 34, we deduce that |T1|=|T2|=|Γ||T_{1}|=|T_{2}|=|\Gamma|. Similar to Lemma 36, we have

|T1T2|=2|Γ||T1T2|,|T_{1}\cap T_{2}|=2|\Gamma|-|T_{1}\cup T_{2}|, (19)

and T1T2GF(q)\{1,0,1}T_{1}\cup T_{2}\subseteq{\mathrm{GF}}(q)\backslash\{-1,0,1\}. Similar to Lemma 36, to prove the desired result, it suffices to prove that |T1T2|3|T_{1}\cap T_{2}|\geq 3 or

T:=|{iΓ:(Tr(βi)+1)2+1=0}|1.T:=|\{i\in\Gamma:\ ({\mathrm{Tr}}(\beta^{i})+1)^{2}+1=0\}|\leq 1.

We first prove |T1T2|2|T_{1}\cap T_{2}|\geq 2 by distinguishing the following two cases.

Case 1: Suppose |T1T2|=0|T_{1}\cap T_{2}|=0, then T1T2=GF(q)\{1,0,1}T_{1}\cup T_{2}={\mathrm{GF}}(q)\backslash\{-1,0,1\}. By Lemma 35, we obtain that

0\displaystyle 0 =tT1T2t=tT1t+tT2t\displaystyle=\sum_{t\in T_{1}\cup T_{2}}t=\sum_{t\in T_{1}}t+\sum_{t\in T_{2}}t
=i=1,iq+13q12(Tr(βi)+1)i=1,iq+13q12(Tr(βi)+1)1\displaystyle=\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)-\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1}
=i=1q12(Tr(βi)+1)i=1,iq+13q12(Tr(βi)+1)1=1,\displaystyle=\sum_{i=1}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)-\sum_{i=1,\atop i\neq\frac{q+1}{3}}^{\frac{q-1}{2}}({\mathrm{Tr}}(\beta^{i})+1)^{-1}=-1,

a contradiction.

Case 2: Suppose |T1T2|=1|T_{1}\cap T_{2}|=1, then there is an element aGF(q)\{1,0,1}a\in{\mathrm{GF}}(q)\backslash\{-1,0,1\} such that T1T2={a}T_{1}\cap T_{2}=\{a\}. It is easily verified that if aT1T2a\in T_{1}\cap T_{2}, then a1T1T2-a^{-1}\in T_{1}\cap T_{2}. Hence, a2=1a^{2}=-1. It follows from Equation (19) that |T1T2|=q4|T_{1}\cup T_{2}|=q-4. Consequently, there is an element bGF(q)\{1,0,1}b\in{\mathrm{GF}}(q)\backslash\{-1,0,1\} such that T1T2=GF(q)\{1,0,1,b}T_{1}\cup T_{2}={\mathrm{GF}}(q)\backslash\{-1,0,1,b\}. By Lemma 35, we obtain that

b=tT1T2t=tT1t+tT2ttT1T2t=1a,-b=\sum_{t\in T_{1}\cup T_{2}}t=\sum_{t\in T_{1}}t+\sum_{t\in T_{2}}t-\sum_{t\in T_{1}\cap T_{2}}t=-1-a,

i.e., b=1+ab=1+a. We now prove that aT1T2-a\in T_{1}\cup T_{2}. Clearly, to prove the desired result, we only need to prove 1+aa1+a\neq-a. Suppose 1+a=a1+a=-a, then a=q12a=\frac{q-1}{2}. Consequently,

a2=(q12)21(modq).a^{2}=(\frac{q-1}{2})^{2}\equiv-1\pmod{q}. (20)

Suppose q=4k+1q=4k+1, by Equation (20), we get that k1(modq)k\equiv 1\pmod{q}. It follows that 50(modq)5\equiv 0\pmod{q}. Consequently, q=5q=5, a contradiction. That is to say, aT1T2-a\in T_{1}\cup T_{2}. Notice that (a)1=a-(-a)^{-1}=-a, we deduce that aT1T2-a\in T_{1}\cap T_{2}, which contradicts the fact that T1T2={a}T_{1}\cap T_{2}=\{a\}.

Collecting the conclusions in Cases 1 and 2 yields |T1T2|2|T_{1}\cap T_{2}|\geq 2.

Finally, we prove that |T1T2|3|T_{1}\cap T_{2}|\geq 3 or T1T\leq 1. Suppose on the contrary that |T1T2|=2|T_{1}\cap T_{2}|=2 and T=2T=2, then T1T2={a,a}T_{1}\cap T_{2}=\{a,-a\}, where aGF(q)a\in{\mathrm{GF}}(q)^{*} and a2=1a^{2}=-1. It follows from Equation (19) that |T1T2|=q5|T_{1}\cup T_{2}|=q-5. Consequently, there exist two distinct elements t1t_{1} and t2t_{2} in GF(q)\{1,0,1}{\mathrm{GF}}(q)\backslash\{-1,0,1\} such that T1T2=GF(q)\{1,0,1,t1,t2}T_{1}\cup T_{2}={\mathrm{GF}}(q)\backslash\{-1,0,1,t_{1},t_{2}\}. By Lemma 35, we obtain that

(t1+t2)=tT1T2t=tT1t+tT2ttT1T2t=1.-(t_{1}+t_{2})=\sum_{t\in T_{1}\cup T_{2}}t=\sum_{t\in T_{1}}t+\sum_{t\in T_{2}}t-\sum_{t\in T_{1}\cap T_{2}}t=-1.

Therefore,

t1+t2=1.t_{1}+t_{2}=1. (21)

It is easily verified that if tT1T2t\in T_{1}\cup T_{2}, then t1T1T2-t^{-1}\in T_{1}\cup T_{2}. It follows that t2=(t1)1t_{2}=-(t_{1})^{-1}. By Equation (21), we deduce that

t12t11=0.t_{1}^{2}-t_{1}-1=0. (22)

It is easily verified that x2x1x^{2}-x-1 is reducible over GF(q){\mathrm{GF}}(q) if and only if 55 is a quadratic residue modulo qq. By [24], 55 is a quadratic residue modulo qq if and only if q±1(mod5)q\equiv\pm 1\pmod{5}. We seek a contradiction by considering the following two cases.

Case 1: 5(q1)5\nmid(q-1). By assumption, 5(q+1)5\nmid(q+1). Consequently, x2x1x^{2}-x-1 is irreducible over GF(q){\mathrm{GF}}(q). It follows that Equation (22) is impossible.

Case 2: 5|(q1)5\mid(q-1). It is easily verified that 3{1,0,1,t1,t2}3\notin\{-1,0,1,t_{1},t_{2}\}. Consequently, 3T1T23\in T_{1}\cup T_{2}. By Result 2 of Lemma 34, 3T13\notin T_{1}. Hence, 3T23\in T_{2}. It follows that there is an integer ii with 1iq121\leq i\leq\frac{q-1}{2} such that Tr(βi)+1=31{\mathrm{Tr}}(\beta^{i})+1=-3^{-1}. It then follows that 3β2i+4βi+3=03\beta^{2i}+4\beta^{i}+3=0. Notice that 20|(q1)20\mid(q-1), we deduce that 3x2+4x+33x^{2}+4x+3 is reducible over GF(q){\mathrm{GF}}(q). Hence, βiGF(q)\beta^{i}\in{\mathrm{GF}}(q), which contradicts the fact that 1iq121\leq i\leq\frac{q-1}{2}.

Collecting the conclusions in Cases 1 and 2 yields |T1T2|3|T_{1}\cap T_{2}|\geq 3 or T1T\leq 1. This completes the proof. ∎

The parameters of 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} and 𝒞(4){\mathcal{C}}(4) are documented in the following theorem.

Theorem 38.

Let q9q\geq 9 be an odd prime power. Then 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} has parameters [q+1,q5,d][q+1,q-5,d] and 𝒞(4){\mathcal{C}}(4) has parameters [q+1,6,q5][q+1,6,q-5], where

  1. 1.

    if 4|(q+1)4\mid(q+1), then d=4d=4;

  2. 2.

    if 4|(q1)4\mid(q-1) and 3(q+1)3\nmid(q+1), then d=5d=5;

  3. 3.

    if 4|(q1)4\mid(q-1) and 3|(q+1)3\mid(q+1), then 5d65\leq d\leq 6, and d=5d=5 provided that 5q5\nmid q.

Proof.

It is clear that 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} has length q+1q+1 and dimension q5q-5, and 𝒞(4){\mathcal{C}}(4) has length q+1q+1 and dimension 66, respectively. Notice that d(𝒞(4)){q5,q4}d({\mathcal{C}}(4))\in\{q-5,q-4\}, and d(𝒞(4))=q4d({\mathcal{C}}(4))=q-4 if and only if 𝒞(4){\mathcal{C}}(4) is MDS. Therefore, we only need to study the minimum distance of 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)}.

Case I: 4|(q+1)4\mid(q+1). By Lemma 10, we obtain that d(𝒞(q,q+1,4,1))=4d({\mathcal{C}}_{(q,q+1,4,1)})=4. The desired result follows.

Case II: 4|(q1)4\mid(q-1) and 3(q+1)3\nmid(q+1). By Lemma 36, there exist two distinct integers ii and jj with 1i,jq121\leq i,j\leq\frac{q-1}{2} such that (Tr(βi)+1)(Tr(βj)+1)+1=0({\mathrm{Tr}}(\beta^{i})+1)({\mathrm{Tr}}(\beta^{j})+1)+1=0. Let x1=βix_{1}=\beta^{i}, x2=βix_{2}=\beta^{-i}, x3=βjx_{3}=\beta^{j}, x4=βjx_{4}=\beta^{-j} and x5=1x_{5}=1, then |{x1,x2,x3,x4,x5}|=5|\{x_{1},x_{2},x_{3},x_{4},x_{5}\}|=5. It is easily verified that

σ5,2\displaystyle\sigma_{5,2} =x1x2+(x1+x2)(x3+x4)+x3x4+(x1+x2+x3+x4)x5\displaystyle=x_{1}x_{2}+(x_{1}+x_{2})(x_{3}+x_{4})+x_{3}x_{4}+(x_{1}+x_{2}+x_{3}+x_{4})x_{5}
=2+Tr(βi)Tr(βj)+Tr(βi)+Tr(βj)\displaystyle=2+{\mathrm{Tr}}(\beta^{i}){\mathrm{Tr}}(\beta^{j})+{\mathrm{Tr}}(\beta^{i})+{\mathrm{Tr}}(\beta^{j})
=(Tr(βi)+1)(Tr(βj)+1)+1=0.\displaystyle=({\mathrm{Tr}}(\beta^{i})+1)({\mathrm{Tr}}(\beta^{j})+1)+1=0.

By Lemma 33, we deduce that d(𝒞(q,q+1,4,1))=5d({\mathcal{C}}_{(q,q+1,4,1)})=5.

Case III: 4|(q1)4\mid(q-1) and 3|(q+1)3\mid(q+1). In this case, 6|(q+1)6\mid(q+1). It is clear that

𝒞(q,q+1,6,1)𝒞(q,q+1,4,1).{\mathcal{C}}_{(q,q+1,6,1)}\subseteq{\mathcal{C}}_{(q,q+1,4,1)}.

Consequently, d(𝒞(q,q+1,4,1))d(𝒞(q,q+1,6,1))d({\mathcal{C}}_{(q,q+1,4,1)})\leq d({\mathcal{C}}_{(q,q+1,6,1)}). By Lemma 10, we deduce that

d(𝒞(q,q+1,4,1)){5,6}.d({\mathcal{C}}_{(q,q+1,4,1)})\in\{5,6\}.

Below we prove that d(𝒞(q,q+1,4,1))=5d({\mathcal{C}}_{(q,q+1,4,1)})=5 for 5q5\nmid q.

Suppose q=pmq=p^{m}, where p>5p>5 is an odd prime and mm is a positive integer. Since 3|(q+1)3\mid(q+1), we deduce that mm is odd. Let γ=βq+1p+1\gamma=\beta^{\frac{q+1}{p+1}}, then γ\gamma is a primitive (p+1)(p+1)-th root of unity in GF(p2){\mathrm{GF}}(p^{2}). Let 𝒞{\mathcal{C}} be the cyclic code of length p+1p+1 over GF(p){\mathrm{GF}}(p) with generator polynomial 𝕄γ(x)𝕄γ2(x)𝕄γ3(x)\mathbb{M}_{\gamma}(x)\mathbb{M}_{\gamma^{2}}(x)\mathbb{M}_{\gamma^{3}}(x), then 𝒞{\mathcal{C}} is the narrow-sense BCH code of length p+1p+1 over GF(p){\mathrm{GF}}(p) with designed distance 44. Since 4|(q1)4\mid(q-1) and mm is odd, we get that 4|(p1)4\mid(p-1). Similar to Case II, we can prove that d(𝒞)=5d({\mathcal{C}})=5. Consequently, there are five pairwise distinct integers i1,i2,i3,i4,i5i_{1},i_{2},i_{3},i_{4},i_{5} with 0ijp0\leq i_{j}\leq p and ciGF(p)c_{i}\in{\mathrm{GF}}(p)^{*} such that

c1xi1+c2xi2+c3xi3+c4xi4+c5xi5𝒞.c_{1}x^{i_{1}}+c_{2}x^{i_{2}}+c_{3}x^{i_{3}}+c_{4}x^{i_{4}}+c_{5}x^{i_{5}}\in{\mathcal{C}}.

It is easily verified that

c1xq+1p+1i1+c2xq+1p+1i2+c3xq+1p+1i3+c4xq+1p+1i4+c5xq+1p+1i5𝒞(q,q+1,4,1).c_{1}x^{{\frac{q+1}{p+1}}i_{1}}+c_{2}x^{\frac{q+1}{p+1}i_{2}}+c_{3}x^{\frac{q+1}{p+1}i_{3}}+c_{4}x^{\frac{q+1}{p+1}i_{4}}+c_{5}x^{\frac{q+1}{p+1}i_{5}}\in{\mathcal{C}}_{(q,q+1,4,1)}.

It then follows that d(𝒞(q,q+1,4,1))=5d({\mathcal{C}}_{(q,q+1,4,1)})=5.

Collecting all the conclusions in Cases I, II and III, we complete the proof of this theorem. ∎

The parameters of 𝒞4¯\overline{{\mathcal{C}}_{4}} and (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} are documented in the following theorem.

Theorem 39.

Let q9q\geq 9 be an odd prime power. Then 𝒞4¯\overline{{\mathcal{C}}_{4}} has parameters [q+2,7,q5][q+2,7,q-5] and (𝒞¯4)(\overline{{\mathcal{C}}}_{4})^{\perp} has parameters [q+2,q5,d][q+2,q-5,d], where

  1. 1.

    if 4|(q+1)4\mid(q+1), then d=5d=5;

  2. 2.

    if 4|(q1)4\mid(q-1) and 3(q+1)3\nmid(q+1), then d=6d=6;

  3. 3.

    if 4|(q1)4\mid(q-1) and 3|(q+1)3\mid(q+1), then 6d76\leq d\leq 7, and d=6d=6 provided that 5q5\nmid q.

Proof.

By Theorem 7, 𝒞4{\mathcal{C}}_{4} has parameters [q+1,7,q5][q+1,7,q-5]. Then 𝒞4¯\overline{{\mathcal{C}}_{4}} has length q+2q+2 and dimension 77. Consequently, (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} has length q+2q+2 and dimension q5q-5. By Theorems 9 and 38, we obtain that d(𝒞4¯)=d(𝒞(4))=q5d(\overline{{\mathcal{C}}_{4}})=d({\mathcal{C}}(4))=q-5. By Theorems 8 and 38, we deduce that

d((𝒞4¯))=d(𝒞(q,q+1,4,1))+1.d((\overline{{\mathcal{C}}_{4}})^{\perp})=d({\mathcal{C}}_{(q,q+1,4,1)})+1.

The desired conclusions on the minimum distance of (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} follow from Theorem 38. This completes the proof. ∎

Example 40.

Let q=52q=5^{2}. Then the following hold.

  1. 1.

    The code 𝒞4{\mathcal{C}}_{4} has parameters [26,7,20][26,7,20] and (𝒞4)({\mathcal{C}}_{4})^{\perp} has parameters [26,19,8][26,19,8].

  2. 2.

    The BCH code 𝒞(q,q+1,4,1){\mathcal{C}}_{(q,q+1,4,1)} has parameters [26,20,5][26,20,5] and 𝒞(4){\mathcal{C}}(4) has parameters [26,6,20][26,6,20].

  3. 3.

    The code 𝒞4¯\overline{{\mathcal{C}}_{4}} has parameters [27,7,20][27,7,20] and (𝒞4¯)(\overline{{\mathcal{C}}_{4}})^{\perp} has parameters [27,20,6][27,20,6].

For the case u=4u=4, there is only one case where the minimum distance of (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} remains open, but we have the following conjecture.

Conjecture 41.

Let q=5mq=5^{m} with m3m\geq 3 being odd, then d(𝒞(q,q+1,4,1))=5d({\mathcal{C}}_{(q,q+1,4,1)})=5 and d((𝒞4¯))=6d((\overline{{\mathcal{C}}_{4}})^{\perp})=6.

IV-E The case u=q12u=\lfloor\frac{q-1}{2}\rfloor

Let q>5q>5 be a prime power and u=q12u=\lfloor\frac{q-1}{2}\rfloor. Our task in this subsection is to settle the parameters of the code 𝒞u¯\overline{{\mathcal{C}}_{u}} and its dual (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp}. First of all, we have the following result.

Corollary 42.

Let q>5q>5 be an odd prime power and u=q12u=\frac{q-1}{2}. Then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,q2,4][q+2,q-2,4] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,4,q+32][q+2,4,\frac{q+3}{2}].

Proof.

Since q>5q>5, u>2u>2. Note that q+12(modu)q+1\equiv 2\pmod{u}, we deduce that u(q+1)u\nmid(q+1). Clearly, (u+1)|(q+1)(u+1)\mid(q+1). The desired results follow from Theorem 11. ∎

Starting from now on, let q=2mq=2^{m} with m3m\geq 3 and u=2m11u=2^{m-1}-1, then 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} has checked polynomial (x1)𝕄βu(x)𝕄βu+1(x)(x-1)\mathbb{M}_{\beta^{u}}(x)\mathbb{M}_{\beta^{u+1}}(x), where β\beta is a primitive (q+1)(q+1)-th root of unity in GF(q2){\mathrm{GF}}(q^{2}). By Delsarte’s theorem, we have

𝒞(q,q+1,u,1)={𝐜(a,b,c):aGF(q),b,cGF(q2)},{\mathcal{C}}_{(q,q+1,u,1)}=\left\{{\mathbf{c}}_{(a,b,c)}:a\in{\mathrm{GF}}(q),\ b,\ c\in{\mathrm{GF}}(q^{2})\right\}, (23)

where 𝐜(a,b,c)=(a+Tr(bβui+cβ(u+1)i))i=0q{\mathbf{c}}(a,b,c)=(a+{\mathrm{Tr}}(b\beta^{ui}+c\beta^{(u+1)i}))_{i=0}^{q}, and Tr(x){\mathrm{Tr}}(x) denote the trace function from GF(q2){\mathrm{GF}}(q^{2}) to GF(q){\mathrm{GF}}(q). Let 𝒞(u){\mathcal{C}}(u) denote the dual of the BCH code 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)}, then 𝒞(u){\mathcal{C}}(u) is the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with generator polynomial (x1)𝕄βu(x)𝕄βu+1(x)(x-1)\mathbb{M}_{\beta^{u}}(x)\mathbb{M}_{\beta^{u+1}}(x). To determine the parameters of 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} and 𝒞(u){\mathcal{C}}(u), we first prove the following lemma.

Lemma 43.

Let q=2mq=2^{m} with m3m\geq 3. Then there are three pairwise distinct integers i,j,ki,j,k with 1i,j,k2m11\leq i,j,k\leq 2^{m-1} such that Tr(βi+βj+βk)=0{\mathrm{Tr}}(\beta^{i}+\beta^{j}+\beta^{k})=0.

Proof.

It is easily verified that

xq+1+1=(x+1)i=12m1(x2+Tr(βi)x+1),x^{q+1}+1=(x+1)\prod_{i=1}^{2^{m-1}}(x^{2}+{\mathrm{Tr}}(\beta^{i})x+1),

and gcd(q+1,q)=1\gcd(q+1,q)=1. Consequently,

Tr(βi)Tr(βj){\mathrm{Tr}}(\beta^{i})\neq{\mathrm{Tr}}(\beta^{j}) (24)

for any two distinct integers ii and jj with 1i,j2m11\leq i,j\leq 2^{m-1}. We first prove that Tr(βi)0{\mathrm{Tr}}(\beta^{i})\neq 0 for each 1i2m11\leq i\leq 2^{m-1}. Suppose Tr(βi)=0{\mathrm{Tr}}(\beta^{i})=0, then x2+1x^{2}+1 divides xq+1+1x^{q+1}+1, which contradicts the fact that gcd(2,q+1)=1\gcd(2,q+1)=1. We now prove that Tr(β)1{\mathrm{Tr}}(\beta)\neq 1. Suppose Tr(β)=1{\mathrm{Tr}}(\beta)=1, then β2+β+1=0\beta^{2}+\beta+1=0. It follows that β3=1\beta^{3}=1, which contradicts the fact that β\beta is a primitive (q+1)(q+1)-th root of unity. Let

S1={Tr(βi):1i2m1}S_{1}=\{{\mathrm{Tr}}(\beta^{i}):1\leq i\leq 2^{m-1}\}

and S2={Tr(β)Tr(βi):1i2m1}S_{2}=\{{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{i}):1\leq i\leq 2^{m-1}\}, then |S1|=|S2|=2m1|S_{1}|=|S_{2}|=2^{m-1}. It is easily verified that

Tr(β)Tr(βi)\displaystyle{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{i}) =(β+β1)(βi+βi)\displaystyle=(\beta+\beta^{-1})(\beta^{i}+\beta^{-i})
=βi+1+β(i+1)+βi1+β(i1)\displaystyle=\beta^{i+1}+\beta^{-(i+1)}+\beta^{i-1}+\beta^{-(i-1)}
=Tr(βi+1+βi1).\displaystyle={\mathrm{Tr}}(\beta^{i+1}+\beta^{i-1}). (25)

Notice that Tr(β2m1+1)=Tr(β2m1){\mathrm{Tr}}(\beta^{2^{m-1}+1})={\mathrm{Tr}}(\beta^{2^{m-1}}), we have

Tr(β)Tr(β2m1)=Tr(β2m1+β2m11).{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{2^{m-1}})={\mathrm{Tr}}(\beta^{2^{m-1}}+\beta^{2^{m-1}-1}). (26)

It is clear that Tr(β)Tr(β)=Tr(β2){\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta)={\mathrm{Tr}}(\beta^{2}), then |S1S2|1|S_{1}\cap S_{2}|\geq 1. If |S1S2|=1|S_{1}\cap S_{2}|=1, then

|S1S2|=|S1|+|S2||S1S2|=q1.|S_{1}\cup S_{2}|=|S_{1}|+|S_{2}|-|S_{1}\cap S_{2}|=q-1.

Notice that S1S2GF(q)S_{1}\cup S_{2}\subseteq{\mathrm{GF}}(q)^{*}, we get that

S1S2={Tr(βi):1i2m1}{Tr(β)Tr(βi):2i2m1}=GF(q).\displaystyle S_{1}\cup S_{2}=\{{\mathrm{Tr}}(\beta^{i}):1\leq i\leq 2^{m-1}\}\cup\{{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{i}):2\leq i\leq 2^{m-1}\}={\mathrm{GF}}(q)^{*}.

It then follows that

0=xGF(q)x=i=12m1Tr(βi)+i=22m1Tr(β)Tr(βi)=Tr(β)2,\displaystyle 0=\sum_{x\in{\mathrm{GF}}(q)^{*}}x=\sum_{i=1}^{2^{m-1}}{\mathrm{Tr}}(\beta^{i})+\sum_{i=2}^{2^{m-1}}{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{i})={\mathrm{Tr}}(\beta)^{2},

a contradiction. Therefore, |S1S2|2|S_{1}\cap S_{2}|\geq 2. Then there is an integer ii with 2i2m12\leq i\leq 2^{m-1} such that

Tr(β)Tr(βi)=Tr(βj),{\mathrm{Tr}}(\beta){\mathrm{Tr}}(\beta^{i})={\mathrm{Tr}}(\beta^{j}),

where 1j2m11\leq j\leq 2^{m-1}. If 2i2m112\leq i\leq 2^{m-1}-1, by Equation (IV-E), we deduce that

Tr(βi+1+βi1)=Tr(βj).{\mathrm{Tr}}(\beta^{i+1}+\beta^{i-1})={\mathrm{Tr}}(\beta^{j}).

Since Tr(βl)0{\mathrm{Tr}}(\beta^{l})\neq 0 for each 1l2m11\leq l\leq 2^{m-1}, we deduce that j{i1,i+1}j\notin\{i-1,i+1\}. The desired result follows. If i=2m1i=2^{m-1}, by Equation (26), we obtain that

Tr(β2m1+β2m11)=Tr(βj).{\mathrm{Tr}}(\beta^{2^{m-1}}+\beta^{2^{m-1}-1})={\mathrm{Tr}}(\beta^{j}).

Similarly, we have j{2m1,2m11}j\notin\{2^{m-1},2^{m-1}-1\}. This completes the proof. ∎

Theorem 44.

Let q=2mq=2^{m} with m3m\geq 3 and u=2m11u=2^{m-1}-1. Then 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} has parameters [q+1,5,q5][q+1,5,q-5] and 𝒞(u){\mathcal{C}}(u) has parameters [q+1,q4,5][q+1,q-4,5].

Proof.

It is clear that 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} has length q+1q+1 and dimension 55. We now study the minimum distance of 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)}. Let 𝐜{\mathbf{c}} be a nonzero codeword of 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)}. By Equation (23), there is (a,b,c)GF(q)×GF(q2)2(a,b,c)\in{\mathrm{GF}}(q)\times{\mathrm{GF}}(q^{2})^{2} and (a,b,c)(0,0,0)(a,b,c)\neq(0,0,0) such that

𝐜=(a+Tr(bβui+cβ(u+1)i))i=0q.{\mathbf{c}}=(a+{\mathrm{Tr}}(b\beta^{ui}+c\beta^{(u+1)i}))_{i=0}^{q}.

It is easily verified that a+Tr(bβui+cβ(u+1)i)=fa,b,c(βi)a+{\mathrm{Tr}}(b\beta^{ui}+c\beta^{(u+1)i})=f_{a,b,c}(\beta^{i}), where

fa,b,c(x)=a+bx2m11+cx2m1+cqx2m1+1+bqx2m1+2.f_{a,b,c}(x)=a+bx^{2^{m-1}-1}+cx^{2^{m-1}}+c^{q}x^{2^{m-1}+1}+b^{q}x^{2^{m-1}+2}.

Note that

f(a,b,c)(x)2=a2+b2xq2+c2xq+c2qxq+2+b2qxq+4.f_{(a,b,c)}(x)^{2}=a^{2}+b^{2}x^{q-2}+c^{2}x^{q}+c^{2q}x^{q+2}+b^{2q}x^{q+4}.

Consequently,

f(a,b,c)(βi)2\displaystyle f_{(a,b,c)}(\beta^{i})^{2} =a2+b2β3i+c2βi+c2qβi+b2qβ3i\displaystyle=a^{2}+b^{2}\beta^{-3i}+c^{2}\beta^{-i}+c^{2q}\beta^{i}+b^{2q}\beta^{3i}
=(b2+c2β2i+a2β3i+c2qβ4i+b2qβ6i)β3i.\displaystyle=(b^{2}+c^{2}\beta^{2i}+a^{2}\beta^{3i}+c^{2q}\beta^{4i}+b^{2q}\beta^{6i})\beta^{-3i}.

Let ga,b,c(x)=b2+c2x2+a2x3+c2qx4+b2qx6g_{a,b,c}(x)=b^{2}+c^{2}x^{2}+a^{2}x^{3}+c^{2q}x^{4}+b^{2q}x^{6}, then f(a,b,c)(βi)=0f_{(a,b,c)}(\beta^{i})=0 if and only if ga,b,c(βi)=0g_{a,b,c}(\beta^{i})=0. Since (a,b,c)(0,0,0)(a,b,c)\neq(0,0,0), ga,b,c(x)0g_{a,b,c}(x)\neq 0. Consequently, ga,b,c(x)g_{a,b,c}(x) has at most 66 solutions. Therefore,

𝚠𝚝(𝐜)q+16=q5.{\mathtt{wt}}({\mathbf{c}})\geq q+1-6=q-5.

It follows that d(𝒞(q,q+1,u,1))q5d({\mathcal{C}}_{(q,q+1,u,1)})\geq q-5.

We now prove that ga,b,c(x)g_{a,b,c}(x) has 66 solutions x{βi:1iq}x\in\{\beta^{i}:1\leq i\leq q\} for some (a,b,c)(0,0,0)(a,b,c)\neq(0,0,0). By Lemma 43, there are three pairwise distinct integers i,j,ki,j,k with 1i,j,k2m11\leq i,j,k\leq 2^{m-1} such that

Tr(βi+βj+βk)=0.{\mathrm{Tr}}(\beta^{i}+\beta^{j}+\beta^{k})=0.

Clearly, |{βi,βi,βj,βj,βk,βk}|=6|\{\beta^{i},\beta^{-i},\beta^{j},\beta^{-j},\beta^{k},\beta^{-k}\}|=6. Put u=Tr(βi)u={\mathrm{Tr}}(\beta^{i}), v=Tr(βj)v={\mathrm{Tr}}(\beta^{j}), w=Tr(βk)w={\mathrm{Tr}}(\beta^{k}), then

𝕄βi(x)𝕄βj(x)𝕄βk(x)\displaystyle\mathbb{M}_{\beta^{i}}(x)\mathbb{M}_{\beta^{j}}(x)\mathbb{M}_{\beta^{k}}(x) =(x2+ux+1)(x2+vx+1)(x2+wx+1)\displaystyle=(x^{2}+ux+1)(x^{2}+vx+1)(x^{2}+wx+1)
=x6+(uv+uw+vw+1)x4+uvwx3+(uv+uw+vw+1)x2+1.\displaystyle=x^{6}+(uv+uw+vw+1)x^{4}+uvwx^{3}+(uv+uw+vw+1)x^{2}+1.

Set

a=(uvw)q/2,b=1,c=(uv+uw+vw+1)q/2.a=(uvw)^{q/2},\ b=1,\ c=(uv+uw+vw+1)^{q/2}.

Then {βi,βi,βj,βj,βk,βk}\{\beta^{i},\beta^{-i},\beta^{j},\beta^{-j},\beta^{k},\beta^{-k}\} is a set of 66 solutions of ga,b,c(x)g_{a,b,c}(x). Consequently, the corresponding codeword 𝐜{\mathbf{c}} has weight q5q-5. Therefore, d(𝒞(q,q+1,u,1))=q5d({\mathcal{C}}_{(q,q+1,u,1)})=q-5.

It is clear that 𝒞(u){\mathcal{C}}(u) has length q+1q+1 and dimension q4q-4. Note that 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} is not MDS, then 𝒞(u){\mathcal{C}}(u) is not MDS. As a result, d(𝒞(u))5d({\mathcal{C}}(u))\leq 5. Notice that βi\beta^{i} is a zero of 𝒞(u){\mathcal{C}}(u) for each

i{2m11,2m1,2m1+1,2m1+2}.i\in\{2^{m-1}-1,2^{m-1},2^{m-1}+1,2^{m-1}+2\}.

By the BCH bound, we deduce that d(𝒞(u))5d({\mathcal{C}}(u))\geq 5. Therefore, d(𝒞(u))=5d({\mathcal{C}}(u))=5. This completes the proof. ∎

The parameters of the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} are documented in the following theorem.

Theorem 45.

Let q=2mq=2^{m} with m3m\geq 3, and u=2m11u=2^{m-1}-1. Then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,q3,5][q+2,q-3,5] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,5,q4][q+2,5,q-4].

Proof.

By Theorem 7, 𝒞u{\mathcal{C}}_{u} has parameters [q+1,q3,5][q+1,q-3,5]. Then 𝒞u¯\overline{{\mathcal{C}}_{u}} has length q+2q+2 and dimension q3q-3. Consequently, (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has length q+2q+2 and dimension 55. By Theorems 9 and 44, we obtain that d(𝒞u¯)=d(𝒞(u))=5d(\overline{{\mathcal{C}}_{u}})=d({\mathcal{C}}(u))=5. By Theorems 8 and 44, we deduce that

d((𝒞u¯))=d(𝒞(q,q+1,u,1))+1=q4.d((\overline{{\mathcal{C}}_{u}})^{\perp})=d({\mathcal{C}}_{(q,q+1,u,1)})+1=q-4.

This completes the proof. ∎

Example 46.

Let q=24q=2^{4} and u=231=7u=2^{3}-1=7. Then the following hold.

  1. 1.

    The code 𝒞u{\mathcal{C}}_{u} has parameters [17,13,5][17,13,5] and (𝒞u)({\mathcal{C}}_{u})^{\perp} has parameters [17,4,14][17,4,14].

  2. 2.

    The BCH code 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} has parameters [17,5,11][17,5,11] and 𝒞(u){\mathcal{C}}(u) has parameters [17,12,5][17,12,5].

  3. 3.

    The extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [18,13,5][18,13,5] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [18,5,12][18,5,12].

IV-F The case u=q+12u=\lfloor\frac{q+1}{2}\rfloor

Let q>2q>2 be a prime power and u=q+12u=\lfloor\frac{q+1}{2}\rfloor. Our task in this subsection is to settle the parameters of the code 𝒞u¯\overline{{\mathcal{C}}_{u}} and its dual (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp}. By Theorem 11, we have the following result.

Corollary 47.

Let qq be an odd prime power and u=q+12u=\frac{q+1}{2}. Then 𝒞u¯\overline{{\mathcal{C}}_{u}} has parameters [q+2,q,2][q+2,q,2] and (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} has parameters [q+2,2,q+32][q+2,2,\frac{q+3}{2}].

Starting from now on, let q=2mq=2^{m} with m2m\geq 2 and u=2m1u=2^{m-1}. Recall that 𝒞u{\mathcal{C}}_{u} is a [q+1,q1,3][q+1,q-1,3] MDS code over GF(q){\mathrm{GF}}(q) and has generator polynomial gu(x)=𝕄βu(x)g_{u}(x)=\mathbb{M}_{\beta^{u}}(x), where β\beta is a primitive (q+1)(q+1)-th root of unity in GF(q2){\mathrm{GF}}(q^{2}). Let 𝒞(u){\mathcal{C}}(u) be the dual of 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)}, then 𝒞(u){\mathcal{C}}(u) is the cyclic code of length q+1q+1 over GF(q){\mathrm{GF}}(q) with generator polynomial (x1)𝕄βu(x)(x-1)\mathbb{M}_{\beta^{u}}(x).

Lemma 48.

Let q=2mq=2^{m} with m2m\geq 2 and u=2m1u=2^{m-1}. Then 𝒞(q,q+1,u,1){\mathcal{C}}_{(q,q+1,u,1)} is a [q+1,3,q1][q+1,3,q-1] MDS code over GF(q){\mathrm{GF}}(q).

Proof.

To prove the desired result, we only need to prove that 𝒞(u){\mathcal{C}}(u) is an MDS code over GF(q){\mathrm{GF}}(q). By definition, 𝒞(u){\mathcal{C}}(u) has length q+1q+1, dimension q2q-2 and d(𝒞(u))4d({\mathcal{C}}(u))\leq 4. Since gcd(u,q+1)=1\gcd(u,q+1)=1, we deduce that γ=βu\gamma=\beta^{u} is also a primitive (q+1)(q+1)-th root of unity. Notice that γ1=βu\gamma^{-1}=\beta^{-u}, then γi\gamma^{i} is a root of (x1)𝕄βu(x)(x-1)\mathbb{M}_{\beta^{u}}(x) for each i{1,0,1}i\in\{-1,0,1\}. By the BCH bound, d(𝒞(u))4d({\mathcal{C}}(u))\geq 4. Therefore, 𝒞(u){\mathcal{C}}(u) is a [q+1,q2,4][q+1,q-2,4] MDS code over GF(q){\mathrm{GF}}(q). This completes the proof. ∎

Theorem 49.

Let q=2mq=2^{m} with m2m\geq 2 and u=2m1u=2^{m-1}. Then the following hold:

  1. 1.

    𝒞u{\mathcal{C}}_{u} is a [q+1,q1,3][q+1,q-1,3] MDS code over GF(q){\mathrm{GF}}(q).

  2. 2.

    (𝒞u)({\mathcal{C}}_{u})^{\perp} is a [q+1,2,q][q+1,2,q] MDS code over GF(q){\mathrm{GF}}(q).

  3. 3.

    𝒞u¯\overline{{\mathcal{C}}_{u}} is a [q+2,q1,4][q+2,q-1,4] MDS code over GF(q){\mathrm{GF}}(q).

  4. 4.

    (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} is a [q+2,3,q][q+2,3,q] MDS code over GF(q){\mathrm{GF}}(q).

Proof.

The first two desired conclusions follow from Theorem 7. To prove that the latter two desired conclusions, we only need to prove d((𝒞u¯))=qd((\overline{{\mathcal{C}}_{u}})^{\perp})=q. From Theorem 8 and Lemma 48, we deduce that d((𝒞u¯))=d(𝒞(q,q+1,u,1))+1=qd((\overline{{\mathcal{C}}_{u}})^{\perp})=d({\mathcal{C}}_{(q,q+1,u,1)})+1=q. This completes the proof. ∎

The codes (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} are the second family of hyperoval codes presented in this paper.

V Summary and concluding remarks

It is observed that only a small number of families of NMDS codes with known weight distributions have been reported in [12, 22, 28, 29, 36, 38, 40, 41], as two NMDS codes over GF(q){\mathrm{GF}}(q) with the same parameters [n,k,nk][n,k,n-k] may have different weight distributions. The first contribution of this paper is the several families of NMDS codes documented in Corollary 15, Theorems 20, 21 and 30, and the settlement of the weight distributions of three families of NMDS codes (see Theorems 25, 27 and 30). One of the infinite families of NMDS codes is both distance-optimal and dimension-optimal locally recoverable codes [35]. The second contribution of this paper is the MDS codes 𝒞2¯\overline{{\mathcal{C}}_{2}} documented in Corollary 17 and the MDS codes 𝒞q/2{\mathcal{C}}_{q/2} and 𝒞q/2¯\overline{{\mathcal{C}}_{q/2}} documented in Theorem 49 for even qq. They are also both distance-optimal and dimension-optimal locally recoverable codes. The third contribution of this paper is the settlement of the parameters of 𝒞u¯\overline{{\mathcal{C}}_{u}} and its dual for u{2,3,4,q12,q+12}u\in\left\{2,3,4,\lfloor\frac{q-1}{2}\rfloor,\lfloor\frac{q+1}{2}\rfloor\right\}.

In this paper, we settled the parameters of the extended code 𝒞u¯\overline{{\mathcal{C}}_{u}} for only a few values of uu. It would be very challenging to study the parameters of the code 𝒞u¯\overline{{\mathcal{C}}_{u}} and its dual (𝒞u¯)(\overline{{\mathcal{C}}_{u}})^{\perp} for 5uq325\leq u\leq\lfloor\frac{q-3}{2}\rfloor. The reader is cordially invited to attack this problem. This shows that studying the extended code of a known linear code could be very challenging, even if the parameters of the linear code are known. This may explain why not much work on extended codes has been reported in the literature.

Although the NMDS codes 𝒞2¯\overline{{\mathcal{C}}_{2}}, 𝒞3¯\overline{{\mathcal{C}}_{3}} and 𝒞4¯\overline{{\mathcal{C}}_{4}} have small dimensions (i.e., 33, 55 and 77, respectively), they are interesting and valuable due to the following applications. These NMDS codes have applications in cryptography [33], finite geometry [8, 15, 17] and distributed data storage systems (see the explanations in Section I). Another application of these NMDS codes with small dimensions is the construction of subfield codes (i.e., the trace codes) with larger dimensions. We inform the reader that the binary subfield codes of 𝒞2¯\overline{{\mathcal{C}}_{2}}, 𝒞3¯\overline{{\mathcal{C}}_{3}} and 𝒞4¯\overline{{\mathcal{C}}_{4}} are distance-optimal or have the best parameters for q=2mq=2^{m} with m{3,4,5,6}m\in\{3,4,5,6\} in every case except one case (see Table I). The reader is referred to [11, 19, 20, 39] for information about subfield codes, which are different from the subfield subcodes of linear codes.

Table I: The binary subfield codes of 𝒞u¯\overline{{\mathcal{C}}_{u}}
uu mm subfield code best distance best dimension
2,32,3 33 [10,7,2][10,7,2] optimal 99
2,32,3 44 [18,9,6][18,9,6] optimal optimal
2,32,3 55 [34,11,12][34,11,12] optimal 1212
2,32,3 66 [66,13,26][66,13,26] best known best known
44 33 [10,9,2][10,9,2] optimal optimal
44 44 [18,17,2][18,17,2] optimal optimal
44 55 [34,21,4][34,21,4] 66 2727
44 66 [66,25,16][66,25,16] best known 2929 is best known

According to our experimental data, the two families of NMDS codes documented in Theorems 25, 27 and 30 do not support 22-designs, only special NMDS codes support 22-designs [12, 36, 40].

References

  • [1] V. Abatangelo, B. Larato, “Near-MDS codes arising from algebraic curves,” Disc. Math., vol. 301, no. 1, pp. 5–19, Sept. 2005.
  • [2] V. Abatangelo, B. Larato, “Elliptic near-MDS codes over 𝔽5\mathbb{F}_{5},” Des. Codes Cryptogr., vol. 46, pp. 167–174, Feb. 2008.
  • [3] A. Aguglia, L. Giuzzi, A. Sonnino, “Near-MDS codes from elliptic curves,” Des. Codes Cryptogr., vol. 89, pp. 965–972, May 2021.
  • [4] D. Bartoli, M. Giulietti, G. Zini, “Complete (k,3)(k,3)-arcs from quartic curves,” Des. Codes Cryptogr., vol. 79, pp. 487–505, Jun. 2016.
  • [5] V. R. Cadambe, A. Mazumdar, “An upper bound on the size of locally recoverable codes,” In International Symposium on Network Coding, NetCod 2013, Calgary, AB, Canada, June 7-9, 2013, pp. 1–5, 2013.
  • [6] V. R. Cadambe, A. Mazumdar, “Bounds on the size of locally recoverable codes,” IEEE Trans. Inf. Theory, vol. 61, no. 11, pp. 5787–5794, Nov. 2015.
  • [7] M. Ceria, A. Cossidente, G. Marino, F. Pavese, “On near-MDS codes and caps,” Des. Codes Cryptogr., vol. 91, pp. 1095–1110, Mar. 2023.
  • [8] M. A. de Boer, “Almost MDS codes,” Des. Codes Cryptogr., vol. 9, pp. 143–155, Oct. 1996.
  • [9] C. Dahl, J. P. Pedersen, “Cyclic and pesudo-cyclic MDS codes of length q+1q+1,” J. Combinat. Theory, Series A, vol. 59, no. 1, pp. 130–133, Jan. 1992.
  • [10] C. Ding, Codes from Difference Sets, World Scientific, Singapore, 2015.
  • [11] C. Ding, Z. Heng, “The subfield codes of ovoid codes,” IEEE Trans. Inf. Theory, vol. 65, no. 8, pp. 4715–4729, Aug. 2019.
  • [12] C. Ding, C. Tang, “Infinite families of near MDS codes holding tt-designs,” IEEE Trans. Inf. Theory, vol. 66, no. 9, pp. 5419–5428, Sept. 2020.
  • [13] C. Ding, C. Tang, Designs from Linear Codes, Second Edition, World Scientific, Singapore, 2022.
  • [14] S. Dodunekov, I. Landgev, “On near-MDS codes,” J. Geometry, vol. 54, pp. 30–43, Nov. 1995.
  • [15] A. Faldum, W. Willems, “Codes of small defect,” Des. Codes Cryptogr., vol. 10, pp. 341–350, Mar. 1997.
  • [16] M. Grassl, Bounds on the minimum distance of linear codes and quantum codes, Online available at http://www.codetables.de.
  • [17] M. Giulietti, F. Pasticci, “On the completeness of certain nn-tracks arising from elliptic curves,” Finite Fields Appl., vol. 13, no. 4, pp. 988–1000, Nov. 2007.
  • [18] P. Gopalan, C. Huang, H. Simitci, S. Yekhanin, “On the locality of codeword symbols,” IEEE Trans. Inf. Theory, vol. 58, no. 11, pp. 6925–6934, Nov. 2012.
  • [19] Z. Heng, C. Ding, “The subfield codes of hyperoval and conic codes,” Finite Fields Appl., vol. 56, pp. 308–331, Mar. 2019.
  • [20] Z. Heng, C. Ding, W. Wang, “Optimal binary linear codes from maximal arcs,” IEEE Trans. Inf. Theory, vol. 66, no. 9, pp. 5387–5394, Sept. 2020.
  • [21] Z. Heng, C. Li, W. Wang, “Constructions of MDS, near MDS and almost MDS codes from cyclic subgroups of 𝔽q2\mathbb{F}^{*}_{q^{2}},” IEEE Trans. Inf. Theory, vol. 68, no. 12, pp. 7817–7831, Dec. 2022.
  • [22] Z. Heng, X. Wang, “New infinite families of near MDS codes holding tt-designs,” Disc. Math., vol. 346, no. 10, 113538, Oct. 2023.
  • [23] W. C. Huffman, V. Pless, Fundamentals of Error-Correcting Codes, Cambridge University Press, Cambridge, 2003.
  • [24] K. Ireland, M. Rosen, A classical introduction to modern number theory, second ed., Grad. Texts in Math., vol. 84, Springer-Verlag, 1990.
  • [25] C. Li, P. Wu, F. Liu, “On two classes of primitive BCH codes and some related codes,” IEEE Trans. Inf. Theory, vol. 65, no. 6, pp. 3830–3840, Jun. 2009.
  • [26] Q. Liu, C. Ding, S. Mesnager, C. Tang, V. D. Tonchev, “On infinite families of narrow-sense antiprimitive BCH codes admitting 33-transitive automorphism groups and their consequences,” IEEE Trans. Inf. Theory, vol. 68, no. 5, pp. 3096–3107, May 2021.
  • [27] S. Li, “The minimum distance of some narrow-sense primitive BCH codes,” SIAM J. Disc. Math., vol. 31, no. 4, pp. 2530–2569, Apr. 2017.
  • [28] X. Li, Z. Heng, Constructions of near MDS codes which are optimal locally recoverable codes, arXiv:2204.11208v1
  • [29] X. Li, Z. Heng, “A construction of optimal locally recoverable codes,” Cryptogr. Commun., vol. 15, pp. 553–563, May 2023.
  • [30] Y. Liu, R. Li, Q. Fu, L. Lu, Y. Rao, “Some binary BCH codes with length n=2m+1n=2^{m}+1,” Finite Fields Appl., vol. 55, pp. 109–133, Jan. 2019.
  • [31] F. J. MacWilliams, N. J. A. Sloane, The Theory of Error-Correcting Codes, North-Holland, Amsterdam, 1977.
  • [32] S. Marcugini, A. Milani, F. Pambianco, “NMDS codes of maximum length over FqF_{q}, 8q118\leq q\leq 11,” IEEE Trans. Inf. Theory, vol. 48, no. 4, pp. 963–966, Apr. 2002.
  • [33] S. Mehta, S. Sen, “Secret sharing using near-MDS codes,” in Codes, Cryptology and Information Security, pp. 195–214, 2019.
  • [34] X. Shi, Q. Yue, Y. Wu, “The dual-containing primitive BCH codes with the maximum designed distance and their applications to quantum codes,” Des. Codes Cryptogr., vol. 87, no. 9, pp. 2165–2183, Sept. 2019.
  • [35] P. Tan, C. Fan, C. Ding, C. Tang, Z. Zhou, “The minimum locality of linear codes,” Des. Codes Cryptgr., vol. 91, pp. 83–114, Jan. 2023.
  • [36] C. Tang, C. Ding, “An infinite family of linear codes supporting 44-designs,” IEEE Trans. Inf. Theory, vol. 67, no. 1, pp. 244–254, Jan. 2021.
  • [37] K. Tzeng, C. Hartmann, “On the minimum distance of certain reversible cyclic codes (corresp.),” IEEE Trans. Inf. Theory, vol. 16, no. 5, pp. 644–646, Sept. 1970.
  • [38] Q. Wang, Z. Heng, “Near MDS codes from overal polynomials,” Disc. Math., vol. 344, no. 4, 112277, Apr. 2021.
  • [39] X. Wang, D. Zheng, “The subfield codes of several classes of linear codes,” Cryptogr. Commun., vol. 12, pp. 1111–1131, Nov. 2020.
  • [40] G. Xu, X. Cao, L. Qu, “Infinite families of 33-designs and 22-designs from almost MDS codes,” IEEE Trans. Inf. Theory, vol. 68, no. 7, pp. 4344–4353, Jul. 2022
  • [41] L. Xu, C. Fan, D. Han, “Near-MDS codes from maximal arcs in PG(2,q)(2,q),” arXiv:2208.08578 [cs.IT].
  • [42] H. Yan, H. Liu, C. Li, S. Yang, “Parameters of LCD BCH codes with two lengths,” Adv. in Math. of Comm., vol. 12, no. 3, pp. 579–594, Jul. 2018.
  • [43] Q. Yan, J. Zhou, “Infinite families of linear codes supporting more tt-designs,” IEEE Trans. Inf. Theory, vol. 68, no. 7, pp. 4365–4377, Jul. 2022.
  • [44] H. Zhu, M. Shi, X. Wang, Tor Helleseth, “The qq-ary antiprimitive BCH codes,” IEEE Trans. Inf. Theory, vol. 68, no. 3, pp. 1683–1695, Mar. 2022.