Ternary Primitive LCD BCH codes
Abstract.
Absolute coset leaders were first proposed by the authors which have advantages in constructing binary LCD BCH codes. As a continue work, in this paper we focus on ternary linear codes. Firstly, we find the largest, second largest, and third largest absolute coset leaders of ternary primitive BCH codes. Secondly, we present three classes of ternary primitive BCH codes and determine their weight distributions. Finally, we obtain some LCD BCH codes and calculate some weight distributions. However, the calculation of weight distributions of two of these codes is equivalent to that of Kloosterman sums.
Key words and phrases:
LCD codes, BCH codes, absolute coset leaders, Kloosterman sums.1991 Mathematics Subject Classification:
Primary: 11T23, 94B05; Secondary: 11L05.Xinmei Huang
Department of Mathematics, Jinling Institute of Technology
Nanjing, 211169, P. R. China
State Key Laboratory of Cryptology, P. O. Box 5159
Beijing, 100878, China
Qin Yue
Department of Mathematics, Nanjing University of Aeronautics and Astronautics
Nanjing, Jiangsu, 211100, China
Yansheng Wu
School of Computer Science, Nanjing University of Posts and Telecommunications
Nanjing 210023, P. R. China
Xiaoping Shi
Department of Mathematics, Nanjing Forestry University
Nanjing 210037, P. R. China
(Communicated by )
1. Introduction
Let be a finite field with elements, where is a prime power. An linear code over is a linear subspace of with dimension and minimum (Hamming) distance . Let denote the number of codewords in with Hamming weight . The weight enumerator of is defined by The sequence is called the weight distribution of . A code is -weight if the number of nonzero in the sequence is equal to .
We define the standard Euclidean inner product of the -vector space as follows: for , . Let be an linear code, its dual code is defined as follows:
If the code satisfies the condition that each codeword implies , then is said to be a cyclic code. A cyclic code of length over corresponds to an ideal of the quotient ring . Furthermore, is a principle ideal ring, and is generated by a monic divisor of . In this situation, is called the generator polynomial of the code and we write .
Let be the ring of integers modulo . For , assume that is the smallest positive integer such that . Then the -cyclotomic coset of modulo is defined by
and . The smallest integer in is called the coset leader of (see [11]). In the paper [8], the authors gave a new definition to investigate LCD BCH codes. Define that the smallest integer in the set is called the absolute coset leader of .
Let be the multiplicative order of modulo and a primitive element of . Then is of order . A cyclic code of length over is called a BCH code with the designed distance if its generator polynomial is of the form
where is called the defining set of . If , we call a primitive BCH code. If , is called a narrow-sense BCH code; otherwise, it is called a non-narrow-sense BCH code. The dimension of is . Thus, to determine the dimension of the code , we only need to find out all coset leaders and cardinalities of the -cyclotomic cosets.
LCD cyclic codes named reversible codes were first studied by Massey for data storage applications [19]. An application of LCD codes against side-channel attacks was investigated by Carlet and Guilley, and several constructions of LCD codes were presented in [1]. Several constructions of LCD MDS codes were presented in [2, 4, 9, 10, 20]. Tzeng and Hartmann proved that the minimum distance of a class of LCD cyclic codes is greater than the BCH bound [21]. Several investigations of LCD BCH codes were studied in [8, 11, 17, 22, 23]. Parameters and the weight distributions of BCH codes are studied in [6, 7, 16, 18, 13, 12, 15]. LCD codes in Hermitian case were studied in [2, 10]. In [3], Carlet et al. completly determined all -ary() Euclidean LCD codes and all -ary () Hermitian LCD codes for all parameter. Some binary and ternary LCD codes were investigated in [8, 25]. In [8], the authors proposed a new conception, named absolute coset leader, and constructed some binary LCD BCH codes. In this paper, we shall investigate the ternary case.
The remainder of the paper is organized as follows. In Section 2, some fundamental definitions and results are introduced. In Section 3, the largest, second largest, and third largest absolute coset leaders are presented for ternary primitive BCH codes. In Section 4, some BCH codes and their weight distributions are presented. Also, LCD BCH codes are constructed and their parameters are determined, some weight distributions are calculated, the determination of the others is equivalent to the computing of Kloosterman sums. In Section 5, we conclude this paper.
2. Preliminaries
A linear code over is called a linear code with complementary dual code (LCD for short) if , where denotes the Euclidean dual of .
Let be a monic polynomial over with . The reciprocal polynomial of is defined by . Then we have the following lemma that characterizes LCD cyclic codes over .
Lemma 2.1.
[24] Let be a cyclic code of length over with generator polynomial and . Then the following statements are equivalent.
-
(1)
is an LCD code.
-
(2)
is self-reciprocal, i.e., .
-
(3)
is a root of for every root of .
Let be the finite field with elements, where is a power of a prime number . The canonical additive character of is defined as follows:
where is a -th primitive root of unity and denotes the trace function from to . The orthogonal property of additive characters which can be found in [14]
Let be a multiplicative character of . The trivial multiplicative character is defined by for all . For two multiplicative characters , of , we define the multiplication by setting for all . Let be the conjugate character of defined by , where denotes the complex conjugate of . It is easy to deduce that . It is known [14] that all the multiplicative characters form a multiplication group which is isomorphic to . The orthogonal property of multiplicative characters [14] is:
The Gauss sum over is defined by
It is easy to see that and . Gauss sums can be viewed as the Fourier coefficients in the Fourier expansion of the restriction of to in terms of the multiplicative characters of , i.e., for ,
(1) |
Using (1), we can get the following results.
Lemma 2.2.
[14] Let be a nontrivial additive character of , , and a multiplicative character of of order . Then
for any with .
In general, the explicit determination of Gauss sums is a difficult problem. For future use, we state the quadratic Gauss sums here.
Lemma 2.3.
[14] Let be a finite field with , where is an odd prime and . Let be the quadratic character of and let be the canonical additive character of . Then
3. Absolute coset leaders of ternary BCH codes
In this section, we will find the first, second and third largest absolute coset leaders of ternary cyclic BCH codes of length over , where .
In [16, 18, 23], the authors determined the largest and second largest coset leaders of BCH codes in three cases: (1) ; (2) ; (3) . In [8], the authors determined the largest and second largest absolute coset leaders of binary BCH codes.
Before presenting our results, we describe some notations. The -adic expansion of an integer is denoted by
where each .
According to the definition of absolute coset leaders, we can get the following proposition.
Proposition 1.
[8] Let the absolute coset leader of be and .
(1) Then .
(2) If , then , , and has the same absolute coset leader as one in .
Theorem 3.1.
Let , a positive integer, and . Then is the largest absolute coset leader among all -cyclotomic cosets, , and .
Proof.
We shall verify that is the largest absolute coset leader among all -cyclotomic cosets .
There are two -adic expansions of and :
(2) | |||||
Firstly, we prove that is the absolute coset leader of the -cyclotomic cosets . For ,
Hence only has one element, i.e. .
Secondly, we will show that is the largest absolute coset leader among all -cyclotomic cosets.
For , there is a -adic expansion:
where each , .
If the expansion of has . Without loss of generality, let . Then there is an integer , , such that , so by (3.1). Hence the absolute coset leader in is less than .
If the expansion of has . Similarly, let , there is an integer , , such that . Hence the absolute coset leader in is less than .
Therefore, is the largest absolute coset leader among all cosets.
This completes the proof. β
Theorem 3.2.
Let , a positive integer, and .
(1) If is an odd integer, then is the second largest absolute coset leader, , and .
(2) If is an even integer, then is the second largest absolute coset leader, , and .
Proof.
(1) If is odd and the -adic expansion of is as follows:
then .
Firstly, we prove that is the absolute coset leader of the -cyclotomic cosets and . For , if is odd, then
if is even, then
Hence has distinct elements, i.e. , and , which is the absolute coset leader in . Similarly, we can prove that , , and has also the absolute coset leader .
Secondly, we prove that is the second largest absolute coset leader.
For , there is a -adic expansion:
which has at least two elements among . Otherwise, the expansion of has only one elements of , then , , or .
If the expansion of has a consecutive form: , i.e., . Then there is an integer , , such that , so . Hence the absolute coset leader of is less than . Similarly, we can prove it if the expansion of has consecutive .
If the expansion of has a form: , i.e., . Then there is an integer , , such that , so . Hence the absolute coset leader of is less than . Similarly, we can prove if the expansion of has a from: . Then there is an integer , , such that , so . Hence the absolute coset leader of is less than .
If the expansion of has a form: (or ), then there is an integer such that (or , respectively). Hence the absolute coset leader of is less than .
If the expansion of has not any forms: , , , , and . We shall prove that the absolute coset leader of is less than . From the above, the expansion of is equivalent to insert some 1βs into the sequence (or ). Since is an odd integer, the number of 1βs in the expansion of is an odd integer .
If , i.e., the expansion of has only one form: (or ), then there is an integer , , such that (or , respectively).
If , without loss of generality, there are two adjacent in the expansion of , i.e.,
Then there is an integer , , such that
Similarly, if there are two adjacent in the expansion of , i.e.,
Then there is an integer , , such that
Therefore is the second largest absolute coset leader for is odd.
(2) If is even, and the expansion of is as follows:
then .
Firstly, we prove that is the absolute coset leader of the -cyclotomic cosets . For , if is odd, then , if is even, then . Hence and . It is obvious that is the absolute coset leader in .
Secondly, we prove that is the second largest absolute coset leader.
For , the -adic expansion of is as follows: , which has at least two elements among .
If the expansion of has a form: (or ). Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
If the expansion of has a consecutive form: . Then the expansion of has or . From the above, the absolute coset leader in is less than .
If the expansion of has a consecutive form: (or ). Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
Therefore is the second largest absolute coset leader.
This completes the proof. β
Theorem 3.3.
Let , a positive integer, and .
(1) If and , then is the third largest absolute coset leader, , and .
(2) If and , then is the third largest absolute coset leader, , and .
Proof.
(1) If and the -adic expansion of is as follows:
Firstly, it is checked that , and is the absolute coset leader of the -cyclotomic cosets .
Secondly, we prove that is the third largest absolute coset leader.
For , the -adic expansion of is as follows: , which has at least two elements among .
If the expansion of has a consecutive form: or . Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
If the expansion of has a consecutive form: and the expansion of has the form: or . Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
If the expansion of has not any consecutive form: , , or , and it has a form: or . Then we can easily check that the absolute coset leader of is less than .
If the expansion of has not any form: , , , and , we will prove that the absolute coset leader of is less than . By the assumptions, the expansion of is equivalent to insert some 1βs into the sequence (or ). Since , the number of 1βs in the expansion of is an even integer .
If , then (or ).
If , then or .
If , then (or ). Hence there is an integer , , such that (or ), so (or , respectively). So the absolute coset leader of is smaller than .
Therefore is the third largest absolute coset leader when .
(2) If and the 3-adic expansion of is as follows:
In fact, the number of in the expansion of is .
Firstly, we prove that is the absolute coset leader of the -cyclotomic cosets and . For , are all different and is the smallest one in . Hence has distinct elements, i.e. , and is the absolute coset leader in . Similarly, we can prove that , , and has also the absolute coset leader .
Secondly, we prove that is the third largest absolute coset leader.
For , there is a -adic expansion: , which has at least two elements among .
If the expansion of has a consecutive form: or . Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
If the expansion of has a consecutive form: and the expansion of has a form: or . Then there is an integer , , such that (or ), so (or , respectively). Hence, the absolute coset leader in is less than .
If the expansion of has not any consecutive form: , , or , and it has a form: or . Then we can easily check that the absolute coset leader of is less than .
If the expansion of has not any form: , , , and , we will prove that the absolute coset leader of is less than . Similarly, by the assumptions, the expansion of is equivalent to insert some 1βs into the sequence (or ). Since , the number of 1βs in the expansion of is an even integer with .
If , then .
If and the expansion of has only one form: or , i.e. or . Then there is an integer , , such that or .
If and the expansion of has not any form: or , i.e., (or ). Then there is a integer , , such that (or , respectively). Hence the absolute coset leader in is less than .
If . We consider the following some cases.
(I) If the expansion of has one of the following six cases:
i.e. there are two or more than three elements between two . Then there is an integer such that or .
(II) If the expansion of has a form:
where each inserts between and . Then , which is contradictory.
(III) If the expansion of has a form:
where , , , and appear between two . Let the number of and in the expansion of be , then is odd.
In fact, if and are viewed as and , respectively, i.e.
Then by and even, and is odd.
Without loss of generality, there are two adjacent in the expansion of , i.e.,
Then there is an integer such that .
Hence the absolute coset leader in is less than . Therefore is the third largest absolute coset leader for .
This completes the proof. β
4. Parameters of some BCH codes
In this section, we will first present three classes of ternary BCH codes, determine their parameters and weight distributions. Secondly, four classes of ternary LCD BCH codes are proposed, weight distributions of two of these codes are calculated and the others convert to the calculations of the Kloosterman sums.
We always assume that , is a primitive element of , and is the -cyclotomic coset. We shall compute the weight distributions of BCH codes.
4.1. Three classes of BCH Codes and their weight distributions
Theorem 4.1.
Let be an odd integer, , , , and . Then
is a one-weight BCH code.
Proof.
By Theorem 3.2, is the second largest abstract coset leader if is odd, the parity-check polynomial of is , which is irreducible over and , so the dimension of the code is .
For , let be a 3-th primitive root of unit in the complex field. Since , and , we have
This completes the proof.β
Example 1.
Let , , and . Then the BCH code in Theorem 4.1 has weight enumerator which is confirmed by Magma.
Theorem 4.2.
Let be an even integer with , , , , and . Then
is a BCH code with parameters and the weight distribution in Table 1.
Table 1
Weight
Frequency
0
1
Proof.
By Theorem 3.3, is the third largest abstract coset leader, the parity-check polynomial of is , so the dimension of the code is .
For , let be a 3-th primitive root of unit in the complex field. By , and . Since and , for ,
where is the multiplicative character of order over . Hence the frequency of the weights is easy to obtain and this completes the proof. β
Example 2.
Let , , and . Then the BCH code in Theorem 4.2 has weight enumerator which is confirmed by Magma.
Theorem 4.3.
Let be an integer with , , , , and . Then
is a ternary BCH code with parameters and the weight distribution in Table 2.
Table 2
Weight
Frequency
0
1
2
Proof.
By Theorem 3.3, is the third largest abstract coset leader, the parity-check polynomial of is , so the dimension of the code is .
Let be a 3-th primitive root of unit in the complex field. By , ; by , . For and ,
Suppose that and . Then .
Suppose that and . Then
Suppose that and . Then
Suppose that and . Then
Note that it is easy to obtain their frequencies and this completes the proof. β
Example 3.
4.2. Ternary LCD BCH Codes
Let and a primitive element of . Define a ternary LCD BCH code , where is a positive integer, is a defining set, and . Now we shall choose some to compute the weight distributions of the ternary LCD BCH cyclic codes.
Theorem 4.4.
Let be an integer and . Then
is a ternary LCD BCH cyclic code with parameters and its designed distance .
Proof.
By Theorem 3.1, is the largest abstract coset leader, the parity-check polynomial of is , where is irreducible over , if is an th root of unit in , , , and is a self-reciprocal polynomial.
Let . Then
So, it has parameters and it has one all zeros codeword and two codewords with weight . β
Theorem 4.5.
Let be an odd integer, , , , and . Then
is a ternary LCD cyclic code with parameters and its designed distance .
Proof.
By Theorem 3.2, is the second largest absolute coset leader, the parity-check polynomial of is , where is irreducible over , , , and is a reciprocal polynomial of .
Let . Then by Delsarteβs Theorem [5],
On the other hand, by odd, and , we get that and is a primitive element of . Hence
By Theorem 3.1 and BCH bound, it has parameters . β
Let , the Kloosterman sum is defined over as follows:
where is the canonical additive character of .
Corollary 1.
Let be an odd integer. Then for and ,
Proof.
Remark.
Numerical examples by Magma show that the bound here is not tight in general.
Theorem 4.6.
Let be an even integer, , , , and . Then
is a ternary LCD BCH code with parameters and the weight distribution in Table 3.
Table 3
Weight
Frequency
0
1
12
8
6
Proof.
By Theorem 3.2, is the second largest abstract coset leader and the parity-check polynomial of is , where and are irreducible over , , , , and .
Let be a -th primitive root of unit and . Then by Delsarteβs Theorem [5],
Let be a 3-th primitive root of unit in the complex field. By , and . Denote Then
Note that and .
Suppose that and . Then .
Suppose that and . Then by Lemma 2.3,
where is a multiplicative character of order in .
Suppose that and . Then
Suppose that and . By Lemma 2.3,
Note that it is easy to obtain their frequencies and this completes the proof. β
Example 4.
Let , , and . Then the LCD BCH code in Theorem 4.6 has weight enumerator which is confirmed by Magma.
Theorem 4.7.
Let , , , , . Then
is a ternary LCD BCH code with parameters and its designed distance .
Proof.
By Theorem 3.3, is the third largest abstract coset leader, the parity-check polynomial of is , where is irreducible over , , , and is a reciprocal polynomial of .
Let . Then by Delsarteβs Theorem [5],
On the other hand, by , , , and , we get that and is a semi-primitive element of . Hence
By Theorem 3.1 and BCH bound, the code has parameters . β
5. Concluding remarks
In this paper, several classes of ternary primitive BCH codes and LCD BCH codes were studied according to the first, second and third largest absolute coset leaders. The weight distributions of these codes were given except two of them, whose weight distributions rely on the calculation of Kloosterman sums.
Acknowledgments
The authors are very grateful to the reviewers and the Editor for their valuable suggestions that improved the quality of this paper.
References
- [1] C. Carlet and S. Guilley, \doititleComplementary dual codes for countermeasures to side-channel attacks, Adv. Math. Commun., 10(1)(2016), 131β150.
- [2] C. Carlet, S. Mesnager, C. Tang and Y. Qi, \doititleEuclidean and Hermitian LCD MDS codes, Des. Codes Cryptogr., 86(2018), 2605β2618.
- [3] C. Carlet, S. Mesnager, C. Tang, Y. Qi and R. Pellikaan, \doititleLinear codes over which are equivalent to LCD codes, IEEE Trans. Inf. Theory, 64(2018), 3010β3017.
- [4] B. Chen and H. Liu, \doititleNew constructions of MDS codes with complementary duals, IEEE Trans. Inf. Theory, 63(2017), 2843β2847.
- [5] P. Delsarte, \doititleOn subfield subcodes of modified Reed-Solomon codes, IEEE Trans. Inf. Theory, 21(1975), 575β576.
- [6] C. Ding, \doititleParameters of several classes of BCH codes, IEEE Trans. Inf. Theory, 61(2015), 5322β5330.
- [7] C. Ding, C. Fan and Z. Zhou, \doititleThe dimension and minimum distance of two classes of primitive BCH codes, Finite Fields Appl., 45(2017), 237β263.
- [8] X. Huang, Q. Yue, Y. Wu and X. Shi, \doititleBinary Primitive LCD BCH codes, Des. Codes Cryptogr., 88(2020), 2453β2473.
- [9] L. Jin, \doititleConstruction of MDS codes with complementary duals, IEEE Trans. Inf. Theory, 63(2017), 2843β2847.
- [10] C. Li, \doititleHermitian LCD codes from cyclic codes, Des. Codes Cryptogr., 86(2018), 2261β2278.
- [11] C. Li, C. Ding and S. Li, \doititleLCD cyclic codes over finite fields, IEEE Trans. Inf. Theory, 63(2017), 4344β4356.
- [12] C. Li, P. Wu and F. Liu, \doititleOn two classes of primitive BCH codes and some related codes, IEEE Trans. Inf. Theory, 65(2019), 3830β3840.
- [13] C. Li, Q. Yue and F. Li, \doititleWeight distributions of cyclic codes with respect to pairwise coprime order elements, Finite Fields Appl., 28(2014), 94β114.
- [14] R. Lidl and H. Niederreiter, Finite Fields, Addison-Wesley Publishing Inc.,1983.
- [15] F. Li, Q. Yue and Y. Wu, \doititleDesigned distances and parameters of new LCD BCH codes over finite fields, Cryptogr. Commun., 12(2020), 147β163.
- [16] S. Li, C. Ding, M. Xiong and G. Ge, \doititleNarrow-sense BCH codes over GF with length , IEEE Trans. Inf. Theory, 63(2017), 7219-7236.
- [17] S. Li , C. Li, C. Ding and H. Liu, \doititleTwo families of LCD BCH codes, IEEE Trans. Inf. Theory, 63( 2017), 5699β5717.
- [18] H. Liu, C. Ding and C. Li, \doititleDimensions of three types of BCH codes over GF, Discrete Math., 340(2017), 1910β1927.
- [19] J. L. Massey, \doititleReversible codes, Information and Control, 7(1964), 369β380.
- [20] X. Shi, Q. Yue and S. Yang, \doititleNew LCD MDS codes constructed from generalized Reed-Solomon codes, J. Algebra Appl., 18(2018), 1950150.
- [21] K. K. Tzeng and C. R. P. Hartmann, \doititleOn the minimum distance of certain reversible cyclic codes, IEEE Trans. Inf. Theory, 16(1970),644β646.
- [22] Y. Wu and Q. Yue, \doititleFactorizations of binomial polynomials and enumerations of LCD and self-dual constacyclic codes, IEEE Trans. Inf. Theory, 65(2019),1740β1751.
- [23] H. Yan, H. Liu, C. Li and S. Yang, \doititleParameters of LCD BCH codes with two lengths, Adv. Math. Commun., 12(2018), 579β594,.
- [24] X. Yang and J. L. Massey, \doititleThe necessary and sufficient condition for a cyclic code to have a complementary dual, Discrete Math., 126(1994), 391β393.
- [25] Z. Zhou, X. Li, C. Tang and C. Ding, \doititleBinary LCD codes and self-orthogonal codes from a generic construction, IEEE Trans. Inf. Theory, 65(2019), 16β27.
Received March 2021; 1st revision ; final revision .
E-mail address: [email protected]
E-mail address: [email protected]
E-mail address: [email protected]
E-mail address: [email protected]