Next Article in Journal
Complex Dynamic Behaviors of a Modified Discrete Leslie–Gower Predator–Prey System with Fear Effect on Prey Species
Previous Article in Journal
Logic, Game Theory, and Social Choice: What Do They Have in Common?
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Unique Representation of Cyclic Codes over GR(pn,r)

Department of Mathematics, King Saud University, Riyadh 11451, Saudi Arabia
*
Author to whom correspondence should be addressed.
Axioms 2022, 11(10), 519; https://doi.org/10.3390/axioms11100519
Submission received: 3 September 2022 / Revised: 26 September 2022 / Accepted: 28 September 2022 / Published: 1 October 2022

Abstract

:
Let R be a Galois ring, G R ( p n , r ) , of characteristic p n and of order p n r . In this article, we study cyclic codes of arbitrary length, N, over R. We use discrete Fourier transform (DFT) to determine a unique representation of cyclic codes of length, N, in terms of that of length, p s , where s = v p ( N ) and v p are the p-adic valuation. As a result, Hamming distance and dual codes are obtained. In addition, we compute the exact number of distinct cyclic codes over R when n = 2 .

1. Introduction

Cyclic codes are a special class in coding theory and have been a primary field of study since its inception, for instance see [1,2,3,4,5,6,7,8]. These codes have been traditionally described over finite fields; however, many important nonlinear codes over finite fields relate, via the Gray map, to linear codes over finite chain rings. Let R be a finite chain ring. Theoretically, cyclic codes which have arbitrary length, N, over R correspond with ideals of R [ x ] / < x N 1 > . Let p be the characteristic of the residue field of R. When p N , x N 1 has unique factorization into irreducible polynomials; this is the key to examining the ideals of R [ x ] / < x N 1 > and then constructing cyclic codes over R. However, x N 1 does not factor uniquely if p N , and such cases produce what are defined repeated-root cyclic codes over R. Such codes were first described by Berman [9] in 1967. In the literature, there is not much research on the study of repeated-root cyclic codes over finite rings, see [10,11,12,13,14,15]. The basic purpose of this manuscript is to find unique representation for all repeated-root cyclic codes of length, N, over a Galois ring— G R ( p n , r ) of characteristic p n and residue degree r .
In [11], Abualrub et al. introduced minimal degree polynomials to describe cyclic codes over Z 4 with length 2e. Doughtry et al. [12] expanded the results to cyclic codes over Z p n = G R ( p n , 1 ) of length, N. They utilized discrete Fourier transform (DFT) in proving that Z p n [ x ] / ( x N 1 ) is mapped isomorphically to a direct product of rings with the form G R ( p n , r ) [ x ] / < x p s 1 > , where s = v p ( N ) and v p is the p-adic valuation. Kiah et al. [13] considered cyclic codes over G R ( p 2 , r ) which have length p s . Finally, by a different method from that of [12], Jasbir et al. [14] obtained minimal degree polynomials generating cyclic over G R ( p n , r ) based on the concept of Gröbner basis.
In the present article, we generalize the approach of Doughtry et al. [12], and determine a unique representation of cyclic codes of any finite length, N, over G R ( p n , r ) in terms of polynomials with minimal degrees. The generating polynomials are constructed by a different method (i.e., DFT) and have more explicit structural forms than those given in [14]. This explicit construction for generators polynomial allows us to describe dual codes, and establish Hamming distance. The article is sectioned as follows. In Section 3, we make use of the (unique) p-adic expression of elements of G R ( p n , r ) to construct a unique description of cyclic codes of length p s . The obtained structure allows us to compute their dual codes and Hamming distance. In Section 4, we employ DFT to express cyclic codes of length N = n 1 p s in terms of that of length p s over Galois extensions of G R ( p n , r ) . This means, it suffices to investigate cyclic codes of length p s over Galois rings. Consequently, dual codes and Hamming distance are completely determined. Moreover, we obtain the enumeration of cyclic codes with length, N, and we give the precise number of cyclic codes when n = 2 .

2. Preliminaries

This section presents some facts and mentions the background used in the subsequent sections.

2.1. Galois Ring

Suppose that p is prime, and suppose R = G R ( p n , r ) is Galois extension of degree r over Z p n . This ring extension, G R ( p n , r ) , is called a Galois ring with p n r elements [16], and G R ( p n , r ) Z p n [ x ] / < f > , where f is a basic polynomial of degree r in the Z p n [ x ] irreducible modulo p. The maximal ideal in G R ( p n , r ) is principal and of the form p G R ( p n , r ) = < p > . Indeed, every ideal is principal to < p i > = p i G R ( p n , r ) , where 0 i n . There is a of order p r 1 such that G R ( p n , r ) = Z p n [ a ] . The set Γ ( r ) = { 0 , 1 , a , , a p r 2 } is called the Teichmuller set which is a set of closet representatives modulo < p > . Suppose c is an element of G R ( p n , r ) ; then, c can be uniquely written (p-adic expression) as:
c = c 0 + c 1 p + + c n 1 p n 1 ,
where c 0 , c 1 , , c n 1 are elements in Γ ( r ) . Moreover, c is a unit if and only if c 0 0 . The set Γ ( r ) is mapped onto F p r under the canonical map μ between G R ( p n , r ) and F p r . The group of automorphisms A u t ( R ) of R is a cyclic group with order r. Furthermore, A u t ( R ) = < ρ > , where ρ is the Frobenius correspondence. For more details, see [17,18].
Proposition 1
([18]). Let r be any positive integer; then, there is a basic polynomial in G R ( p n , r ) [ x ] of degree r which divides as x p r 1 1 .
Proposition 2
([18]). Let h ( x ) be a basic irreducible polynomial over G R ( p n , r ) of degree r ; then, G R ( p n , r ) [ x ] / < h ( x ) > is a Galois ring which contains G R ( p n , r ) as sub-ring and denoted by G R ( p n , r r ) .

2.2. Cyclic Codes

Let R be a finite ring. A cyclic code is a linear code over R which is invariant under cyclic shifts. Each codeword of length, N, written as a vector, c = ( c 0 , c 1 , , c N 1 ) , traditionally corresponds to a polynomial form c ( x ) = c 0 + c 1 x + + c N 1 x N 1 , thus, we can identify a code, C, as a set, with polynomial forms for its codewords. This means, in R [ x ] / < x N 1 > , x c ( x ) represents the cyclic shift of c ( x ) .
Proposition 3
([19,20]). A linear code C is cyclic over R with length, N, if and only if C is an ideal of the ring R [ x ] / < x N 1 > .
Assume R ( r ) is the finite ring G R ( p n , r ) [ x ] / < x p s 1 > , R ¯ ( r ) is the ring F p r [ x ] / < x p s 1 > , and μ is usual map (modulo p) between R ( r ) and R ¯ ( r ) . We define the following codes for any cyclic code, C, over R = G R ( p n , r ) .
Definition 1.
As 0 i n 1 , let
T o r i ( C ) = μ c R | p i c C .
We call T o r i ( C ) the ith torsional code for C; particularly, μ ( C ) = R e s ( C ) = T o r 0 ( C ) is called the residue code for C.
Proposition 4
([12]). Suppose that C is a cyclic code with length p s over R, and 0 i n 1 . Thus, T o r i ( C ) is a cyclic code over F p r of length p s and
T o r i ( C ) = < ( x 1 ) T i > ,
where 0 T i p s . Furthermore,
(i)
| T o r i ( C ) | = ( p r ) p s T i .
(ii)
If g ( x ) R ( r ) and p i ( x 1 ) t i + p g ( x ) C , then T i t i .
(iii)
p s T 0 T 1 T n 1 0 .
(iv)
| C | = ( p r ) n p s ( T 0 + T 1 + + T n 1 ) .
Definition 2.
If C is a cyclic code over R, as 0 i n 1 , then we call T i = T i ( C ) the ith torsional degree for C .
The above notations shall keep their meanings through the paper, and N = n 1 p s , ( n 1 , p ) = 1 .

3. Cyclic Codes of Length p s

Throughout this section, we aim to uniquely represent any cyclic code over R = G R ( p n , r ) , with length p s . Using this representation, we were able to obtain Hamming distances and describe dual codes. Moreover, we determine the number of these codes, i.e., the ideals of R ( r ) .

3.1. The Representation of Cyclic Codes

Next, the subsequent theorem gives us a unique representation for C.
Theorem 1.
Suppose that C is a cyclic code over R of length p s . Therefore, C can be expressed uniquely as:
C = < p 1 ( x ) , , p n 1 ( x ) > ,
p i ( x ) = p i ( x 1 ) T i + j = 1 n i 1 p i + j ( x 1 ) t j , i h j , i ( x ) , i f T i ( C ) < p s , 0 , i f T i ( C ) = p s ,
where h j , i ( x ) is a unit or zero, and t j , i + d e g h j , i < T i + j .
Proof. 
As C is an ideal in R ( r ) , from [12], C = < r 0 ( x ) , , r n 1 ( x ) > , where r i ( x ) = p i ( x 1 ) T i + p g i ( x ) when T i < p s for some g i ( x ) R ( r ) and r i ( x ) = 0 otherwise. By the p-adic expression (1) of elements of R, g i ( x ) is expressed by:
g i ( x ) = j = 1 n i 1 ( p i + j l = 0 p s 1 c l , j , i ( x 1 ) l ) ,
where c j , l , i Γ ( r ) . Moreover, the inner sum in (3) can be rewritten as:
l = 0 p s 1 c l , j , i ( x 1 ) l = ( x 1 ) t j , i h j , i ( x ) ,
where h j , i ( x ) is a unit or zero, and t j , i + d e g h j , i < T i + j . Let
p i ( x ) = p i ( x 1 ) T i + j = 1 n i 1 p i + j ( x 1 ) t j , i h j , i ( x ) ;
then, we obtain the results. The uniqueness of the polynomials p i ( x ) is direct from Equation (1). □
Definition 3.
Assume C is a cyclic code of length p s over R. By the representation of C, we mean the unique generating polynomials obtained in Theorem 1.
We then give several results that can be derived from Theorem 1. These results illustrate the relationship between T i and polynomials which have p i , i < n as their leading coefficients.
Proposition 5.
Let < p 1 ( x ) , , p n 1 ( x ) > be representation for C, T i ( C ) = d e g p i ( x ) if p i ( x ) 0 and T i ( C ) = p s otherwise.
Proof. 
By the construction of p i ( x ) in Theorem 1, it is clear that
T i ( c ) = d e g p i ( x ) , if p i ( x ) 0 , p s , otherwise .
Corollary 1.
Assume that T i < p s and p i ( x ) is the polynomial described in Theorem 1. Thus, d e g p i ( x ) = T i and its leading coefficient is p i .
Proof. 
Note that T i = d e g p i ( x ) from Proposition 5, and by the construction in Theorem 1, p i ( x ) has p i as its leading coefficient. □
The proof of the following corollary comes from Proposition 5 and Corollary 1.
Corollary 2.
Let T i < p s , then T i is the minimum degree of polynomials in C which have leading coefficients p i .
Remark 1.
To simplify the representation of C, let h i ( x ) = j = 1 n i 1 ( x 1 ) t j , i h j , i ( x ) . Then,
C = < e 0 ( x ) , p e 1 ( x ) , p n 1 e n 1 ( x ) > ,
where e i ( x ) = ( x 1 ) T i + p h i ( x ) .
Example 1.
Let e 0 ( x ) = ( x 1 ) 3 , e 1 ( x ) = ( x 1 ) 2 and e 2 ( x ) = ( x 1 ) . Suppose C is a cyclic code with length 8 over G R ( 8 , 2 ) spanned by e 0 ( x ) , e 1 ( x ) and e 2 ( x ) . One can easily check e 0 ( x ) , e 1 ( x ) and e 2 ( x ) verify the hypothesis in Theorem 1. Thus, < e 0 ( x ) , 2 e 1 ( x ) , 4 e 2 ( x ) > is the representation of C.
Example 2.
If R = G R ( 4 , 2 ) and C is a cyclic code over R with length 4 spanned by e 0 ( x ) = ( x 1 ) + 2 and e 1 ( x ) = ( x 1 ) , then, by Theorem 1, < e 0 ( x ) , 2 e 1 ( x ) > is the representation of C .

3.2. Hamming Distance

For c = ( c 0 , c 1 , , c N 1 ) R N , the Hamming weight, wt ( c ) , of c is the number of nonzero components of c. The Hamming distance, d ( c , c ) , between c and c is defined as
d ( c , c ) = w t ( c c ) .
Let C be a nonzero linear code; then, the Hamming distance d ( c ) is
d ( C ) = m i n w t ( c ) | c 0 , c C .
Theorem 2.
If C is a cyclic code over R with length p s , then
d ( C ) = d ( T o r n 1 ( C ) ) .
Proof. 
As c ( x ) C , we have w t ( p n 1 c ( x ) ) w t ( c ( x ) ) . So, it is sufficient to give the Hamming distance of p n 1 c ( x ) in order to determine the Hamming distance for C. Now, since p n 1 c ( x ) and c ¯ ( x ) have equal number of nonzero components, so w t ( p n 1 c ( x ) ) = w t ( c ¯ ( x ) ) . Therefore,
d ( C ) = d ( T o r n 1 ( C ) ) .
The Hamming distance, d ( T o r n 1 ( C ) ) , is fully characterized in [3,21]. □

3.3. Dual Codes

Let x = ( x 0 , x 1 , , x N 1 ) and y = ( y 0 , y 1 , , y N 1 ) in R N ; then, x · y = x 0 y 0 + x 1 y 1 + + x N 1 y N 1 (usual dot product). Furthermore, x and y are said orthogonal when x · y = 0 . Now, suppose that C is a linear code over R, the dual code of C is defined as:
C = x | x · y = 0 , y C .
Next, we mention the following already known results in [2,19,20,22].
Proposition 6.
Suppose that R is a finite chain ring of order p z . Then,
C = p e ,
where e 0 , 1 , , z N . In addition, C has order p e , where e + e = z N ; that is,
| C | · | C | = | R | N .
Proposition 7.
The dual code of a cyclic code is cyclic.
Theorem 3.
If C is a cyclic code over R of length p s , then C has a unique representation,
C = < e 0 ( x ) , p e 1 ( x ) , , p n 1 e n 1 ( x ) > ,
where e i ( x ) = ( x 1 ) T i + p h i ( x ) if T i < p s and e ( x ) = 0 otherwise. Furthermore, T i = p s T n 1 i , 0 i n 1 .
Proof. 
As C is a cyclic code over R with length p s , then, by Proposition 7, C is also cyclic with the same length; so, by Theorem 1 and Remark 1, C has a representation
C = < e 0 ( x ) , p e 1 ( x ) , p n 1 e n 1 ( x ) > ,
where e i ( x ) = ( x 1 ) T i + p h i ( x ) and T i is the ith torsion degree of C . Based on definition of C , p n 1 i ( x 1 ) p s T i C , T n 1 i p s T i , 0 i m 1 . Now, since | C | · | C | = | R | p s (Proposition 6), from Proposition 4,
i = 0 n 1 T i + i = 0 n 1 T i = n p s .
This implies T i = p s T n 1 i . □

4. Cyclic Codes of Length N

Throughout this section, we denote R N = G R ( p n , r ) [ x ] / < x N 1 > and R ( r ) = G R ( p n , r ) [ u ] / < u p s 1 > . Define ϕ : R ( r ) n 1 R N by:
ϕ ( i = 0 p s 1 c 0 , i u i , , i = 0 p s 1 c n 1 1 , i u i ) = ( c 0 , 0 , , c n 1 1 , 0 , , c 0 , p s 1 , c 1 , p s 1 , c n 1 1 , p s 1 ) .
Proposition 8
(Hensel’s shifting [20]). Assume f is a monic polynomial in G R ( p n , r ) [ x ] and f ¯ = g 1 g 2 in F p r [ x ] , where g 1 , g 2 are co-prime polynomials over F p r , so there are f 1 , f 2 in G R ( p n , r ) [ x ] with f = f 1 f 2 and f 1 ¯ = g 1 , f 2 ¯ = g 2 .
Remark 2.
Hensel’s Lemma is a critical tool in the study of finite commutative chain rings, which ensures that factorization over F p r lifts to that over G R ( p n , r ) . We assume ( n 1 , p ) = 1 so that p has an inverse modulo n 1 , i.e., p r 1 ( m o d n ) for some positive integer, r . It follows that F p r has a nth primitive root of unity and so does F p r r . Then, Hensel’s Lemma implies that G R ( p n , r r ) contains a primitive n 1 th root α; thus, x n 1 1 = f 1 ( x ) f 2 ( x ) f l ( x ) over G R ( p n , r ) . For every j, 0 j n 1 1 , there is only one i, 0 i l with f i ( α j ) = 0 . The polynomial f i ( x ) is said to be minimal polynomial for α j in G R ( p n , r ) [ x ] .
Suppose that r is the order of p modulo n 1 and I is a set of all p r -cyclotomic closet representatives modulo n 1 . Suppose also c l p r ( b , n 1 ) is p r —cyclotomic closet modulo n 1 of b, and r b = c l p r ( b , n 1 ) . Assume α is a n 1 th primitive root in G R ( p n , r r ) .

4.1. Discrete Fourier Transform (DFT)

Discrete Fourier transform (DFT) is used when the codes length, N, is an arbitrary number not necessarily a power of primes; in our case, N = n 1 p s and ( n 1 , p ) = 1 . This method has been widely utilized to investigate linear codes over finite rings, for instance see [1,4,5,12,23,24]. Next, we use DFT as an important key to describe the structure for cyclic codes over G R ( p n , r ) .
Definition 4
(DFT). Assume c R N and c ( x ) = Σ i = 0 n 1 1 Σ j = 0 p s 1 c i , j x i + j n 1 the corresponding polynomial. The DFT of c ( x ) is
( c ^ 0 , c ^ 1 , , c ^ n 1 1 ) R ( r ) n 1 ,
where
c ^ b = c ( u n α b ) = Σ i = 0 n 1 1 Σ j = 0 p s 1 c i , j u n i + j α b i ,
b I and n 1 n 1 ( m o d p s + n 1 ) . Moreover, the Mattson–Solomon of c to be the polynomial:
c ^ ( z ) = Σ b = 0 n 1 1 c ^ n 1 b z b .
Note that c ^ n 1 = c ^ 0 .
We then illustrate that c can be obtained from the Mattson–Solomon polynomial of c.
Lemma 1.
Let c R N , and let c ^ ( z ) be its Mattson–Solomon polynomial. Thus,
c = ϕ [ ( 1 , u n , u 2 n , , u ( n 1 1 ) n ) 1 n 1 ( c ^ ( 1 ) , c ^ ( α 1 ) , , c ^ ( α n 1 1 ) ) ] ,
where ∗ means component-wise multiplication.
Proof. 
Suppose 0 t n 1 1 . So,
c ^ ( α t ) = b = 0 n 1 1 c ^ b α b t = b = 0 n 1 1 ( i = 0 n 1 1 j = 0 p s 1 c i , j u n i + j α b i ) α b t
= i = 0 n 1 1 j = 0 p s 1 c i , j u n i + j b = 0 n 1 1 α b ( i t ) = ( n 1 u n o t ) j = 0 p s 1 c t , j u j .
Note that Σ i = 0 n 1 1 α i j = 0 , when j 0 (mod n 1 ). From the definition of ϕ ,
c = ϕ [ ( 1 , u n , u 2 n , , u ( n 1 1 ) n ) 1 n 1 ( c ^ ( 1 ) , c ^ ( α 1 ) , , c ^ ( α n 1 1 ) ) ] .

4.2. The Representation of Cyclic Codes over R

Since R ( r r b ) = G R ( p n , r r b ) [ u ] / < u p s 1 > , then α b and c i , j are elements of R ( r r b ) , and thus by Equation (8), c ^ b = c ( u n α b ) R ( r r b ) . Now,
c ^ p r b = i = 0 n 1 1 j = 0 p s 1 c i , j u n i + j α p r b i = i = 0 n 1 1 j = 0 p s 1 σ c i , j u n i + j α b i = σ i = 0 n 1 1 j = 0 p s 1 c i , j u n i + j α b i = σ ( c ^ b ) ,
where σ is the extension of the Frobenius automorphism ρ from G R ( p n , r r b ) onto R ( r r b ) by setting σ ( u ) = u and the subscript are calculated modulo n 1 . Now, let
A = { ( c ^ 0 , c ^ 2 , , c ^ n 1 1 ) R ( r r ) n 1 | c ^ b R ( r r b ) , c ^ p r b = σ ( c ^ b ) } .
By component-wise addition and multiplication, A admits the structure of a ring. Moreover, one can see that A b I R ( r r b ) .
Theorem 4.
Suppose that γ is a map γ : R N b I R ( r r b ) such that γ ( c ( x ) ) = ( c ^ b ) b I . Thus, γ is an isomorphism. In addition, suppose C is a cyclic code over R of length, N,
C b I C b ,
where C b = { c ( u n α b ) | c ( x ) C } which is a cyclic code over G R ( p n , r r b ) with length p s .
Proof. 
Let γ : R N A , defined by γ ( c ( x ) ) = ( c ^ 0 , c ^ 2 , , c ^ n 1 1 ) . Suppose a ( x ) and b ( x ) are in R [ x ] such that their degrees are less than N. It follows that
γ ( a ( x ) + b ( x ) ) = γ ( a ( x ) ) + γ ( b ( x ) )
and
γ ( a ( x ) b ( x ) ) = γ ( a ( x ) ) * γ ( b ( x ) ) .
Now, if γ ( c ( x ) ) = 0 , we have by Lemma 1, Σ j = 0 p s 1 c t , j u j = 0 , where 0 t n 1 1 . This implies that c ( x ) = 0 , and thus γ is one-to-one. Note that
| A | = b I p r r b n p s = p n r N .
Therefore, γ is a bijection, and hence γ is an isomorphism. As γ is a ring isomorphism, the second part is direct. □
Lemma 2.
For every b I , assume f b ( x ) is the minimal polynomial of α b and n satisfies n 1 n 1 ( m o d p s + n 1 ) . Then,
(i)
f b ( u n α i ) is invertible when i c l p r ( b , n 1 ) .
(ii)
f b ( u n α b ) < u 1 > but f b ( u n α b ) < ( u 1 ) 2 > .
Proof. 
(i) Assuming f b ( x ) = l c l p r ( b , n 1 ) ( x α l ) , then
f b ( u n α i ) = l c l p r ( b , n 1 ) ( u n α i α l ) = l c l p r ( b , n 1 ) [ ( u n 1 ) α i + ( α i α l ) ] .
However, we have α i α l 0 if i is not in c l p r ( b , n 1 ) , and hence ( u n 1 ) α i is not unit. Thus, f b ( u n α i ) is a unit if i c l p r ( b , n 1 ) . (ii) Because x n 1 1 = i I f i ( x ) ,
i I f i ( u n α b ) = ( u n α b ) n 1 1 = u 1 .
However, from (i) we have that f i ( u n α b ) is invertible if i b . So, f h ( u n α b ) = a ( u ) ( u 1 ) , when a ( u ) is a unit of R ( r r b ) . It follows that f b ( u n α b ) ( u 1 ) . Suppose that f b ( u n α b ) < ( u 1 ) 2 > . Hence, there is q ( u ) G R ( p n , r r b ) [ u ] with f h ( u n α b ) = q ( u ) ( u 1 ) 2 , and thus a ( u ) ( u 1 ) < ( u 1 ) 2 > , i.e., < u 1 > < ( u 1 ) 2 > but this is impossible, and the proof is finished. □
Suppose that C is a cyclic code over R with length, N. Theorem 4 claims that C b I C b , C b is a cyclic code over R ( r r b ) of length p s . Then, by Remark 1,
C b = < e 0 , b ( u ) , p e 1 , b ( u ) , , p n 1 e n 1 , b ( u ) > ,
where e i , b ( u ) = ( u 1 ) T i , h + p h i , b ( u ) . Let i be fixed and 0 j p s , we denote F j ( x ) the multiplication of all minimal polynomials for α b with T o r i ( C b ) = < ( u 1 ) j > . Note that Lemma 2 indicates
j = 0 p s [ F j ( u n α b ) ] j = a b ( u ) ( u 1 ) j ,
where a b ( u ) R ( r r b ) is invertible. Set
g i ( x ) = j = 0 p s [ F j ( x ) ] j + p b i ( x ) ,
where b i ( x ) = γ 1 ( ( a b ( u ) h i , b ( u ) ) b I ) .
Theorem 5.
If C is a cyclic code over R of length, N, then
C = < g 0 ( x ) , p g 1 ( x ) , , p n 1 g n 1 ( x ) > .
Moreover, this representation is unique.
Proof. 
If b I , then g i ( u n α b ) < e i , b ( u ) > ; hence, p i g i ( u n α b ) C b . Moreover, for every i, 0 i n 1 , p i g i ( x ) C . By Equations (13) and (14), < g i ( u n α b ) > = < e i , b ( u ) > . Thus, g 0 ( x ) , p g 1 ( x ) , , p n 1 g n 1 ( x ) generate C (Theorem 4). The last part is direct from the uniqueness of h i , b ( u ) ’s (Remark 1). □
Corollary 3.
If C = < g 0 ( x ) , p g 1 ( x ) , , p n 1 g n 1 ( x ) > , then | C | = p r t , where t = N n Σ j = 0 p s j d e g F j .
Proof. 
From Theorem 4, | C | = b I | C b | , and | C b | = p r r b ( p s n ( T 0 , b + T 1 , b + + T n 1 , b ) ) . The result is concluded by computing the multiplication of | C b | . □
From Theorem 5, we have the proof of the following.
Corollary 4.
The enumeration of cyclic codes over R of length, N, is
b I N b ,
where N b is the enumeration of distinct cyclic codes over G R ( p n , r r b ) with length p s .
Theorem 6.
Let n = 2 ; then, the enumeration of cyclic codes over R of length, N, is
b I ( p r ( z b + 1 ) 1 p r 1 ) ,
where z b = m i n { [ d b 2 ] , p r 1 } , such that T 0 ( C b ) + T 1 ( C b ) = d b p s .
Proof. 
From Corollary 4, we only need to determine N b , b I . Moreover, by (Corollary 3.9, [13]),
N b = p r ( z b + 1 ) 1 p r 1 ,
where z b = min { [ d b 2 ] , p r 1 } , T 0 ( C b ) + T 1 ( C b ) = d b p s . Thus, the result follows. □

4.3. Torsion Codes and Hamming Distance

This subsection deals with torsion codes for cyclic codes over R, and their Hamming distances.
Lemma 3.
Suppose C = < g 0 ( x ) , p g 1 ( x ) , , p n 1 g n 1 ( x ) > and p i ( h ( x ) ) C with h ( x ) T o r i ( C ) . Thus, d e g g i d e g h .
Proof. 
If p i ( h ( x ) ) C , then p i ( h ( u n α b ) ) C b , b I , n 1 n 1 ( m o d p s + n 1 ) . Since h ( x ) T o r i ( C ) , h ( u n α b ) T o r i ( C p ) . It follows that, h ( u n α b ) = c ( u ) ( u 1 ) T i , where c ( u ) R ( r r b ) is unit. Moreover, if g ( x ) = p ( x ) j = 0 p s [ F j ( x ) ] j , (see Theorem 5), and if p ( x ) = γ 1 ( ( c b ( u ) a b 1 ( u ) ) b I ) , then—for b I g ( u n α b ) = c ( u ) ( u 1 ) T i by Equation (13); thus, γ ( h ( x ) ) = γ ( g ( x ) ) , which leads to h ( x ) = g ( x ) , i.e., d e g h = d e g g . Hence, d e g g d e g j = 0 p s [ F j ] j = d e g g i from Equation (14). □
Theorem 7.
Assume C = < g 0 ( x ) , p g 1 ( x ) , , p n 1 g n 1 ( x ) > , T o r i ( C ) = < g i ¯ ( x ) > .
Proof. 
Since p i g x C , < g i ¯ ( x ) > T o r i ( C ) . On the other hand, assume h ( x ) T o r i ( C ) , then p i h ( x ) C from the definition of T o r i ( C ) . In light of Lemma 3, d e g h d e g g i . Now, there exist r ( x ) and q ( x ) in R N satisfying h ( x ) g i ( x ) q ( x ) = r ( x ) , where r ( x ) = 0 or d e g r < d e g g i (division algorithm). Because p i r ( x ) C , so r ( x ) = 0 from the minimality of d e g g i . This means that h ( x ) < g i ( x ) > , and hence h ¯ ( x ) < g i ¯ ( x ) > . Thus, T o r i ( C ) < g i ¯ ( x ) > . □
Theorem 8.
If C is a cyclic code over R of length, N, then
d ( C ) = d ( T o r n 1 ( C ) ) .
Proof. 
A similar argument to that of Theorem 2, where leads to d ( C ) = d ( T o r n 1 ( C ) ) , is present, where T o r n 1 ( C ) = < g ¯ n 1 ( x ) > = < j = 0 p s 1 F j ¯ ( x ) > (Theorem 7). □

4.4. Dual Codes

Let F j ( x ) maintain the same definition as in Theorem 5. Assume also a j is the constant term of F j ( x ) , where 0 j p s . Because j = 0 p s F j ( x ) = x n 1 1 , j = 0 p s a j = 1 . Thus, a j ’s are invertible and leading coefficients for F j * ( x ) = x d e g F j F j ( x 1 ) . Suppose
m j ( x ) = a j 1 F j * ( x ) .
Note that m j ( x ) is monic polynomial with j = 0 p s a j 1 = 1 . So,
j = 0 p s m j ( x ) = j = 0 p s a j 1 j = 0 p s F j * ( x ) = x Σ j = 0 p s d e g F j j = 0 p s F j ( x 1 ) = x n 1 ( x n 1 1 ) = x n 1 1 .
In other words, the polynomials m j ( x ) are monic co-prime divisors of x n 1 1 over R. As T o r i ( C b ) = < ( u 1 ) j > , F j ( α b ) = 0 , which gives F j * ( α n 1 b ) = 0 . Hence, m j ( α n 1 b ) = 0 . Therefore, m j ( x ) is the multiplication of all minimal polynomials for α n 1 b , satisfying
T o r i ( C b ) = < ( u 1 ) p s j > .
By Lemma 2,
j = 0 p s [ F j * ( u n α n 1 b ) ] p s j = a b ( u ) ( u 1 ) p s j ,
where a b ( u ) R ( r r b ) is a unit. Set
G i ( x ) = j = 0 p s [ F j * ( x ) ] p s j + p c i ( x ) ,
where c i ( x ) = γ 1 ( ( a b ( u ) h i , b ( u ) ) b I ) and let h i , b ( u ) as in Theorem 3.
Theorem 9.
If C is a cyclic code over R with length, N, then
C = < G 0 ( x ) , p G 1 ( x ) , , p n 1 G n 1 ( x ) > .
In addition, | C | = p r t , where t = Σ j = 0 p s j d e g F j * .
Proof. 
Note that C = b I C b , C b is a cyclic code over G R ( p n , r r b ) of length p s . Suppose that D = b I C b . Then, D C . Moreover, we have | C b | · | C b | = p r r b p s n . So, | C | · | D | = p r n N , and then
C = D = b I C b .
Thus, by an argument similar to that of Theorem 5, we have
C = < G 0 ( x ) , p G 1 ( x ) , , p n 1 G n 1 ( x ) > ,
where G i ( x ) is known in (20) and 0 i n 1 . From Corollary 3 and from the formula | C | · | C | = p r n N , we obtain | C | = p r t , where t = Σ j = 0 p s j d e g F j * . □
To sum up, the section presents an algorithm for creating a structure for cyclic codes with length n 1 p s using those of length p s . The following steps might be helpful in this regard.
(1)
Obtain α , I and r b , b I .
(2)
For every 0 j p s , find F j ( x ) if i is fixed.
(3)
Use Equation (13) to compute a b ( x ) , b I .
(4)
By using b i ( x ) = γ 1 ( ( a b ( u ) h i , b ( u ) ) b I ) , determine b i ( x ) , where 0 i n 1 .
(5)
Finally, obtain g i ( x ) by the formula (14).
We next give some examples clarifying the above steps.
Example 3.
Suppose R = Z 4 and N = 6 . Then, n 1 = 3 , I = { 0 , 1 } , r 0 = 1 and r 1 = 2 . Let C 0 = < ( u 1 ) , 2 ( u 1 ) > and C 1 = < ( u 1 ) , 2 > be cyclic codes over Z 4 and G R ( 4 , 2 ) with length 2, respectively. First, find F j ( x ) for i = 0 . Because T 0 ( C 0 ) = 1 = T 0 ( C 1 ) ,
F 0 ( x ) = 1 , F 2 ( x ) = 1 , F 1 ( x ) = f 0 ( x ) f 1 ( x ) = ( x 1 ) ( x α ) ( x α 2 ) = x 3 1 ,
where α is satisfying α 2 + α + 1 = 0 (primitive root). Since h 0 , 0 ( x ) = h 0 , 1 ( x ) = 0 , so b 0 ( x ) = 0 , and hence
g 0 ( x ) = j = 0 2 F j ( x ) j = x 3 1 .
Second, determine F j ( x ) with i = 1 . As T 1 ( C 0 ) = 1 and T 1 ( C 1 ) = 0 , it follows that
F 0 ( x ) = ( x α ) ( x α 2 ) = x 2 + x + 1 , F 1 ( x ) = ( f 0 ( x ) ) = ( x 1 ) , F 2 ( x ) = 1 .
As b 1 ( x ) = 0 since h 1 , 0 ( x ) = 0 = h 1 , 1 ( x ) ,
g 1 ( x ) = j = 0 2 F j ( x ) j = x 1 .
Theorem 5 implies that
C = < x 3 1 , 2 ( x 1 ) > .
Example 4.
Let C 0 = < ( u 1 ) + 2 , 2 ( u 1 ) > and C 1 = < ( u 1 ) 2 , 2 ( u 1 ) > be cyclic codes of length 2 over Z 4 and G R ( 4 , 2 ) , respectively. We will construct a cyclic code C over Z 4 with length 6 by C 0 and C 1 . First, note that T 0 ( C 0 ) = 1 and T 0 ( C 1 ) = 2 , then
F 0 ( x ) = 1 , F 1 ( x ) = x 1 , F 2 ( x ) = ( x α ) ( x α 2 ) = x 2 + x + 1 .
Simple calculation yields,
j = 0 2 F j ( x ) j = x 5 + x 4 + x 3 x 2 x 1 .
Furthermore, b 0 ( x ) = x 2 + x + 1 . Hence,
g 0 ( x ) = x 5 + x 4 + x 3 + x 2 + x + 1 .
Next, we construct g 1 ( x ) . Observe that T 1 ( C 0 ) = 1 and T 1 ( C 1 ) = 1 , so
F 0 ( x ) = 1 , F 1 ( x ) = ( x 1 ) ( x α ) ( x α 2 ) = ( x 1 ) ( x 2 + x + 1 ) = x 3 1 , F 2 ( x ) = 1 .
Moreover,
g 1 ( x ) = j = 0 2 F j ( x ) j = x 4 x 3 x + 1 ,
and thus,
C = < x 5 + x 4 + x 3 + x 2 + x + 1 , 2 ( x 3 1 ) > .
Remark 3.
Similar processes can be used to describe the generators of dual codes—that is, replace C b with C b , b I .
Example 5.
Consider R , N , C 0 and C 1 as in Example 3. We want to construct C for C given in Equation (21). First note that
C 0 = < ( u 1 ) + 2 , 2 ( u 1 ) > , C 1 = < 2 ( u 1 ) > .
Let i be fixed, then consider T n i 1 ( C b ) instead of T i ( C b ) and b I . If i = 0 , by the definition of F j ( x ) , then
T 1 ( C 0 ) = 1 , T 1 ( C 1 ) = 0 , F 0 ( x ) = x 2 + x + 1 , F 0 * ( x ) = x 2 + x + 1 , F 1 ( x ) = x 1 , F 1 * ( x ) = 1 x , F 2 ( x ) = 1 , F 2 * ( x ) = 1 .
Since G 0 ( x ) = j = 0 2 [ F j * ( x ) ] 2 j + 2 b 0 ( x ) , then
G 0 ( x ) = ( x 2 + x + 1 ) ( 1 x 3 ) ,
where b 0 ( x ) = x 2 + x + 1 . On the other hand, suppose that i = 1 ,
T 0 ( C 0 ) = 1 , T 0 ( C 1 ) = 1 , F 0 ( x ) = 1 , F 0 * ( x ) = 1 , F 1 ( x ) = ( x 1 ) ( x 2 + x + 1 ) = x 3 1 , F 1 * ( x ) = 1 x 3 , F 2 ( x ) = 1 , F 2 * ( x ) = 1 .
Hence,
G 1 ( x ) = j = 0 2 [ F j * ( x ) ] 2 j = 1 x 3 .
Therefore,
C = < G 0 ( x ) , p G 1 ( x ) > = < ( x 2 + x + 1 ) ( 1 x 3 ) , 2 ( 1 x 3 ) > .
Note that one can easily verify that ( x 2 + x + 1 ) ( 1 x 3 ) C = 0 and 2 ( 1 x 3 ) C = 0 .
Example 6.
Suppose we have the same R , N , C 0 , C 1 as in Example 4. The aim is to find C of C presented in Equation (22). Observe that
C 0 = < ( u 1 ) , 2 ( u 1 ) > , C 1 = < ( u 1 ) > .
Assume that i = 0 , then for F j ( x ) we have
T 1 ( C 0 ) = 1 , T 1 ( C 1 ) = 1 , F 0 ( x ) = 1 , F 0 * ( x ) = 1 , F 1 ( x ) = ( x 1 ) ( x 2 + x + 1 ) , F 1 * ( x ) = ( 1 x ) ( x 2 + x + 1 ) , F 2 ( x ) = 1 , F 2 * ( x ) = 1 .
Since G 0 ( x ) = j = 0 2 [ F j * ( x ) ] 2 j + 2 c 0 ( x ) , then
G 0 ( x ) = ( 1 x ) ( x 2 + x + 1 ) ,
where c 0 ( x ) = 0 . Next, let i = 1 ,
T 0 ( C 0 ) = 1 , T 0 ( C 1 ) = 2 , F 0 ( x ) = 1 , F 0 * ( x ) = 1 , F 1 ( x ) = ( x 1 ) , F 1 * ( x ) = 1 x , F 2 ( x ) = x 2 + x + 1 , F 2 * ( x ) = x 2 + x + 1 .
Thus,
G 1 ( x ) = j = 0 2 [ F j * ( x ) ] 2 j = ( 1 x ) ( x 2 + x + 1 ) ,
and so
C = < ( 1 x ) ( x 2 + x + 1 ) , 2 ( 1 x ) ( x 2 + x + 1 ) > .

5. Conclusions

In the present paper, we utilized the discrete Fourier transform (DFT) approach to uniquely express a representation for cyclic codes over G R ( p n , r ) . By using this representation, we were be able to find dual codes and Hamming distances. In addition, we gave the enumeration of cyclic codes of length, N, in terms of that of length p s , v p ( N ) = s . When n = 2 , the exact number of such codes is provided.

Author Contributions

Conceptualization, S.A. and Y.A.; methodology, S.A. and Y.A; investigation, S.A. and Y.A; writing—original draft preparation, S.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors would like to thank the Deanship of scientific research in King Saud University for funding and supporting this research through the initiative of DSR Graduate Students Research Support (GSR).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dougherty, S.; Ling, S. Cyclic codes over Z4 of even length. Des. Codes Cryptogr. 2006, 39, 127–153. [Google Scholar] [CrossRef]
  2. Dinh, H. Negacyclic codes of length 2s over Galois rings. IEEE Trans. Inform. Theory 2005, 51, 4252–4262. [Google Scholar] [CrossRef]
  3. Dinh, H. On the linear ordering of some classes of negacyclic and cyclic codes and their distance distributions. Finite Fields Appl. 2008, 14, 22–40. [Google Scholar] [CrossRef] [Green Version]
  4. Blackford, T. Cyclic codes over Z4 of oddly even length. Discret. Appl. Math. 2003, 128, 27–46. [Google Scholar] [CrossRef] [Green Version]
  5. Blackford, T. Negacyclic codes over Z4 of even length. IEEE Trans. Inform. Theory 2003, 49, 1417–1424. [Google Scholar] [CrossRef]
  6. Wolfmann, J. Negacyclic and cyclic codes over Z4. IEEE Trans. Inform. Theory 1999, 45, 2527–2532. [Google Scholar] [CrossRef]
  7. Wolfmann, J. Binary images of cyclic codes over Z4. IEEE Trans. Inform. Theory 2001, 47, 1773–1779. [Google Scholar] [CrossRef]
  8. Norton, G.; Sălăgean, A. On the structure of linear cyclic codes over finite chain rings. Appl. Algebra Eng. Commun. Comput. 2000, 10, 489–506. [Google Scholar] [CrossRef]
  9. Berman, S. Semisimple cyclic and abelian codes. II Kibern. 1967, 3, 21–30. [Google Scholar] [CrossRef]
  10. Alabiad, S.; Alkhamees, Y. Constacyclic codes over finite chain rings of characteristic p. Axioms 2021, 10, 303. [Google Scholar] [CrossRef]
  11. Abualrub, T.; Oehmke, R. On the generators of Z4 cyclic codes of length 2e. IEEE Trans. Inform. Theory 2003, 49, 2126–2133. [Google Scholar] [CrossRef]
  12. Dougherty, S.; Park, Y. On modular cyclic codes. Finite Fields Appl. 2007, 13, 31–57. [Google Scholar] [CrossRef] [Green Version]
  13. Kiah, H.; Leung, K.; Ling, S. Cyclic codes over GR(p2,m) of length pk. Finite Fields Appl. 2008, 14, 834–846. [Google Scholar] [CrossRef] [Green Version]
  14. Jasbir, K.; Sucheta, D.; Ranjeet, S. On cyclic codes over Galois rings. Discret. Appl. Math. 2020, 280, 156–161. [Google Scholar]
  15. Sălăgean, A. Repeated-root cyclic and negacyclic codes over finite chain rings. Discret. Appl. Math. 2006, 154, 413–419. [Google Scholar] [CrossRef] [Green Version]
  16. krull, W. Algebraische theorie der ring. Math. Ann. 1924, 92, 183–213. [Google Scholar] [CrossRef]
  17. McDoland, B. Finite Rings with Identity; Marcel Dekker Incorporated: Norman, OK. USA, 1974. [Google Scholar]
  18. Wan, Z. Lecture on Finite Fields and Galois Rings; World Scientific: Beijing, China, 2003. [Google Scholar]
  19. Huffman, W.; Pless, V. Fundamental of Error-Correcting Codes; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  20. Mac Williams, F.; Sloane, N. The Theory of Error-Correcting Codes; North-Holland: Amsterdam, 1998. [Google Scholar]
  21. Norton, G.; Sălăgean, A. On the Hamming distance of linear codes over a finite chain ring. IEEE Trans. Inform. Theory 2000, 46, 1060–1067. [Google Scholar] [CrossRef] [Green Version]
  22. Pless, V.; Huffman, W. Handbook of Coding Theory; Elsevier: Amsterdam, The Netherlands, 1998. [Google Scholar]
  23. Zhu, S.; Kai, X. A class of constacyclic codes over Zpm. Finite Fields Appl. 2010, 16, 243–254. [Google Scholar] [CrossRef] [Green Version]
  24. Zhu, S.; Kai, X. Dual and self-dual negacyclic codes of even length over Z2a. Discret. Math. 2009, 309, 2382–2391. [Google Scholar] [CrossRef] [Green Version]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Alabiad, S.; Alkhamees, Y. A Unique Representation of Cyclic Codes over GR(pn,r). Axioms 2022, 11, 519. https://doi.org/10.3390/axioms11100519

AMA Style

Alabiad S, Alkhamees Y. A Unique Representation of Cyclic Codes over GR(pn,r). Axioms. 2022; 11(10):519. https://doi.org/10.3390/axioms11100519

Chicago/Turabian Style

Alabiad, Sami, and Yousef Alkhamees. 2022. "A Unique Representation of Cyclic Codes over GR(pn,r)" Axioms 11, no. 10: 519. https://doi.org/10.3390/axioms11100519

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop