Tilburg University
Generating and cyclonomic polynomials of constacyclic codes
van Zanten, A.J.
Publication date: 2014
Document Version Peer reviewed version
Link to publication in Tilburg University Research Portal
Citation for published version (APA):
van Zanten, A. J. (2014). Generating and cyclonomic polynomials of constacyclic codes. Tilburg University.
General rights
Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain
• You may freely distribute the URL identifying the publication in the public portal Take down policy
If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim.
1
Generating and Cyclonomic Polynomials
of
Constacyclic Codes
TiCC, Tilburg University
2
Abstract
In this report we investigate the idempotent generating polynomials of
-constacyclic codes of length n overGF q
( )
, with( , ) 1
n q
and
GF q
( )*
, which are defined by factor polynomials ofn
x
. In particular we study the relationship between such polynomials and the idempotent generating polynomials of cyclic codes defined by factors ofx
e
1
, where e stands for the order of.
n3
Contents
1. Definition and generators of constacyclic codes p. 4
2. The order of the polynomial
x
n
p. 5
3. Idempotent generators of constacyclic codes p. 8
4. Examples p. 9
5. A relation between idempotent generators of constacyclic and cyclic codes p. 12
6. More examples p. 13
7. Cyclonomic polynomials for constacyclic codes p. 15
8. Factorizations of
x
N
1
into binomials p. 19
9. Computation of idempotents of constacyclic codes from those of cyclic codes p. 21
10. Suggestions for further study p. 26
References p. 27
4
1. Definition and generators of constacyclic codes In this report we study
-constacyclic codes, i.e. codes generated by polynomials which dividen
x
,
GF q
( )*
. These codes were first introduced in [1]. For more information and for more information we refer to [7,8] and to the lists of references in these publications. In particular we investigate the idempotent generating polynomials (idempotent generators) of such codes. Firstly, we state some properties of idempotent generators which are well known in the case1
(cyclic codes), but which also hold for
1. Let n s( )( ) s Sx
P x
be the decomposition ofx
n
into monic irreducible polynomials overGF q
( )
. In the next we shall writeP x
s( )
instead of Ps( ) ( )x , if no confusion will arise. If f xs( ) : ( xn
) /P xs( ), sS, then the code
f x
s( )
is called a minimal or irreducible
-constacyclic code. In algebraic terms, such a code is minimal ideal in the ringR
n q. of polynomials modulox
n
overGF q
( )
. The code
P x
s( )
is called a maximal
-constacyclic code. Generally, we shall denote an idempotent generator of a
-constacyclic code
g x
( )
bye x
( )
or, if necessary to emphasize its
-dependency, bye x
( )
. The idempotent generators of the maximal codes
P x
s( )
are denoted by
s( )
x
, and those of the minimal or irreducible codes
f x
s( )
by
s( )
x
. The polynomials
s( )
x
, sS, are occasionally called primitive idempotent polynomials because of their properties mentioned in the next theorem.Theorem 1
(i) If C is a
-constacyclic code, its idempotent generating polynomial is uniquely determined. (ii) Ife x
( )
is the idempotent generator of a code C, thene x
( )
k
e x
( )
for all k1.(iii) If
C
1 andC
2 are
-constacyclic codes with idempotent generatorse x
1( )
ande x
2( )
, then1 2
C
C
andC
1
C
2 are also
-constacyclic codes with idempotent generatorse x e x
1( ) ( )
2 and1
( )
2( )
1( ) ( )
2e x
e x
e x e x
, respectively. (iv) Let S be the index set of the irreducible polynomials contained inx
n
, then s( ) 15
Theorem 2 (i) Let the
- constacyclic code C inR
nq, be generated by some polynomialg x
( )
and leth x
( )
be its check polynomial. The polynomial e x( )Rnq, is the idempotent generator of C if and only if( )
0
e
ifg
( )
0
ande
( ) 1
ifh
( )
0
, for alln
elements
which satisfy
n
insome appropriate extension field of
GF q
( )
. (ii)c x
( )
C
if and only ife x c x
( ) ( )
c x
( )
.For the proofs we refer again to [4,5,6], where the case
1 is proven. In the next we shall use the notationGF q
( )( )
for the extension field ofGF q
( )
by an element
which is algebraic over( )
GF q
. In the special case that
GF q
( )
, the fieldGF q
( )( )
coincides withGF q
( )
. If
is of orderm
overGF q
( )
, then ∣GF q
( )( )
∣ =q
m, as is well known.2. The order of the polynomial
x
n
In this section we study the order of the polynomial
x
n
, i.e. the least positive integere
such that nx
is a divisor ofx
e
1
inGF q x
( )[ ]
(cf.[ 3, Ch. 3]).Theorem 3 Let n be an integer
1
and q a prime power with( , ) 1
n q
. Let
GF q
( )*
have order k, and let
and
be elements in some extension field F ofGF q
( )
, such that
n
and
is a primitiveth
n
root of unity. Let furthermore1 ( ) l s s P x
be the factorization ofx
n
into irreduciblepolynomials over
GF q
( )
, and lete
be its order inGF q x
( )[ ]
. (i) The zeros of the polynomialx
n
in F can be written as
i, 0 i n 1,x
n
is a divisorof
x
kn
1
inGF q x
( )[ ]
and ekn. (ii) If the l irreducible factor polynomialsP x
s( )
, 1 s l, ofx
n
inGF q x
( )[ ]
have orderse
1,2
e
, ....,e
l, thene
:
e e
1, ,....,
2e
l
.(iii) The order
e
ofx
n
is equal to the least common multiple of the orders of its zeros. (iv) If there is no integer i,0 i
n
, such that
i
GF q
( )
, then
has order kn in F. Conversely,if there is an integer
i
,0 i
n
, with
i
GF q
( )
, then there exists a minimal integer d∣n, d n,such that
d
GF q
( )
, and ord( )
h
implies that the order of
ishd. (v) The order of
is equal to kn if and only ifn
is a divisor of hd.(vi) If
n
is not a divisor ofhd, then
is a zero ofx
d
which is a factor ofx
n
and whichhas order hd kn.
(vii) For
k
q
1
, the order of
and ofx
n
is equal to kn (viii) There exists a zero
F
ofx
n
of ordere
, and the zeros ofx
n
can be written as1
ik
6
Proof (i) Since
(
i n)
n in
and since all
i, 0 i n 1, are different, the first statement follows immediately. Another argument follows from the fact that the equationx
n
0
is equivalent to 1 0. n x
The second statement is a consequence of
(
)
1
i kn kn k
. (ii) This is an immediate consequence of the definition of the notion of order of a polynomial and of the facts thatx
s
1
∣x
t
1
if and only ifs
∣t and that(
x
e1
1,
x
e2
1)
x
( ,e e1 2)
1
(cf. [3, Theorem3.9 and Corollary 3.7]). (iii) The order of an irreducible polynomial over
GF q
( )
of degreem
is equal to the order of any of its zeros
in the multiplicative groupF
*:
GF q
( )( ) (
*
GF q
(
m) )
* . The result now follows by applying (ii). (iv) Let the order of
inF
be equal toe
. Then we have kne, since
kn
k
1
. On the other hand,e
n
, since fore
n
we would have
e
1
GF q
( )
contradicting the condition on
. Hence, we can write esn t ,s
1
, 0 t n. It follows that1
sn t
s t inF
. Therefore,t s
. Because of the condition on
again, this can only be true for t0, and thus
s
1
. So, sk and ekn. We conclude that ekn. Conversely, let
i
GF q
( )
and0
i
n
. It follows that
an bi
GF q
( )
for all integer valuesa
and b. Since the greatest common divisor
( , )
n i
is equal toan bi
for some particular values ofa
and b, we also have
:
d
GF q
( )
*, withd
: ( , )
n i
. Assume that d is minimal with respect to this property. Moreover, dn and dis a divisor ofn
. Suppose
d
(
GF q
( )*)
, and let the order of
inGF q
( )*
be h. Then, similar to the first part, we have that the order of
inF
is hd. (v) In general, we know from (iv) that the order of
is equal to hd. We also know from (iv) thatd∣
n
. Since
d generates a group of order h and
n a subgroup of order k, we have that/ ( , )
n
k
h
h
d
. It follows that knhd if and only if( , / )
h n d
n d
/
, or equivalently, if and only if /n d is a divisor of h. (vi) Since
satisfies
d
, it is a zero ofx
d
. According to (iv) the order of this polynomialis equal to hd kn. So, hd is a real divisor of kn. (vii) In general k∣h. In this case we must have hk, since
k
(:
q
1)
is the maximal divisor of1
q
. So, nd and knhd. The result now follows from (v) and (ii). (viii) LetF
'
be an extension field ofF
containing all zeros ofx
e
1
. These zeros constitute amultiplicative group G of order
e
. Let
be a generator of G. Sincex
n
is a divisor ofx
e
1
. there aren
different elements
j such that
jn
. Ifj
0 is one of these exponents, then
different elements
j j0 all satisfy(
j j0)
n
1
and so they form a subgroup of ordern
. Hence,n
is a7
Since the order of
x
n
ise
, this polynomial has at least one zero
of ordere
. Therefore, we can take
in the above lines, which proves the statements in (viii). □ Example 0 Consider the binomialx
6
2
overGF
(5)
. So, n6,
2, k 4 andq
5
. The binomial can be factorized into irreducible polynomials as follows:
x
6
2
(
x
2
2)(
x
2
x
2)(
x
2
x
2)
.We extend the field
GF
(5)
by taking for
a zero ofx
2
2
x
1
. This yields the powers2
2
,
3
2
,
4
2
2
,
5
1
,
6
2
,
12
1
24
1
. It follows that the order of
inF
:
GF
(5)( )
is equal to 244.6kn. This demonstrates the first part of Theorem 3 (iv), since the condition that there is noj
,0
j
6
, such that
j
GF
(5)
, is satisfied. If we take for
a zero ofx
2
2
, we have the
-powers
2
2
,
3
2,
4
2
2
,5
1
,
6
2
,
8
1
. So, the order of this
inF
is 8. The second part of Theorem 3 (iv) provides us also with this value. Now, there are integersj
,0
j
6
, such that
j
GF
(5)
. The smallest of these integers is 2, so d 2 and h4, which indeed yields the order 8 for
. As for Theorem 3 (v), n6 is not a divisor of hd4.28 and neither of h d' '2.48, hence4.6
kn hd, or equivalently kn is not the order of
. The polynomialx
2
2
has order 8, and so2
2
x
∣x
8
1
.Next, we consider the binomial
x
6
1
, with
1, k 2, and which has the factorization into irreducible polynomials overGF
(5)
x
6
1 (
x
2)(
x
2)(
x
2
2
x
1)(
x
2
2
x
1)
.It appears that the zeros of
x
2
2
x
1
have order 12, and hence the polynomials themselves also have order 12. If we take for
the only zero of x2, i.e.
: 2 , we obtain the powers
2
1
,3
2
,
4
1
. So, the order of
inGF
(5)
as well as inF
:
GF
(5)
is 4 . Since the order of1
:
d2
is equal to 4, it follows also from the second part of Theorem 3 (iv) that the order of
, and hence of its defining polynomial x2, is equal to hd 4.14.Similarly, we can derive for the binomial
x
3
1 (
x
1)(
x
2
x
1)
overGF
(5)
, that if
is a zero ofx
2
x
1
its order inF
is equal to 6 and
3
1
. It follows that d 3 and h2, and hence, by applying Theorem 3 (iv), the order of
and ofx
2
x
1
is equal to 6. In this case we have3.2 2.3
hd kn. The order of x1 is equal to 2, and so the order of
x
3
1
is equal to2, 6
6
.8
x
6
1 (
x
2
1)(
x
2
5
x
1)(
x
2
5
x
1)
.Taking for
a zero ofx
2
5
x
1
yields the following powers inGF
(11)
:
0
1
,
6
1
,12
1
. So, the order of
inF
is 12, and hence the order ofx
2
5
x
1
is also 12. Furthermore, since
6
1
, we have n6 and k2, giving also this order kn2.6 12 , since there is noj
,0
j
6
, such that
j
GF
(5)
. □Theorem 4 Let n be an integer
1
and q a prime power with( , ) 1
n q
. Let
GF q
( )*
have order k, and let
be an element of order kn in some extension fieldF
ofGF q
( )
, such that
n
. Then thefollowing properties hold. (i)
F
contains
( )
n
primitiven
th roots of unity
and the n zeros of the polynomialx
n
in Fcan be written as
i, 0 i n 1. (ii) If 1 i
, 2 i
, ...., l i
are zeros of the l irreducible polynomials1( ) i P x , 2( ) i P x , ...., ( ) l i P x which are contained in
x
n
, then 1 2 : .... l i i i
has order e inF
and1 2 /
: (
....
)
l e n i i i
is a primitive thn
root of unity. (iii) LetG be the multiplicative group of zeros ofx
e
1
inF
, and letH
:
be the subgroup consisting of then
zeros ofx
n
1
. Then the cosets of H in G areH
j
jH
, 0 j k 1, and we can write 1 0 k j j G H . (iv) The cosetH
j contains all n zeros in F of the polynomialx
n
j, for 0 j k 1. Proof (i) We can take forF
the splitting field ofx
n
which contains all itsn
zeros . Let
be aprimitive element of
F
, defined by a primitive polynomial of degreem
. So,F
GF q
(
m)
,
generates the groupF
*
and the order of
is m1
q
. Since the order ofx
n
is equal toe
, it follows thate
is a divisor ofq
m
1
by Lemma 3.6 in [3]. Hence, there exists a subgroup G ofF
*
of ordere
and such that its elements are the zeros ofx
e
1
. Let
(
r for some r) be a generator of this subgroup G. So,
e
1
and all elements
i, 0 i e, are different. Among thee
zeros of1
ex
there are then
zeros
0,
1, ….,
n1 ofx
n
inF
. The quotients
0/
i, 0 i n 1, are all in G, since G is a group. Since they all satisfyx
n
1
and are pairwise different, they form the complete set of zeros of the polynomialx
n
1
. Hence, among these quotients there are
( )
n
primitive
n
th roots of unity. Each of these roots generates the same subgroupH
G
of ordern
, which is the only subgroup of G of ordern
, since G is cyclic. By indexing the zeros
i in an appropriate way, we can obtain that
i1/
i
, 0 i n 2, where
is one of these, a priori9 (ii) Let 1 i
, 2 i
, ...., l i
be zeros of the l irreducible polynomialsP x
1( )
,P x
2( )
, ....,P x
l( )
respectively, contained inx
n
. Then the product1 2.... l
i i i
has ordere
inF
and so we can define1 2
: ....
l
i i i
. In the proof of (i) we showed that among the powers
i, 0 i e, there are( )
n
elements of ordern
. Since e n/ is an integer and since all powers(
e n i/)
, 0 i n 1, aredifferent,
e n/ is one of these primitiven
th roots. (iii) Since
n
, we have that
H for
1. Assume that
j
iH
for somej
withi
j
k
. Then
j i
H
which is false if
1. So, for
1 all cosetsH
j
jH
,0 j k 1, are disjunct and we can write
1 0 1 1 0 ( ) .... k k j j G H H H H H . For
1we have k1, and hence this relation is also true in that case.
(iv) This follows immediately from the fact that
n
if and only if(
j n)
j, 0 j k 1. □Remarks
(i) The element
in Theorem 4 (ii) is not a zero ofx
n
. (ii) The proof of the first part of Theorem 3 (iv) is based on the proof of Lemma 3.17 in [3], whichdeals with a similar property for the order of an arbitrary polynomial
f
GF q x
( )[ ]
,f
(0)
0
, of positive degree.(iii) Theorem 4 (i) and its proof is a slight generalization of Theorem 3 (viii). (iv) If we take
x
n
1
as a polynomial inGF q x
( )[ ]
, we know that at least one of its zeros is aprimitive element of order
n
, while the orders of all other zeros are divisors ofn
. So, the order of1
n
x
is equal ton
, which of course is true.(v) The approach we referred to in the proof of Theorem 3 (i), i.e. transforming the polynomial
x
n
into
n(
x
n
1)
, does not provide us with a kind of generalized cyclotomic polynomial. As an example we writex
62
6(( )
x
61)
. Puttingy
x
and using the factorization ofy
6
1
into cyclotomic polynomials, yieldsx
6
2
(
x
)(
x
)(
x
2
x
2)(
x
2
x
2)
. Since the polynomials in the rhs are
- dependent, there seems no obvious generalization present of the notion of cyclotomic polynomial.3. Idempotent generators of constacyclic codes In this section we derive a simple general expression for the uniquely determined idempotent
generator of a constacyclic code. This expression generalizes a similar expression for idempotent generators for cyclic codes which was derived in [9] (cf. also [10, 11]). Furthermore, we discuss a
number of examples. Theorem 5
10
of polynomials mod
x
n
overGF q
( )
. (i) If the polynomialg x
( )
is a divisor ofx
n
inGF q x
( )[ ]
, then the idempotent generator of the code
g x
( )
is given bye x
( )
(
n
)
1xh x g x
'( ) ( )
, whereh x
'( )
stands for the formal derivative of the polynomialh x
( ) : (
x
n
) / ( )
g x
in the ringR
nq,. (ii) The idempotent generator of the dual code
g x
( )
┴ is given bye x
( )
┴ 1(
n
)
xg x h x
'( ) ( ).
(iii)
e x
( )
e x
( )
┴ =1.Proof (i) In general we have that if
a x g x
( ) ( )
b x h x
( ) ( ) 1
inR
nq,, then the polynomial( ) :
( ) ( )
e x
a x g x
satisfiese x
( )
2
e x
( )
and hencee x
( )
is the idempotent generator of the code( )
g x
. Now, we start by taking derivatives of both sides of the relationg x h x
( ) ( )
x
n
, yieldingh x g x
'( ) ( )
h x g x
( ) '( )
nx
n1 or(
n
)
1x h x g x
( '( ) ( )
h x g x
( ) '( )) 1
in ,q n
R
. Therequired expression for
e x
( )
follows immediately. Parts (ii) and (iii) follow immediately from (i). □We remark that the above proof is obtained by slightly adapting the proof for the case
1 in [ ] which on its turn was a generalization of the proof for the binary case (cf. [5]). In the next section we shall illustrate the previous theorems by a number of examples.4. Examples
Example 1 Consider the polynomial
x
3
2
overGF
(5)
. So,
2 and k 4, and we can take
3. We define
as a zero of the irreducible polynomialx
2
x
1
overGF
(5)
. So3 2
1 (
1)(
1)
0
and hence
is a primitive third root of unity. Now, the three zeros of the polynomialx
3
2
can be written as 3,3
and3
2, which are elements of the field(5)( )
GF
(
GF
(5 )
2 ). We remark that Theorem 3(iv) is not applicable to the chosen root
3, since
1
3
GF
(5)
and1 3(
n
)
. If one takes
3
, we can apply Theorem 3 (iv), since
3 is the least positive power of
which is inGF
(5)
. Indeed, according to Theorem 3 (v) and to Theorem 4 (v), the order of3
inGF
(5)( )
4.3 12
.The order of the given polynomial can also be obtained by applying Theorem 3 (ii). First we have the factorization
x
3
2
(
x
2)(
x
2
2
x
1)
. From [3, Table C], we conclude that ord(
x
2)
4
and ord(
x
2
2
x
1) 12
. Hence, ord(
x
3
2)
4,12
12
. Finally, we shall verify the divisibility of12
1
x
byx
3
2
. We write11
(
x
1)(
x
1)(
x
2
x
1)(
x
2
1)(
x
2
x
1)(
x
4
x
2
1)
.Indeed, x2is a divisor of
4( )
x
sincex
2
1 (
x
2)(
x
2)
inGF
(5)[ ]
x
, andx
2
2
x
1
is a divisor of
12( )
x
since4 2 2 2
1 (
2
1)(
2
4)
x
x
x
x
x
x
. As for the zeros ofx
3
2
, it is clear that 3 is the zero of x2, and that3
and3
2( (3 ) )
5 are the zeros ofx
2
2
x
1
. In order to determine the idempotent generators of the codes x 2 and
x
2
2
x
1
we apply the rule of the previous theorem. Forg x
1( ) :
x
2
, we have h x1( )x22x1 and hence1 ' 2
1( ) (3.2) 1( ) 1( ) (2 2)( 2) 2 1
e x xh x g x x x x x x . Similarly, we find for
2
2( ) : 2 1
g x x x that e x2( )x x( 22x 1) 3x2 x 2. Notice that the polynomials
e x
1( )
ande x
2( )
are to be considered as polynomials inR
3,52 and not inR
12,51 . Using the notation introduced in the beginning of this chapter, we should denote these polynomials by
1( )
x
and
2( )
x
. The minimal constacyclic codes in this case are (x32) / (x2)x22x 1 g x2( ) and3 2
1
(x 2) / (x 2x 1) x 2 g x( )
. So, in this simple case we have
1( )
x
2( )
x
and2
( )
x
1( )
x
. One can immediately verify that
1( )
x
2( ) 1
x
and that
i( ) 1
x
i( )
x
.Moreover,
1( ) ( )x
2 x (3x2 x 2)(2x2 x 1) 0(cf. Theorem 1 (iii), (iv) and (v)). □Example 2 Next we consider the polynomial
x
6
2
overGF
(5)
. Again
2 and so k 4, but there is no element
inGF
(5)
which satisfies
6
. Therefore, we define
as a zero of the irreducible polynomialx
2
2
, and hence
2
2
. Applying Theorem 3(iv), with d 2 (which dividesn
),2
, and h4 gives that the order of
equals 8 < 24. We also define
as a zero of the irreducible polynomialx
2
x
1
overGF
(5)
. Since
3
1 (
1)(
2
1)
0
,
is a primitive sixth root of unity. Actually, we can identify
with
3 (or with
3), because2
(
3)
(
3) 1
2
4
3 1 0
. So, the extension fieldGF
(5)( , )
is isomorphic toGF
(5)( )
. From the definition of
we have immediately that
4
1
and so
has indeed order 8 inGF
(5)( )
. It also follows that
has order 24 and thus it is a generator of(5)( )*
GF
or, equivalently, a primitive element of this extension field, contrary to the case of3
2
x
in the previous example. According to Theorem 3 (v),x
24
1
is a multiple ofx
6
2
and there is no polynomialx
m
1
, m24, with the same property.One can easily verify that the factorization of
x
6
2
into irreducible polynomials is equal to6 2 2 2
2
(
2)(
2)(
2)
12
we find again ord
(
x
6
2)
8, 24
24
, applying Theorem 3 (ii). As for the factorization ofx
24
1
into cyclotomic polynomials, we can write24 12
8 24
1 ( 1) ( ) ( )
x x x x , where
x
12
1
is factorized in Example 1 into cyclotomic polynomials and next into irreducible polynomials overGF
(5)
, while
8( )
x
4 2 2
1 (
2)(
2)
x
x
x
and
24( )
x
x
8
x
41
=(
x
2
x
2)(
x
2
x
2)
(
x
2
2
x
2)
2
(
x
2
x
2)
are the factorizations for the ‘new’ cyclotomic ‘ polynomials.We also determine the idempotent generators of the codes generated by the irreducible polynomials
contained in
x
6
2
. To this end we apply the relation of Theorem 5 . We find the following results: (i) g x1( )x22; h x1( )(x2 x 2)(x2 x 2)x42x2 4; 3 2 4 2 1( )x 3 (4x x 4 )(x x 2) 2x x 1
. (ii) g x2( )x2 x 2; h x2( )(x22)(x2 x 2)x4x34x2 2x4; 3 2 2 5 4 2 2( )x 3 (4x x 3x 3x 2)(x x 2) 2x x 2x 2x 1
. (iii) g x3( )x2 x 2; h x3( )(x22)(x2 x 2)x44x34x23x4; 3 2 2 5 4 2 3( )x 3 (4x x 2x 3x 3)(x x 2) 3x x 2x 3x 1
.The primitive idempotent polynomials are:
1( )x 3x4x22,
2( )x 3x5x42x22x2 and
3( )x 2x5x42x22x2. As one can see3 1 ( ) 1 i s x
(cf. Theorem 1 (iv)). In a completely similar way we determine the idempotent generators for the case n6,q
5
,3
, and hence k 4. Firstly, we obtain the factorization ofx
6
3
into irreducible polynomials overGF
(5)
:x
6
3
(
x
2
2)(
x
2
2
x
2)(
x
2
2
x
2)
. Next, by applying Theorem 1, we derive the following idempotent polynomials:(i)
1( )x 3x4x21 for g x1( )x22; (ii)
2( )x x5 x42x2 x 1 for g x2( )x22x2; (iii)
3( )x x52x4x2 x 2 for g x3( )x22x2.We also study the case n6,
q
5
,
1, and hence k 2, with the factorization6 2 2
1 (
2)(
2)(
2
1)(
2
1)
x
x
x
x
x
x
x
. The results are:(i)
1( )x 2x5x42x3x22x forg x
1( )
x
2
;(ii)
2( )x 2x5x42x3x22x forg x
2( )
x
2
; (iii)
3( )x 2x5x4x3x22x1 for g x3( )x22x1;13
Example 3 Next we take n8,
q
3
,
1, and hence k2. The factorization ofx
8
1
into irreducible polynomials overGF
(3)
isx
8
1 (
x
4
x
2
1)(
x
4
x
2
1)
. If
is defined as a zero of the first polynomial, i.e. if
4
2
1 0
, then
8
1
and
16
1
. We observe that the two irreducible polynomials are not primitive. Actually, both have order 16 and so, by Theorem 3, the order ofx
8
1
equals 16 as well. This is in agreement with Theorem 3 (iv), since hd 8.2 16 is divisible by 8. To obtain a primitive8
th root of unity, we extendGF
(3)
by a zero
of the polynomialx
4
x
1
which is irreducible inGF
(3)[ ]
x
, and which has order (or exponent) 80 (cf.[3, Table C] ). So, if we extendGF
(3)
by
, then
is a primitive element ofGF
(3)( )
4(
GF
(3 ))
. We can identify5
:
, since
20
10
1 0
, and so
is a zero ofx
4
x
2
1
. Similarly, if we define25
' :
, then
' is a zero ofx
4
x
21
. Furthermore, if
:
2(
10)
, then
is a primitive8
th root of unity and the eight solutions of the equationx
8
1 0
can be written as
i, 0 i 7. By applying Theorem 1, we find for the idempotent generator of the negacyclic code
g x
1( )
:=4 2
1
x
x
the polynomial e x1( ) x6 x21. Similarly, we find for the negacyclic code2
( )
g x
:=
x
4
x
21
the idempotent generating polynomial e x2( )x6x21. □5. A relation between idempotent generators of constacyclic and cyclic codes
In this section we derive a simple relationship between the idempotent generating polynomial over
( )
GF q
of a constacyclic code of lengthn
and those of certain cyclic codes of length N , with( , )
n q
( , ) 1
N q
.Theorem 6 Let n be an integer
1
, q a prime power with( , ) 1
n q
and let
GF q
( )*
have order k. Letn
x
be a divisor ofx
N
1
inR
Nq,1, with( , ) 1
N q
. Let furthermoreg x
( )
be an irreducible polynomial of degree m, dividingx
n
. Ife x
( )
is the idempotent generator of the
-constacyclic code
g x
( )
inR
nq, ande x
( )
the idempotent generator of the cyclic code
g x
( )
inR
Nq,1, then( )
( )
e x
e x
modx
n
. In particular this is true for N:e, where e is the order of the polynomialx
n
overGF q
( )
.14
(
x
n
)
xh x g x
'( ) ( )
nx h x g x
n( ) ( )
(xN 1)xh x g x'( ) ( )Nx h x g xN ( ) ( ). By applying Theorem 5, we can write for this equality
(
x
n
)(
Ne x
( )
l x
(
N
1))
nx x
n(
N
1)
=(xN 1)(n e x
( )l x'( n
))NxN(xn
), for some integers l and l'. Next, we divide both sides of this equality byx
n
, giving ( ) ( N 1) n ( ) ( ) ( ) '( N 1)Ne x l x nx t x n t x e x
l x
Nx
N.We consider this relation as an equality modulo
x
n
. This implies thatx
n
andx
N
1
. We also know that ekn by Theorem 4 (v) and that Nbe for some positive integer b by [3, Lemma 3.6]. So we can write Nan, with k∣a
. Hence, modulox
n
, we have that( )
(
N1) / (
n)
(
an1) / (
n)
t x
x
x
x
x
= 1(
/ )
1
/
1
n a nx
x
1 01
(
)
/
n a i ix
a
.Substituting these results yields modulo
x
n
the relatione x
( )
e x
( )
. In particular, we can take :N e, since
( , ) 1
e q
. This is because k∣q
1
, hence( ,
k q
1) 1
and( , )
e q
(
kn q
, ) 1
, and thuse
satisfies the condition of the theorem. □Example 4 We consider the codes of Example 3, so n8,
q
3
,
1, k2. Takeg x
( ) :
x
4
x
2
1
.Then in
R
16,31 we have4 2 8 12 10 8 4 2
( )
(
1)(
1)
1
h x
x
x
x
x
x
x
x
x
. Applying Theorem 1 givese x
( )
x
14
x
10
x
8x
6
x
2. By taking this expression modx
8
1
and applyingTheorem 6, we obtain e1( )x x6 x21.
Next we consider the codes of Example 2, so n6,
q
5
,
2, k 4. Takeg x
( ) :
x
2
2
. Then inR
24,51 we haveh x
( ) :
x
22
2
x
20
x
18
2
x
16
x
14
2
x
12
x
10
2
x
8
x
6
2
x
4
x
2
2
.Again, applying Theorem 1 gives for the idempotent generator in
R
124,3 the expression22 20 18 16 14 12 10 8 6 4 2
( )
2
2
2
2
2
2
e x
x
x
x
x
x
x
x
x
x
x
x
, which modulox
2
2
provides us with e x2( )2x4x21 as the idempotent generating polynomial inR
6,52 . (cf. also Example 2). □6. More examples
We present a few more examples as illustrations of the previous theorems and for future use. Example 5 Consider the polynomial
x
7
3
overGF
(5)
. So, n7,q
5
,
3, and hence k4. One can15
7 6 5 4 3 2
3
(
2)(
2
4
3
2
4)
(
2) ( )
x
x
x
x
x
x
x
x
x
f x
. The order of2
GF
(5)
is 4, so1
4
e
and x2 is a divisor ofx
4
1
. If
is some zero off x
( )
, then
7
3
. It is well known that if
is a zero of an irreducible polynomialP x
( )
overGF q
( )
, the elements
q,
q2,....,
qm1 are the other zeros ofP x
( )
, wherem
is the degree ofP x
( )
. In this case the successiveq
-powers are
,
5,
52
2
4,
53
3
6,
54
3
2,
55
4
3,
56
. We conclude that m6 and that the second factorf x
( )
in the above decomposition is irreducible overGF
(5).
It also follows that F:GF
(5)( )
GF
(5 )
6 is the splitting field ofx
7
3
and consequently,x
7
3
divides6
5 1
1
x
. The order ofx
7
3
is equal to the least common multiple of the orders off x
( )
and x2 (cf. Theorem 3 (ii)) and hence it is a divisor of5
6
1
. The order off x
( )
is equal to the order of
in the groupGF
(5)( )*
. We remark that
is not a primitive element of this field, since6
( 1)
f
(0)
4
is not a primitive element ofGF
(5)
(cf.[ N.R., Theorem 3.18]). It also follows from Theorems 3 and 4 thatGF
(5)( )
contains a primitive7
th root
of unity and that we can identify the fieldF
in these theorems with the extension fieldGF
(5)( )
. Since
7 is the lowest power of
which lies inGF
(5),
Theorem 3 (iv) yields that the order of
is 7.4=28. Indeed, starting from the defining polynomialf x
( )
of
, we obtain by a simple calculation that
7
3
, and hence14
4
and
28
1
. So, the order ofx
7
3
is equal toe
e e
1,
2
4, 28
28
. Of course, thisvalue also follows from Theorem 4 (v). To illustrate Theorem 4 (ii) and (iii), we remark that
1
2
is a zero of the first irreducible polynomial and
2
of the second. So, according to Theorem 4 (ii)2
is the generating element of the subgroup ofGF
(5)( )
of ordere
( 28)
. Indeed, we have28 28 28 28 4 4
(2 )
2
3 .3
1
. Furthermore,
28/7
4
4 is a primitive7
th root of unity inF
. The subgroupH
:
4
{1,
4,3 ,3
5, 4
2, 4
6, 2
3}
contains all zeros lying inF
of the polynomialx
7
1
. More generally, the coset Hi
iH contains all zeros inF
of the polynomialx
7
2
i, for 0 i 3. More precisely, the cosetsH H
1,
2 andH
3 contain the zeros of7
3
x
,x
7
4
andx
7
2
, respectively. □Example 6 Take n5,
q
7
and
2. So, k 3. We choose
4 which is a zero ofx
5
2
. There is aj
,0
j
5
, with
j
GF
(7)
, i.e.j
1
, so the second part of Theorem 3 (iv) gives ord (
) = 3
3.5 = 15. Furthermore,GF
(7)( )
GF
(7)
does not contain a primitive 5th root of unity, since 5 is not a divisor of ∣GF
(7)*
∣ = 6. The factorization ofx
5
2
into irreducible polynomials in(7)[ ]
GF
x
is
x
5
2
(
x
4)(
x
4
4
x
3
2
x
2
x
4)
.16
x
4
4
x
3
2
x
2
x
4
(
x
)(
x
7)(
x
72)(
x
73)
=(
x
)(
x
2
2)(
x
4)(
x
4
3)
, where
now stands for some arbitrary zero of that polynomial. ExtendingGF
(7)
by this
yields a fieldF
:
GF
(7)( )
of size7
4, since
is defined by an irreducible polynomial overGF
(7)
of degree 4. The condition of Theorem 3 (iv) is satisfied now and hence, the order of
is 3.5 = 15. From Theorem 3 (v) it follows that ord (x
5
2
) = 15 and also that we can take
3. So, the zeros ofx
5
2
are
,
4,
7( 2
2)
,
10( 4)
and
13( 4
3)
.Next, we take n3with the same values for
q
and
, and so k3 again. In this caseGF
(7)
contains a primitiven
th( 3 )
rd root of unity, i.e.
2
. Like before, Theorem 4 (v) yieldsimmediately that ord
( )
3.3 9
. Unlike in the former case n5, the polynomialx
3
2
has no zeros inGF
(7)
. We factorize this polynomial into linear polynomials over its splitting field(7)( )
GF
as follows
x
3
2
(
x
)(
x
7)(
x
49)
(
x
)(
x
4 )(
x
2 )
.The size of this extension field is equal to
7
3. Furthermore, since
,
2
GF
(7)
, we can apply Theorem 3 (iv). One can easily verify thatx
3
2
is a divisor ofx
9
1
by writing
x
9
1 (
x
1)(
x
3)(
x
6){(
x
)(
x
7)(
x
4)}{(
x
2)(
x
5)(
x
8)}
=(
x
1)(
x
2)(
x
4)(
x
3
2)(
x
3
4)
.The fact that 9 is the smallest value of
n
such thatx
3
2
dividesx
n
1
, can be understood by realizing that the only possible candidate less than 9 is n6. Remember thatx
a
1
is a divisor of1
bx
if and only ifa
divides b. Butx
6
1 (
x
3
1)(
x
3
1)
ruling outx
3
2
as a divisor. □7. Cyclonomic polynomials for constacyclic codes
In order to deal with idempotent generating polynomials for constacyclic codes in a similar way as for cyclic codes, we introduce the notion of cyclonomic polynomial for
-constacyclic codes. We shall do this in such a way that this notion gets its usual meaning for
1, i.e. in case of cyclic codes. First, we present the well-known notion of cyclotomic coset modn
. Lets
be some integer with0 s n 1. Let
m
s be the smallest positive integer such thatsq
ms
s
modn
, then the cyclotomiccoset modulo
n
to whichs
belongs is defined as n: { , ,...., ms 1}s