<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">APM</journal-id><journal-title-group><journal-title>Advances in Pure Mathematics</journal-title></journal-title-group><issn pub-type="epub">2160-0368</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/apm.2017.75019</article-id><article-id pub-id-type="publisher-id">APM-76077</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  New MDS Euclidean and Hermitian Self-Dual Codes over Finite Fields
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hongxi</surname><given-names>Tong</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xiaoqing</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Mathematics, Shanghai University, Shanghai, China</addr-line></aff><pub-date pub-type="epub"><day>10</day><month>05</month><year>2017</year></pub-date><volume>07</volume><issue>05</issue><fpage>325</fpage><lpage>333</lpage><history><date date-type="received"><day>12,</day>	<month>April</month>	<year>2017</year></date><date date-type="rev-recd"><day>7,</day>	<month>May</month>	<year>2017</year>	</date><date date-type="accepted"><day>10,</day>	<month>May</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In this paper, we construct MDS Euclidean self-dual codes which are ex-tended cyclic duadic codes. And we obtain many new MDS Euclidean self-dual codes. We also construct MDS Hermitian self-dual codes from generalized Reed-Solomon codes and constacyclic codes.
 
</p></abstract><kwd-group><kwd>MDS Euclidean Self-Dual Codes</kwd><kwd> MDS Hermitian Self-Dual Codes</kwd><kwd>  Constacyclic Codes</kwd><kwd> Cyclic Duadic Codes</kwd><kwd> Generalized Reed-Solomon Codes</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Let F q denote a finite field with q elements. An [ n , k , d ] linear code C over F q is a k-dimensional subspace of F q n . These parameters n, k and d satisfy d ≤ n − k + 1 . If d = n − k + 1 , C is called a maximum distance separable (MDS) code. MDS codes are of practical and theoretical importance. For examples, MDS codes are related to geometric objects called n-arcs.</p><p>The Euclidean dual code C ⊥ of C is defined as</p><p>C ⊥ : = { x ∈ F q n : ∑ i = 1 n     x i y i = 0 ,   ∀ y ∈ C } . (1)</p><p>If q = r 2 , the Hermitian dual code C ⊥ H of C is defined as</p><p>C ⊥ H : = { x ∈ F r 2 n : ∑ i = 1 n     x i y i r = 0 ,   ∀ y ∈ C } . (2)</p><p>If C satisfies C = C ⊥ or C = C ⊥ H , C is called Euclidean self-dual or Hermitian self-dual, respectively. In [<xref ref-type="bibr" rid="scirp.76077-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.76077-ref2">2</xref>] discussing Euclidean self-dual codes or Hermitian self-dual codes. If C is MDS and Euclidean self-dual or Hermitian self-dual, C is called an MDS Euclidean self-dual code or an MDS Hermitian self-dual code, respectively. In recent years, In [<xref ref-type="bibr" rid="scirp.76077-ref2">2</xref>] - [<xref ref-type="bibr" rid="scirp.76077-ref9">9</xref>] study the MDS self-dual codes. One of these problems in this topic is to determine existence of MDS self-dual codes. When 2 | q , Grassl and Gulliver completely solve the existence of MDS Euclidean self-dual codes in [<xref ref-type="bibr" rid="scirp.76077-ref5">5</xref>] . In [<xref ref-type="bibr" rid="scirp.76077-ref6">6</xref>] , Guenda obtain some new MDS Euclidean self-dual codes and MDS Hermitian self-dual codes. In [<xref ref-type="bibr" rid="scirp.76077-ref8">8</xref>] , Jin and Xing obtain some new MDS Euclidean self-dual codes from generalized Reed- Solomon codes.</p><p>In this paper, we obtain some new Euclidean self-dual codes by studying the solution of an equation in F q . And we generalize Jin and Xing’s results to MDS Hermitian self-dual codes. We also construct MDS Hermitian self-dual codes from constacyclic codes. We discuss MDS Hermitian self-dual codes obtained from extended cyclic duadic codes and obtain some new MDS Hermitian self-dual codes.</p></sec><sec id="s2"><title>2. MDS Euclidean Self-Dual Codes</title><p>A cyclic code C of length n over F q can be considered as an ideal, 〈 g ( x ) 〉 , of the ring R = F q [ x ] x n − 1 , where g ( x ) | x n − 1 and ( n , q ) = 1 . The set T = { 0 ≤ i ≤ n − 1 | g ( α i ) = 0 } is called the defining set of C, where   o r d   α = n .</p><p>Let S 1 and S 2 be unions of cyclotomic classes modulo n, such that S 1 ∩ S 2 = ∅ and S 1 ∪ S 2 = ℤ n \ { 0 } and a S i ( mod n ) = S i + 1 ( mod 2 ) . Then the triple μ a , S 1 and S 2 is called a splitting modulo n. Odd-like codes D 1 and D 2 are cyclic codes over F q with defining sets S 1 and S 2 , respectively. D 1 and D 2 can be denoted by μ a ( D i ) = D i + 1 ( mod 2 ) . Even-like duadic codes C 1 and C 2 are cyclic codes over F q with defining sets { 0 } ∪ S 1 and { 0 } ∪ S 2 , respectively. Obviously, μ a ( C i ) = C i + 1 ( mod 2 ) . In [<xref ref-type="bibr" rid="scirp.76077-ref10">10</xref>] , A duadic code of length n over F q exists if and only if q is a quadratic residue modulo n.</p><p>Let n | q − 1 and n be an odd integer. D 1 is a cyclic code with defining set T = { 1 , 2 , ⋯ , n − 1 2 } . Then D 1 is an [ n , n + 1 2 , n + 1 2 ] MDS code. Its dual C 1 = D 1 ⊥ is also cyclic with defining set T ∪ { 0 } . There are a pair of odd-like duadic codes D 1 = C 1 ⊥ and D 2 = C 2 ⊥ and a pair of even-like duadic codes C 2 = μ − 1 ( C 1 ) .</p><p>Lemma 1 [<xref ref-type="bibr" rid="scirp.76077-ref6">6</xref>] Let n | q − 1 and n be an odd integer. There exists a pair of</p><p>MDS codes D 1 and D 2 with parameters [ n , n + 1 2 , n + 1 2 ] , and</p><p>μ − 1 ( D i ) = D i + 1 ( m o d 2 ) .</p><p>Lemma 2 [<xref ref-type="bibr" rid="scirp.76077-ref11">11</xref>] Let D 1 and D 2 be a pair of odd-like duadic codes of length n over F q , μ − 1 ( D i ) = D i + 1 ( mod 2 ) . Assume that</p><p>1 + γ 2 n = 0 (*)</p><p>has a solution in F q . Let D ˜ i = { c ˜ | c ∈ D i } for 1 ≤ i ≤ 2 and c ˜ = ( c 0 , c 1 , ⋯ , c n − 1 , c ∞ ) with c ∞ = − γ ∑ i = 0 n − 1     c i . Then D ˜ 1 and D ˜ 2 are Euclidean self-dual codes.</p><p>In [<xref ref-type="bibr" rid="scirp.76077-ref11">11</xref>] , the solution of (*) is discussed when n is an odd prime. In [<xref ref-type="bibr" rid="scirp.76077-ref5">5</xref>] , the solution of (*) is discussed when n is an odd prime power. Next, we discuss the solution of (*) for any odd integer n with n | q − 1 .</p><p>Definition 1 (Legendre Symbol) [<xref ref-type="bibr" rid="scirp.76077-ref12">12</xref>] Let p be an prime and a be an integer.</p><p>( a p ) = { 0,   if     a ≡ 0 ( m o d p ) , 1,   if     a ( ≠ 0 )     is   a   quadratic   residue   modulo     p , − 1,   if     a     is   not   a   quadratic   residue   modulo     p . (3)</p><p>Proposition 1 [<xref ref-type="bibr" rid="scirp.76077-ref12">12</xref>]</p><p>( a p ) = ( p 1 p ) ⋯ ( p s p ) ,</p><p>where a = p 1 ⋯ p s .</p><p>Definition 2 (Jacobi Symbol) [<xref ref-type="bibr" rid="scirp.76077-ref12">12</xref>] Let m and n ( ≠ 0 ) be two integers.</p><p>( m n ) = ( m p 1 ) ⋯ ( m p h ) ,</p><p>where n = p 1 ⋯ p h .</p><p>We cannot obtain m ( ≠ 0 ) is a quadratic residue modulo n from ( m n ) = 1 . But we have the next proposition.</p><p>Proposition 2 Let m ( ≠ 0 ) and n be two integers and ( m , n ) = 1 . If m is a quadratic residue modulo n, then</p><p>( m n ) = 1.</p><p>If</p><p>( m n ) = − 1 ,</p><p>then m is not a quadratic residue modulo n.</p><p>Proof Obviously.</p><p>Lemma 3 (Law of Quadratic Reciprocity) [<xref ref-type="bibr" rid="scirp.76077-ref12">12</xref>] Let p and r be odd primes, ( p , r ) = 1 .</p><p>( p r ) ( r p ) = ( − 1 ) r − 1 2 ⋅ p − 1 2 . (4)</p><p>Corollary 1 Let p and r be odd primes.</p><p>(1) When p ≡ 1 ( m o d 4 ) or r ≡ 1 ( m o d 4 ) ,</p><p>( p r ) = ( r p ) .</p><p>(2) When p ≡ r ≡ 3 ( m o d 4 ) ,</p><p>( p r ) = − ( r p ) .</p><p>Theorem 1 Let q = r t and r be an odd prime. Let n | q − 1 and n be an odd integer. And</p><p>n = p 1 e 1 ⋯ p s e s p s + 1 e s + 1 ⋯ p h e h ,</p><p>where</p><p>p 1 ≡ ⋯ ≡ p s ≡ 3 ( m o d 4 ) ,     p s + 1 ≡ ⋯ ≡ p h ≡ 1 ( m o d 4 ) .</p><p>(1) When q ≡ 1 ( m o d 4 ) , there is a solution to (*) in F q .</p><p>(2) Let q ≡ 3 ( m o d 4 ) . If ∑ i = 1 s   e i is an odd integer, there is a solution to (*) in F q .</p><p>Proof (1) q ≡ 1 ( m o d 4 ) .</p><p>(1.1) r ≡ 3 ( m o d 4 ) . So we have that t is even. Then every quadratic equation with coefficients in F r , such as Eq. (*), has a solution in F r 2 ⊆ F q .</p><p>(1.2) r ≡ 1 ( m o d 4 ) and 2 | t . The proof is similar as (1.1).</p><p>(1.3) r ≡ 1 ( m o d 4 ) and 2 ∤ t .</p><p>1 = ( q n ) = ( r n ) = ( r p 1 ) e 1 ⋯ ( r p h ) e h = ( p 1 r ) e 1 ⋯ ( p h r ) e h = ( n r ) .</p><p>So n is a quadratic residue modulo r. And −1 is a quadratic residue modulo r. So there is a solution to (*) in F q .</p><p>(2) q ≡ 3 ( m o d 4 ) . Then r ≡ 3 ( m o d 4 ) and t is odd.</p><p>1 = ( q n ) = ( r n ) = ( r p 1 ) e 1 ⋯ ( r p s ) e s ( r p s + 1 ) e s + 1 ⋯ ( r p h ) e h = ( − 1 ) e 1 ( p 1 r ) e 1 ⋯ ( − 1 ) e s ( p s r ) e s ( p s + 1 r ) e s + 1 ⋯ ( p h r ) e h = ( − 1 ) ∑ i = 1 s e i ( p 1 r ) e 1 ⋯ ( p s r ) e s ( p s + 1 r ) e s + 1 ⋯ ( p h r ) e h = ( − 1 ) ∑ i = 1 s e i ( n r ) .</p><p>If ∑ i = 1 s e i is odd, n is not a quadratic residue modulo r. And −1 is not a quadratic residue modulo r. So − n is a quadratic residue modulo r. There is a solution to (*) in F q .</p><p>Remark In fact, n | q − 1 , and n is an odd integer and q ≡ 3 ( m o d 4 ) . We can easily prove that there is a solution to (*) in F q if and only if ∑ i = 1 s e i is an odd integer.</p><p>Let n | q − 1 , q ≡ 1 ( m o d n ) . q is a quadratic residue modulo n. y 2 ≡ q ( m o d n ) . Let q = r t and q ≡ 3 ( m o d 4 ) , where r is a prime. Then r ≡ 3 ( m o d 4 ) and t is odd. Equation (*) has solutions in F q if and only if Equation (*) has solutions in F r . And r is a quadratic residue modulo n.</p><p>( y r − t − 1 2 ) 2 ≡ r ( m o d n ) . Let p be an odd prime divisor of n. r is a quadratic residue modulo p. Then ( r p ) = 1 . By Law of Quadratic Reciprocity, p | n ,</p><p>( p r ) = { 1 , p ≡ 1 ( mod 4 ) − 1 , p ≡ 3 ( mod 4 ) .</p><p>The Legendre symbol</p><p>( − n r ) = ( − 1 r ) ( p 1 r ) e 1 ⋯ ( p s r ) e s ( p s + 1 r ) e s + 1 ⋯ ( p h r ) e h = ( − 1 ) 1 + ∑ i = 1 s e i = { 1 , ∑ i = 1 s   e i     i s   odd   − 1 , ∑ i = 1 s   e i     i s   even   ,</p><p>where n = p 1 e 1 ⋯ p s e s p s + 1 e s + 1 ⋯ p h e h , p 1 ≡ ⋯ ≡ p s ≡ 3 ( m o d 4 ) and p s + 1 ≡ ⋯ ≡ p h ≡ 1 ( m o d 4 ) .</p><p>Theorem 2 Let q = r t be a prime power, n | q − 1 and n be an odd integer. Then there exists a pair D 1 , D 2 of MDS odd-like duadic codes of length n and</p><p>μ − 1 ( D i ) = D i + 1 ( mod 2 ) , where even-like duadic codes are MDS self-orthogonal, and T 1 = { 1 , ⋯ , n − 1 2 } . Furthermore,</p><p>(1) If q = 2 t , then D ˜ i are [ n + 1, n + 1 2 , n + 3 2 ] MDS Euclidean self-dual codes.</p><p>(2) If q ≡ 1 ( m o d 4 ) , then D ˜ i are [ n + 1, n + 1 2 , n + 3 2 ] MDS Euclidean self-dual codes.</p><p>(3) If q ≡ 3 ( m o d 4 ) and ∑ i = 1 s e i is an odd integer, then D ˜ i are [ n + 1, n + 1 2 , n + 3 2 ] MDS Euclidean self-dual codes, where n = p 1 e 1 ⋯ p s e s p s + 1 e s + 1 ⋯ p t e h and p 1 ≡ ⋯ ≡ p s ≡ 3 ( m o d 4 ) , p s + 1 ≡ ⋯ ≡ p h ≡ 1 ( m o d 4 ) .</p><p>Proof Obviously, D i are [ n , n + 1 2 , n + 1 2 ] MDS odd-like duadic codes. If there is a solution to (*), we want to prove D ˜ i are [ n + 1, n + 1 2 , n + 3 2 ] MDS Euclidean self-dual codes, and we only need to prove that</p><p>c ∈ D i     and     w t ( c ) = n + 1 2 ,     then     w t ( c ˜ ) = n + 1 2 + 1.</p><p>This is equivalent to prove that c ∞ ≠ 0 . It can be proved similarly by which proved in [<xref ref-type="bibr" rid="scirp.76077-ref5">5</xref>] .</p><p>When q = 2 t , there is a solution to (*) in F 2 t , D ˜ i are [ n + 1, n + 1 2 , n + 3 2 ] MDS Euclidean self-dual codes by Lemma 2.</p><p>We can obtain (2) and (3) from Theorem 1 and Lemma 2. Theorem 2 is proved.</p><p>We list some new MDS Euclidean self-dual codes in the next <xref ref-type="table" rid="table1">Table 1</xref>.</p></sec><sec id="s3"><title>3. MDS Hermitian Self-Dual Codes</title><p>Let n ≤ q 2 . We choose n distinct elements { α 1 , ⋯ , α n } from F q 2 and n nonzero elements { v 1 , ⋯ , v n } from F q 2 . The generalized Reed-Solomon code</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Some new MDS Euclidean self-dual codes</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >n</th><th align="center" valign="middle" >q</th></tr></thead><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >2<sup>2</sup>, 7</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >2<sup>4</sup>, 3<sup>4</sup></td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >2<sup>3</sup>, 3<sup>6</sup></td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >2<sup>6</sup>, 5<sup>6</sup></td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >3<sup>5</sup></td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >2<sup>12</sup>, 3<sup>6</sup></td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >31, 31<sup>2</sup>, 31<sup>3</sup></td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >3<sup>16</sup></td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >5<sup>9</sup></td></tr><tr><td align="center" valign="middle" >22</td><td align="center" valign="middle" >5<sup>6</sup></td></tr><tr><td align="center" valign="middle" >24</td><td align="center" valign="middle" >3<sup>11</sup></td></tr><tr><td align="center" valign="middle" >26</td><td align="center" valign="middle" >7<sup>4</sup></td></tr><tr><td align="center" valign="middle" >28</td><td align="center" valign="middle" >7<sup>9</sup></td></tr><tr><td align="center" valign="middle" >30</td><td align="center" valign="middle" >59</td></tr><tr><td align="center" valign="middle" >156</td><td align="center" valign="middle" >5<sup>4</sup></td></tr></tbody></table></table-wrap><p>G R S k ( α , v ) : = { ( v 1 f ( α 1 ) , ⋯ , v n f ( α n ) ) : f ( x ) ∈ F q 2 [ x ] , deg f ( x ) ≤ k − 1 }</p><p>is a q<sup>2</sup>-ary [ n , k , n − k + 1 ] MDS code, where α = ( α 1 , ⋯ , α n ) and v = ( v 1 , ⋯ , v n ) .</p><p>Theorem 3 Let n ≤ q and 2 | n . Let { α 1 , ⋯ , α n } be n distinct elements from F q ( ⊆ F q 2 ) and u i = ∏ 1 ≤ j ≤ n , j ≠ i ( α i − α j ) − 1 , 1 ≤ i ≤ n . Then there exist v i ∈ F q 2 such that u i = v i 2 , for i = 1 , ⋯ , n , and the generalized Reed-Solomon code G R S n 2 ( α , v ) is an [ n , n 2 , n 2 + 1 ] MDS Hermitian self-dual code over F q 2 , where α = ( α 1 , ⋯ , α n ) and v = ( v 1 , ⋯ , v n ) .</p><p>Proof Obviously, u i ( ≠ 0 ) ∈ F q ( ⊆ F q 2 ) for 1 ≤ i ≤ n . So there exist v i ( ≠ 0 ) ∈ F q 2 such that u i = v i 2 for 1 ≤ i ≤ n . The generalized Reed-Solomon</p><p>code G R S n 2 ( α , v ) is an [ n , n 2 , n 2 + 1 ] MDS code over F q 2 . For proving the generalized Reed-Solomon code G R S n 2 ( α , v ) is Hermitian self-dual over F q 2 , we only prove</p><p>( v 1 α 1 l , ⋯ , v n α n l ) ⋅ ( v 1 q α 1 k q , ⋯ , v n q α n k q ) = 0,     0 ≤ l , k ≤ n 2 − 1.</p><p>From the choose of α i , v i and [8, Corollary 2.3],</p><p>( v 1 α 1 l , ⋯ , v n α n l ) ⋅ ( v 1 q α 1 k q , ⋯ , v n q α n k q ) = ( v 1 α 1 l , ⋯ , v n α n l ) ⋅ ( v 1 α 1 k , ⋯ , v n α n k ) = 0,     0 ≤ l , k ≤ n 2 − 1.</p><p>So the generalized Reed-Solomon code G R S n 2 ( α , v ) is an [ n , n 2 , n 2 + 1 ] MDS Hermitian self-dual code over F q 2 .</p><p>Next we construct MDS Hermitian self-dual codes from constacyclic codes.</p><p>Let C be an [ n , k ] l-constacyclic code over F q 2 and ( n , q ) = 1 . C is considered as an ideal, 〈 g ( x ) 〉 , of F q 2 [ x ] x n − λ , where g ( x ) | ( x n − λ ) . Simply, C = 〈 g ( x ) 〉 .</p><p>Lemma 4 [<xref ref-type="bibr" rid="scirp.76077-ref2">2</xref>] Let λ ∈ F q 2 * , r = ord q 2 ( λ ) , and C be a l-constacyclic code over F q 2 . If C is Hermitian self-dual, then r | q + 1 .</p><p>Lemma 5 [<xref ref-type="bibr" rid="scirp.76077-ref2">2</xref>] Let n = 2 a n ′ ( a &gt; 0 ) and r = 2 b r ′ be integers such that 2 ∤ n ′ and 2 ∤ r ′ . Let q be an odd prime power such that ( n , q ) = 1 and r | q + 1 , and let λ ∈ F q 2 has order r. Then Hermitian self-dual l-constacyclic codes over F q 2 of length n exist if and only if b &gt; 0 and q ≡ − 1 ( m o d 2 a + b ) .</p><p>Let r = ord q 2 ( λ ) and r | q + 1 .</p><p>O r , n = { 1 + r j | j = 0 , 1 , ⋯ , n − 1 } .</p><p>Then α i ( i ∈ O r , n ) are all solutions of x n − λ = 0 in some extension field of F q 2 , where ord α = r n . C is called a l-constacyclic code with defining set T ⊆ O r , n , if</p><p>C = 〈 g ( x ) 〉     and       g ( α i ) = 0 ,     ∀ i ∈ T .</p><p>Theorem 4 Let n = 2 a n ′ ( a &gt; 0 ) and r = 2 b r ′ ( b &gt; 0 ) . r n | q 2 − 1 . λ ∈ F q 2 * with ord λ = r . q ≡ − 1 ( m o d 2 a + b ) . If r n | 2 ( q + 1 ) , there exists an MDS Hermitian self-dual code C over F q 2 with length n, C is a l-constacyclic code with defining set</p><p>T = { 1 + r j | 0 ≤ j ≤ n 2 − 1 } .</p><p>Proof If r n | q 2 − 1 , C q 2 ( i ) = { i } , for i ∈ O r , n , where C q 2 ( i ) denote the q<sup>2</sup>-cyclotomic coset of i mod r n . And | T | = n 2 , C is an [ n , n 2 , n 2 + 1 ] MDS l-constacyclic code by the BCH bound of constacyclic code.</p><p>When r n | 2 ( q + 1 ) , q = r n l 2 − 1 . Because q ≡ − 1 ( m o d 2 a + b ) , l is odd.</p><p>( − q ) ( 1 + r j ) = − q − q r j ≡ 1 − r n l 2 + r j ≡ 1 + r ( n 2 + j ) ( mod r n ) .</p><p>So</p><p>( − q ) T ∩ T = ∅ .</p><p>C is MDS Hermitian self-dual by the relationship of roots of a constacyclic code and its Hermitian dual code’s roots.</p><p>Remark The MDS Hermitian self-dual constacyclic code obtained from Theorem 4 is different with the MDS Hermitian self-dual constacyclic code in [<xref ref-type="bibr" rid="scirp.76077-ref12">12</xref>] , because ( q + 1 , q − 1 ) = 2 for an odd prime power q.</p><p>If r = 2 , C is negacyclic. Theorem 4 can be stated as follow.</p><p>Corollary 2 Let n = 2 a n ′ ( a ≥ 1 ) and n ′ is odd. Let</p><p>q ≡ − 1 ( mod 2 a n ″ )     and     q ≡ 2 a − 1 ( mod 2 a + 1 ) ,</p><p>where n ′ | n ″ and n ″ is odd. Then there exists an MDS Hermitian self-dual code C of length n which is negacyclic with defining set</p><p>T = { 1 + 2 j | j = 0 , 1 , ⋯ , n 2 − 1 } .</p><p>Especially, when a = 1 , Corollary 2 is similar as [5, Theorem 11].</p><p>From Theorem 3 and Theorem 4, we obtain the next theorem.</p><p>Theorem 5 Let n ≤ q + 1 and n be even. There exists an MDS Hermitian self-dual code with length n over F q 2 .</p></sec><sec id="s4"><title>4. Conclusion</title><p>In this paper, we obtain many new MDS Euclidean self-dual codes by solving the Equation (*) in F q . We generalize the work of [<xref ref-type="bibr" rid="scirp.76077-ref8">8</xref>] to MDS Hermitian self-dual codes, and we construct new MDS Hermitian self-dual codes from constacyclic codes. We obtain that there exists an MDS Hermitian self-dual code with length n over F q 2 , where n ≤ q + 1 and n is even. And we also discuss these MDS Hermitian self-dual codes, which are extended cyclic duadic codes. Some new MDS Hermitian self-dual codes are obtained.</p></sec><sec id="s5"><title>Cite this paper</title><p>Tong, H.X. and Wang, X.Q. (2017) New MDS Euclidean and Hermitian Self-Dual Codes over Finite Fields. Advances in Pure Mathematics, 7, 325-333. https://doi.org/10.4236/apm.2017.75019</p></sec></body><back><ref-list><title>References</title><ref id="scirp.76077-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Dicuangco, L., Moree, P. and Solé, P. (2007) The Lengths of Hermitian Self-Dual Extended Duadic Codes. Journal of Pure and Applied Algebra, 209, 223-237. https://doi.org/10.1016/j.jpaa.2006.05.024</mixed-citation></ref><ref id="scirp.76077-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Yang, Y.S. and Cai, W.C. (2015) On Self-Dual Constacyclic Codes over Finite Fields. Designs, Codes and Cryptography, 74, 355-364. https://doi.org/10.1007/s10623-013-9865-9</mixed-citation></ref><ref id="scirp.76077-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Aaron Gulliver, T., Kim, J.L. and Lee, Y. (2008) New MDS or Near-MDS Self-Dual Codes. IEEE Transactions on Information Theory, 54, 4354-4360. https://doi.org/10.1109/TIT.2008.928297</mixed-citation></ref><ref id="scirp.76077-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Georgiou, S. and Koukouvinos, C. (2002) MDS Self-Dual Codes over Large Prime Fields. Finite Fields and Their Applications, 8, 455-470. https://doi.org/10.1016/S1071-5797(02)90353-9</mixed-citation></ref><ref id="scirp.76077-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Grassel, M. and Aaron Gulliver, T. (2008) On Self-Dual MDS Codes. Proceedings of ISIT, Barcelona, 2008, 1954-1957.</mixed-citation></ref><ref id="scirp.76077-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Guenda, K. (2012) New MDS Self-Dual Codes over Finite Fields. Designs, Codes and Cryptography, 62, 31-42. https://doi.org/10.1007/s10623-011-9489-x</mixed-citation></ref><ref id="scirp.76077-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Harada, M. and Kharaghani, H. (2008) Orthogonal Designs and MDS Self-Dual Codes. The Australasian Journal of Combinatorics, 35, 57-67.</mixed-citation></ref><ref id="scirp.76077-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Jin, L.F. and Xing, C.P. (2016) New MDS Self-Dual Codes from Generalized Reed-Solomon Codes. Arxiv: 1601.04467v1</mixed-citation></ref><ref id="scirp.76077-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Kim, J.L. and Lee, Y. (2004) Euclidean and Hermitian Self-Dual MDS Codes over Large Finite Fields. Journal of Combinatorial Theory, Series A, 105, 79-95. https://doi.org/10.1016/j.jcta.2003.10.003</mixed-citation></ref><ref id="scirp.76077-ref10"><label>10</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Smid</surname><given-names> M.H.M. </given-names></name>,<etal>et al</etal>. (<year>1983</year>)<article-title>Duadic Codes</article-title><source> IEEE Transactions on Information Theory</source><volume> 33</volume>,<fpage> 432</fpage>-<lpage>433</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76077-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Huffman, W.C. and Pless, V. (2003) Fundamentals of Erro-Correcting Codes. Cambridge University Press, Cambridge. https://doi.org/10.1017/CBO9780511807077</mixed-citation></ref><ref id="scirp.76077-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Pang, C.D. and Pang, C.B. (2002) Elementary Number Theory. Beijing University Press, Beijing. (In Chinese)</mixed-citation></ref></ref-list></back></article>