Skip to Content
MathematicsMathematics
  • Article
  • Open Access

9 April 2026

32 Pages

Structure and Enumeration of Constacyclic Codes over Cube-Zero Local Rings of Order q5

and
Mathematics Department, King Saud University, P.O. Box 2455, Riyadh 11451, Saudi Arabia
*
Author to whom correspondence should be addressed.

Abstract

We investigate λ -constacyclic codes of length n over finite commutative local rings R of characteristic p and order q 5 , where q = p m is an odd prime power, whose Jacobson radical N satisfies N 3 = 0 ≠ N 2 , under the coprimality condition gcd ( n , p ) = 1 . In this setting, exactly two radical types occur, namely ( 3 , 1 ) and ( 2 , 2 ) , determined by the dimensions of N / N 2 and N 2 . For each type, we provide an explicit classification of the underlying rings and analyze the induced radical filtration of the ambient algebra A λ = R [ X ] / ⟨ X n − λ ⟩ . We prove that every λ -constacyclic code is uniquely determined by its residual component in A λ / J ( A λ ) together with two torsion components arising from the radical chain J ( A λ ) ⊃ J ( A λ ) 2 ⊃ 0 . This residual–torsion decomposition yields explicit generating sets; in particular, every λ -constacyclic code admits a generating set consisting of at most five elements. Furthermore, we derive exact enumeration formulas for all λ -constacyclic codes. In the type ( 2 , 2 ) case, the enumeration is governed by linear-algebraic constraints over the Chinese Remainder Theorem residue fields and, in the anisotropic class, depends on quadratic character values determined by the extension degrees. In the type ( 3 , 1 ) case, the enumeration is controlled by the dimension of the radical of the induced symmetric bilinear form on the top radical layer, equivalently by the rank class of the associated canonical matrix.

1. Introduction

Linear codes over finite rings extend classical coding theory beyond the finite-field setting and provide a natural framework for investigating algebraic phenomena arising from nontrivial radicals and non-chain ideal structures. In contrast to the field case, the behavior of cyclic and constacyclic codes over rings is strongly influenced by the internal structure of the ambient algebra, particularly the Jacobson radical and its associated filtration; see [1,2,3,4] for general background on finite local rings. While constacyclic codes over finite chain rings are now well understood, we refer to [5,6,7,8] for representative results; the corresponding theory over non-chain local rings remains substantially more intricate due to the interaction of multiple radical layers and a significantly richer lattice of ideals (see [9,10] for related work in this direction).
Algebraically, a λ -constacyclic code of length n over a finite ring R is an ideal of the quotient algebra
A λ = R [ X ] / ⟨ X n − λ ⟩ , λ ∈ R × .
Its structure depends simultaneously on the multiplicative structure of R, the radical filtration of R, and the factorization of X n − λ ¯ over the residue field R / N , where N .
A complete structural and enumerative description of constacyclic codes over local Frobenius non-chain rings of order p 4 with nilpotency index three was obtained in [11]. The present work extends this line of research to Frobenius and non-Frobenius rings of order q 5 = p 5 m , where m ≥ 1 . The cases of smaller cardinality are more rigid: for orders q 2 , q 3 , and q 4 , the possible local structures under comparable nilpotency assumptions are much more limited, whereas the order q 5 case is the first one in which the two distinct radical types, ( 3 , 1 ) and ( 2 , 2 ) , occur simultaneously. Thus, this is the first setting in which the classification and enumeration problems split into two genuinely different algebraic types, leading to new structural and enumerative phenomena that do not arise in smaller orders. Related investigations of constacyclic and other classes of codes over local rings are found in [9,12].
Throughout the paper, R denotes a finite commutative local ring of order | R | = q 5 , where q = p m with p odd, whose Jacobson radical N satisfies
N 3 = 0 ≠ N 2 .
This cube-zero condition yields exactly two possible radical types,
dim F q ( N / N 2 ) , dim F q ( N 2 ) ∈ { ( 3 , 1 ) , ( 2 , 2 ) } ,
which induce fundamentally different multiplicative structures on the top radical layer and consequently distinct constacyclic code architectures.
Our first main contribution is a complete classification of all such rings in terms of matrix-based invariants. For type ( 3 , 1 ) , multiplication on N / N 2 ≅ F q 3 is encoded by a nonzero symmetric matrix A ∈ Sym 3 ( F q ) , considered up to projective congruence
A ∼ θ U T A U , U ∈ GL 3 ( F q ) , θ ∈ F q × ,
yielding four canonical isomorphism classes in odd characteristic. For type ( 2 , 2 ) , multiplication corresponds to a two-dimensional subspace L ⊆ Sym 2 ( F q ) modulo congruence. The associated determinant locus
Σ ( L ) = { ( α : β ) ∈ P 1 ( F q ) : det ( α A + β B ) = 0 }
serves as a complete invariant distinguishing the canonical classes. Thus, the classification naturally connects the structure theory of finite local rings with projective geometry and the theory of matrix pencils.
Under the coprimality condition gcd ( n , p ) = 1 , the polynomial X n − λ ¯ is separable over F q , and the Chinese Remainder Theorem decomposes A λ into local components. Using the induced radical filtration,
A λ ⊃ J ( A λ ) ⊃ J ( A λ ) 2 ⊃ 0 ,
we prove that every λ -constacyclic code admits a residual–torsion decomposition. Each code is uniquely determined by its residual component together with two torsion layers, leading to explicit generator descriptions. In particular, every code over R can be generated by at most five polynomials.
The enumeration problem then reduces to local counting over the residue fields
K i = F q [ X ] / ⟨ f i ( X ) ⟩ ,
arising from the factorization X n − λ ¯ = ∏ i = 1 t f i ( X ) . For radical type ( 2 , 2 ) , the counting is governed by linear-algebraic data attached to the canonical class of R, whereas for type ( 3 , 1 ) it depends on quadratic invariants determined by the rank structure of the associated bilinear form. Consequently, even for fixed length and factor degrees, the total number of constacyclic codes depends on the isomorphism class of the underlying ring.
The significance of this work is twofold. First, it shows that relatively small cube-zero local rings already exhibit a rich interplay between ring structure, matrix congruence theory, and coding theory. Second, the matrix-based realization developed here demonstrates that constacyclic codes over non-chain and non-Frobenius rings can be studied via geometric and tensorial invariants arising from bilinear forms and projective spaces. This perspective provides a unified structural framework and opens the way to the systematic investigation of codes over matrix-defined local algebras and higher-nilpotency settings.
This paper is organized as follows. Section 3 classifies finite commutative local rings of order q 5 satisfying N 3 = 0 ≠ N 2 . In particular, Section 3.1 and Section 3.2 treat the two radical types ( 3 , 1 ) and ( 2 , 2 ) separately and determine their canonical classes. Section 4 studies the ambient ring A λ and develops the structural theory of λ -constacyclic codes via the residual–torsion decomposition, including the corresponding generator description. Section 5 derives the explicit enumeration formulas by combining the structural results with the CRT decomposition. Section 5.1 and Section 5.2 deal with the enumeration for the types ( 3 , 1 ) and ( 2 , 2 ) , respectively, and they conclude with illustrative examples for the various ring classes.

2. Preliminaries

Throughout the paper, let p be an odd prime and let q = p m with m ≥ 1. Denote by F q the finite field with q elements. All rings are assumed to be finite, commutative, and unital of characteristic p. For a finite ring R, we write N for its Jacobson radical. We restrict attention to commutative local rings R with residue field
R / N ≅ F q ,
and for r ∈ R , we denote its residue class in F q by r ¯ .
We consider finite commutative local rings R of cardinality | R | = q 5 whose Jacobson radical satisfies
N 3 = 0 and N 2 ≠ 0 .
Thus, R admits a cube-zero radical filtration
R ⊃ N ⊃ N 2 ⊃ 0 ,
with exactly two nonzero radical layers. Since R / N ≅ F q , we have dim F q ( R / N ) = 1 , and hence,
dim F q R = 5 and dim F q N = 4 .
From the short exact sequence
0 ⟶ N 2 ⟶ N ⟶ N / N 2 ⟶ 0
it follows that
dim F q ( N / N 2 ) + dim F q ( N 2 ) = 4 .
Because N 2 ≠ 0 and N ≠ N 2 , both summands are positive. Therefore,
dim F q ( N / N 2 ) , dim F q ( N 2 ) ∈ { ( 3 , 1 ) , ( 2 , 2 ) } .
These two possibilities exhaust all finite commutative local rings of order q 5 satisfying (3).
A useful consequence of N 3 = 0 that will be employed repeatedly is
N 2 N = 0 ,
so every element of N 2 annihilates N . For further background in this ring-theoretic setting, we refer to [13,14].
Let λ ∈ R × and let n ≥ 1 satisfy gcd ( n , p ) = 1 . A λ-constacyclic code of length n over R is an ideal of the ambient algebra
A λ = R [ X ] / ⟨ X n − λ ⟩ .
The coprimality condition ensures that X n − λ ¯ is square-free in F q [ X ] . Hence, its factorization into distinct monic irreducible polynomials admits Hensel lifts to R [ X ] . Consequently, the Chinese Remainder Theorem yields a decomposition of A λ into a finite direct product of local components, and the structure of λ -constacyclic codes reduces to the description of ideals in these components. Background on codes over finite rings may be found in [10,15].
Since R satisfies N 3 = 0 ≠ N 2 , the induced radical filtration of A λ has the form
A λ ⊃ J ( A λ ) ⊃ J ( A λ ) 2 ⊃ 0 ,
and this filtration interacts naturally with the semisimple quotient
A λ / J ( A λ ) ≅ F q [ X ] / ⟨ X n − λ ¯ ⟩ .
This structure provides the algebraic framework for the residual–torsion description and the enumeration of λ -constacyclic codes developed in the subsequent sections.
Finally, Gaussian binomial coefficients arise in the enumeration of constacyclic codes. For integers 0 ≤ t ≤ d and prime power q, the q-binomial coefficient is defined by
d t q = ( q d − 1 ) ( q d − q ) ⋯ ( q d − q t − 1 ) ( q t − 1 ) ( q t − q ) ⋯ ( q t − q t − 1 ) ,
and counts the t-dimensional F q -subspaces of an d-dimensional vector space over F q , (see [16]). These coefficients will be used to enumerate subspaces that parameterize the constacyclic codes of the component rings introduced below.
Throughout the paper, ⟨ · ⟩ denotes the ideal generated by the indicated elements.

3. Structural Classification of Local Rings of Order q 5 with N 3 = 0

In this section, we determine the precise structure of finite commutative local rings R of order q 5 whose Jacobson radical N satisfies N 3 = 0 ≠ N 2 . Using the notation and framework introduced in Section 2, we showed that the radical filtration
R ⊃ N ⊃ N 2 ⊃ 0
forces exactly two possible graded dimension types for R, namely
dim F q ( N / N 2 ) , dim F q ( N 2 ) ∈ { ( 3 , 1 ) , ( 2 , 2 ) } .
These two cases lead to distinct algebraic configurations, which we analyze separately and classify explicitly via canonical matrix representations.
Lemma 1.
Let R be a ring and let I ⊆ R be a nilpotent ideal, and suppose I is nilpotent with I t = 0 . Then, an element ω ∈ R is a unit if and only if its image in R / I is a unit. In particular, if R / I ≅ F q , then
R × = F q × + I .
Moreover, if a ∈ R maps to a ¯ ∈ ( R / I ) × and u ∈ I , then
( a + u ) − 1 = a − 1 ∑ k = 0 t − 1 ( − a − 1 u ) k .
Proof. 
Let π : R → R / I denote the canonical projection. If ω ∈ R × , then clearly π ( ω ) ∈ ( R / I ) × .
Conversely, suppose that π ( ω ) is a unit in R / I . Then, there exists ω 1 ∈ R such that π ( ω ω 1 ) = 1 , and hence
ω ω 1 = 1 + v for some v ∈ I .
Since I is nilpotent, we have v t = 0 . Therefore,
( 1 + v ) ∑ k = 0 t − 1 ( − v ) k = 1 ,
so 1 + v is a unit with inverse ∑ k = 0 t − 1 ( − v ) k . Consequently,
ω · ω 1 ∑ k = 0 t − 1 ( − v ) k = 1 ,
which shows that ω is a unit in R.
For the explicit formula, write ω = a + u with a mapping to a unit in R / I and u ∈ I . Then
a + u = a ( 1 + a − 1 u ) ,
where a − 1 u ∈ I . Applying the previous argument to 1 + a − 1 u yields
( 1 + a − 1 u ) − 1 = ∑ k = 0 t − 1 ( − a − 1 u ) k ,
and multiplying by a − 1 gives the desired expression. □

3.1. Characterization for the Type ( 3 , 1 )

Throughout this subsection, let R be a finite commutative local ring with maximal ideal N and residue field R / N ≅ F q , satisfying
| R | = q 5 , N 3 = 0 ≠ N 2 , dim F q ( N / N 2 ) = 3 , dim F q ( N 2 ) = 1 .
Choose elements x , y , z ∈ N ∖ N 2 whose images form an F q -basis of N / N 2 , and choose 0 ≠ w ∈ N 2 so that N 2 = F q w . Then, as ideals of R, we have
N = ⟨ x , y , z , w ⟩ , N 2 = ⟨ z , w ⟩ .
Since N 3 = 0 , we have N 2 N = 0 , and in particular
w 2 = w x = w y = w z = 0 .
Moreover, the products of x , y , z lie in N 2 = F q w , so there exist unique scalars a i j ∈ F q such that, with ( x 1 , x 2 , x 3 ) = ( x , y , z ) ,
x i x j = a i j w , 1 ≤ i , j ≤ 3 .
Commutativity of R implies a i j = a j i , so the matrix A = ( a i j ) belongs to Sym 3 ( F q ) .
Lemma 2.
With the above choice of generators, we have A ≠ 0 .
Proof. 
Suppose, for contradiction, that A = 0 . Then x i x j = 0 for all i , j . Together with w N = 0 from (12), this implies that every product of two elements of N is zero, and hence N 2 = 0 , contradicting the assumption that N 2 ≠ 0 . □
We now classify rings of type ( 3 , 1 ) up to projective congruence of the associated symmetric matrix A.
Theorem 1.
Let A = ( a i j ) ∈ Sym 3 ( F q ) be nonzero. Define the F q -vector space
R ( A ) = F q + x F q + y F q + z F q + w F q ,
with multiplication determined by F q -bilinearity, 1 as the identity, commutativity, and the relations (12) and (13). Then,
(i) 
R ( A ) is a finite commutative local ring of order q 5 with maximal ideal N = ⟨ x , y , z , w ⟩ satisfying
N 2 = F q w , N 3 = 0 ≠ N 2 , dim F q ( N / N 2 ) = 3 .
(ii) 
Conversely, every commutative local ring R of type ( 3 , 1 ) is isomorphic to R ( A ) for some nonzero A ∈ Sym 3 ( F q ) .
(iii) 
For nonzero A , A ′ ∈ Sym 3 ( F q ) ,
R ( A ) ≅ R ( A ′ ) ⟺ A ′ = θ U T A U for some U ∈ GL 3 ( F q ) , θ ∈ F q × .
Proof. 
We prove the claims in several steps.
  • Step 1: Well-defined ring structure. Multiplication is specified on the basis { 1 , x , y , z , w } and extended F q -bilinearly, so it is well-defined and distributive. Commutativity is imposed by definition.
    To check associativity, consider basis elements:
    (i)
    If one factor is 1, associativity holds trivially.
    (ii)
    If one factor is w, then any product involving w is 0 by (12), so associativity holds.
    (iii)
    If all three factors are in { x , y , z } , then the product of any two lies in F q w by (13), and multiplying by the third gives 0 by (12). Both parenthesizations vanish, so associativity holds.
  • Step 2: As an F q -vector space, dim F q R ( A ) = 5 , so | R ( A ) | = q 5 . Let N = ⟨ x , y , z , w ⟩ . Then R ( A ) / N ≅ F q , so N is maximal. Since N 3 = 0 , Lemma 1 implies that elements of the form a + u with a ∈ F q × and u ∈ N are units, while elements in N are not. Hence, R ( A ) is local with maximal ideal N .
  • Step 3: Through (13) and (12), products of elements of N lie in F q w , so N 2 ⊆ F q w . Since A ≠ 0 , some x i x j = a i j w ≠ 0 , implying w ∈ N 2 . Therefore, N 2 = F q w ≠ 0 , and clearly N 3 = ( F q w ) N = 0 . By construction, dim F q ( N / N 2 ) = 3 .
  • Step 4: Let R be any type ( 3 , 1 ) ring. Choose generators x , y , z , w as above. Relations (12) and (13) hold, and the corresponding A ∈ Sym 3 ( F q ) is nonzero (Lemma 2). Define ψ : R ( A ) → R by sending the basis { 1 , x , y , z , w } of R ( A ) to these elements of R. This F q -linear bijection preserves multiplication and is hence an isomorphism.
  • Step 5: Let φ : R ( A ) → R ( A ′ ) be a ring isomorphism. Then, φ ( N ) = N ′ and φ ( N 2 ) = N ′ 2 . Since N 2 = F q w and N ′ 2 = F q w ′ , there exists θ ∈ F q × such that
    φ ( w ) = θ w ′ .
    The induced map on N / N 2 is an F q -linear isomorphism, represented by some U ∈ GL 3 ( F q ) in the bases { x ¯ , y ¯ , z ¯ } and { x ′ ¯ , y ′ ¯ , z ′ ¯ } . Equivalently, lifting to N ′ , we may write
    φ ( x ) φ ( y ) φ ( z ) = U x ′ y ′ z ′ + r 1 r 2 r 3 w ′ for some r 1 , r 2 , r 3 ∈ F q .
    Because N ′ 2 N ′ = 0 , the w ′ -parts do not affect products of two elements from N ′ . Applying φ to x i x j = a i j w yields
    φ ( x i ) φ ( x j ) = φ ( x i x j ) = a i j φ ( w ) = θ a i j w ′
    by (14). On the other hand, using (15) and bilinearity gives
    φ ( x i ) φ ( x j ) = ∑ k u k i x k ′ + r i w ′ ∑ ℓ u ℓ j x ℓ ′ + r j w ′ = ∑ k u k i x k ′ ∑ ℓ u ℓ j x ℓ ′ ,
    since all terms containing w ′ vanish (because w ′ N ′ = 0 ). Thus,
    φ ( x i ) φ ( x j ) = ∑ k , ℓ u k i u ℓ j x k ′ x ℓ ′ = ∑ k , ℓ u k i u ℓ j a k ℓ ′ w ′ = ( U T A ′ U ) i j w ′ .
    Comparing coefficients of w ′ gives U T A ′ U = θ A , and equivalently, A ′ = θ ( U − 1 ) T A ( U − 1 ) . Setting V = U − 1 ∈ GL 3 ( F q ) yields A ′ = θ V T A V , as claimed.
  • Step 6: Conversely, suppose A ′ = θ U T A U with U ∈ GL 3 ( F q ) and θ ∈ F q × . Define φ : R ( A ) → R ( A ′ ) by φ ( 1 ) = 1 ,
    φ ( x ) φ ( y ) φ ( z ) = U x ′ y ′ z ′ , φ ( w ) = θ w ′ .
    Then, φ is an F q -linear bijection. Moreover,
    φ ( x i ) φ ( x j ) = ∑ k , ℓ u k i u ℓ j x k ′ x ℓ ′ = ∑ k , ℓ u k i u ℓ j a k ℓ ′ w ′ = ( U T A ′ U ) i j w ′ = θ a i j w ′ = a i j φ ( w ) = φ ( x i x j ) ,
    and products involving w map to 0 because w N = 0 and w ′ N ′ = 0 . Hence, φ preserves multiplication on generators, and thus on all of R ( A ) . Therefore, φ is a ring isomorphism.
□
The following theorem determines explicit projective normal forms for type ( 3 , 1 ) over F q .
Theorem 2.
Assume char ( F q ) ≠ 2 and fix a nonsquare ϑ ∈ F q × . Let R be a finite local ring with | R | = q 5 and N 3 = 0 ≠ N 2 , of radical type ( 3 , 1 ) . Then, R is isomorphic to exactly one of the following four rings:
A ( 3 , 1 ) ( 1 ) = diag ( 1 , 0 , 0 ) ⟺ R ( 3 , 1 ) ( 1 ) = F q [ x , y , z , w ] x 2 − w , y 2 , z 2 , x y , x z , y z , w 2 , w x , w y , w z ;
A ( 3 , 1 ) ( 2 ) = diag ( 1 , 1 , 0 ) ⟺ R ( 3 , 1 ) ( 2 ) = F q [ x , y , z , w ] x 2 − w , y 2 − w , z 2 , x y , x z , y z , w 2 , w x , w y , w z ;
A ( 3 , 1 ) ( 3 ) = diag ( 1 , ϑ , 0 ) ⟺ R ( 3 , 1 ) ( 3 ) = F q [ x , y , z , w ] x 2 − w , y 2 − ϑ w , z 2 , x y , x z , y z , w 2 , w x , w y , w z ;
A ( 3 , 1 ) ( 4 ) = diag ( 1 , 1 , 1 ) ⟺ R ( 3 , 1 ) ( 4 ) = F q [ x , y , z , w ] x 2 − w , y 2 − w , z 2 − w , x y , x z , y z , w 2 , w x , w y , w z .
These four rings are pairwise non-isomorphic.
Proof. 
According to Theorem 1, the isomorphism classes of type ( 3 , 1 ) rings are in bijection with projective congruence classes of nonzero matrices A ∈ Sym 3 ( F q ) , where
A ∼ A ′ ⇔ A ′ = θ U T A U for some U ∈ GL 3 ( F q ) , θ ∈ F q × .
Assume char ( F q ) ≠ 2 . Over a finite field of odd characteristic, every symmetric matrix is congruent to a diagonal matrix (see, for instance, [17]). Hence, every nonzero A ∈ Sym 3 ( F q ) is congruent to
diag ( α 1 , α 2 , α 3 ) , α i ∈ F q ,
with α i ≠ 0 for 1 ≤ i ≤ r = rank ( A ) and α i = 0 for i > r .
  • Rank 1. If r = 1 , then A is congruent to diag ( 1 , 0 , 0 ) . Projective scaling does not produce new classes, so there is a single projective class in rank 1.
  • Rank 2. If r = 2 , then A is congruent to diag ( 1 , δ , 0 ) with δ ∈ F q × . Under ordinary congruence, two such forms are equivalent if and only if δ differs by a square in F q × . Projective scaling multiplies both diagonal entries by θ , which does not alter the square-class of δ . Hence, there are exactly two projective classes in rank 2, represented by
    diag ( 1 , 1 , 0 ) and diag ( 1 , ϑ , 0 ) ,
    where ϑ is a fixed nonsquare in F q × .
  • Rank 3. If r = 3 , then A is nondegenerate. Over F q with q odd, nondegenerate quadratic forms in dimension 3 have two ordinary congruence classes distinguished by det ( A ) ∈ F q × / ( F q × ) 2 . Under projective scaling A ↦ θ A , one has
    det ( θ A ) = θ 3 det ( A ) .
    Since 3 is odd, multiplication by θ 3 ranges over both square and nonsquare classes as θ varies over F q × . Thus, the two ordinary congruence classes become equivalent under projective congruence. Consequently, there is a single projective class in rank 3, represented by diag ( 1 , 1 , 1 ) .
Collecting all cases, the projective congruence classes of nonzero matrices in Sym 3 ( F q ) are exactly
diag ( 1 , 0 , 0 ) , diag ( 1 , 1 , 0 ) , diag ( 1 , ϑ , 0 ) , diag ( 1 , 1 , 1 ) .
Substituting each diagonal representative into the defining relations x i x j = a i j w and using w N = 0 produces the four corresponding ring presentations. Since the rank and, in the rank 2 case, the square-class invariant are preserved under projective congruence, these four classes are distinct. Hence, the associated rings are pairwise non-isomorphic. □
Remark 1.
When char ( F q ) ≠ 2 , projective congruence may collapse distinct ordinary congruence classes. In particular, in odd dimension (3 here), the two ordinary congruence classes of nondegenerate symmetric forms (distinguished by det ( A ) modulo squares) become projectively congruent because scaling by a nonsquare changes the determinant square-class by a factor of θ 3 . For later sections, the invariant formulation in Theorem 1 is typically sufficient; explicit representatives are only needed for tabulation.

3.2. Characterization for the Type ( 2 , 2 )

In this subsection, we assume dim F q ( N / N 2 ) = 2 , dim F q ( N 2 ) = 2 . Choose elements
x , y ∈ N ∖ N 2 , z , w ∈ N 2 ,
such that x ¯ , y ¯ form an F q -basis of N / N 2 and z , w form an F q -basis of N 2 . Then,
N = ⟨ x , y , z , w ⟩ , N 2 = ⟨ z , w ⟩ .
With the above choice of generators, we have
z 2 = w 2 = z w = z x = z y = w x = w y = 0 ,
and there exist unique a i j , b i j ∈ F q such that
x 2 = a 11 z + b 11 w , y 2 = a 22 z + b 22 w , x y = a 12 z + b 12 w .
Defining
A = a 11 a 12 a 12 a 22 , B = b 11 b 12 b 12 b 22 .
Changing the basis of N / N 2 by U ∈ GL 2 ( F q ) replaces ( A , B ) by ( U T A U , U T B U ) , while changing the basis of N 2 replaces ( A , B ) by another ordered basis of the same two-dimensional subspace
L = ⟨ A , B ⟩ ⊆ Sym 2 ( F q ) .
Next, we show that the isomorphism class of R is determined by the GL 2 ( F q ) -orbit of the two-dimensional subspace L.
Lemma 3.
The matrices A , B ∈ Sym 2 ( F q ) are linearly independent over F q .
Proof. 
The annihilation relations (18) follow from N 2 N = 0 . Since x , y ∈ N , we have x 2 , y 2 , x y ∈ N 2 , so they have unique expansions in the basis { z , w } , giving (19). Commutativity implies x y = y x , so A and B are symmetric.
Finally, N 2 is spanned by products of elements of N . Because any product involving a factor from N 2 is zero, N 2 is spanned by x 2 , y 2 , x y . Since dim F q N 2 = 2 , these products do not all lie in a one-dimensional F q -subspace of N 2 . Equivalently, their coordinate vectors in the basis ( z , w ) span F q 2 , which forces A and B to be linearly independent. □
Lemma 4.
Let L ⊆ Sym 2 ( F q ) be a 2-dimensional F q -subspace. Then L contains a matrix of nonzero determinant.
Proof. 
Assume every nonzero M ∈ L is singular. Choose 0 ≠ M ∈ L . Then rank ( M ) = 1 , so there exists U ∈ GL 2 ( F q ) with U T M U = ( 1 0 0 0 ) . Replacing L by U T L U preserves the hypothesis, so assume M = ( 1 0 0 0 ) ∈ L . Choose N = ( a b b c ) ∈ L linearly independent from M. Every element of L has the form
α M + β N = α + β a β b β b β c .
Its determinant equals α β c + β 2 ( a c − b 2 ) and must vanish for all ( α , β ) ≠ ( 0 , 0 ) . Fix β ≠ 0 ; then, this determinant is an affine linear function of α , and hence, its α -coefficient must be zero, forcing c = 0 . Then a c − b 2 = 0 gives b = 0 ; hence, N = diag ( a , 0 ) = a M , contradicting the choice of N. □
The next lemma investigates the change of generators and the induced action on ( A , B ) .
Lemma 5.
Maintain the type ( 2 , 2 ) assumptions and notation of Lemma 3. Let ( x ′ , y ′ ) be another pair in N ∖ N 2 whose images form a basis of N / N 2 , and let ( z ′ , w ′ ) be another basis of N 2 . Then there exist U ∈ GL 2 ( F q ) and T ∈ GL 2 ( F q ) such that
x ′ y ′ ≡ U x y ( mod N 2 ) , z ′ w ′ = T z w .
Writing T − 1 = ( α β γ δ ) , the matrix pair ( A , B ) associated with ( x , y ; z , w ) transforms to the pair ( A ′ , B ′ ) associated with ( x ′ , y ′ ; z ′ , w ′ ) via
( A ′ , B ′ ) = U T A U , U T B U · T − 1 = α U T A U + β U T B U , γ U T A U + δ U T B U .
Equivalently, the F q -subspace L = ⟨ A , B ⟩ ⊆ Sym 2 ( F q ) is well-defined up to congruence L ↦ U T L U , and the ordered basis ( A , B ) of L is well-defined up to a GL 2 ( F q ) -change of basis.
Proof. 
Since x ¯ , y ¯ and x ′ ¯ , y ′ ¯ are bases of the two-dimensional F q -space N / N 2 , there exists U = ( u i j ) ∈ GL 2 ( F q ) such that x ¯ ′ y ¯ ′ = U x ¯ y ¯ , i.e., x ′ y ′ ≡ U x y ( mod N 2 ) . Likewise, since ( z , w ) and ( z ′ , w ′ ) are bases of N 2 , there exists T ∈ GL 2 ( F q ) with z ′ w ′ = T z w . Lift the congruence to write
x ′ = u 11 x + u 12 y + u 1 , y ′ = u 21 x + u 22 y + u 2 , u 1 , u 2 ∈ N 2 .
Using N 2 N = 0 , every cross-term involving u 1 or u 2 vanishes in products with x or y. Hence
( x ′ ) 2 = ( u 11 x + u 12 y ) 2 , ( y ′ ) 2 = ( u 21 x + u 22 y ) 2 , x ′ y ′ = ( u 11 x + u 12 y ) ( u 21 x + u 22 y ) .
Expanding these products and using (19) shows that, relative to the old basis ( z , w ) of N 2 , the pair ( A , B ) transforms to ( U T A U , U T B U ) .
Finally, rewriting the same products in the new basis ( z ′ , w ′ ) amounts to applying T − 1 to the coordinate column, which is precisely (22). The last sentence is a restatement: U acts by congruence on L, while T changes the ordered basis of L. □
We are now ready to give the classification of type ( 2 , 2 ) rings of order q 5 .
Theorem 3.
Assume char ( F q ) ≠ 2 and fix a non-square ϑ ∈ F q × . Let
Σ ( L ) = { ( α : β ) ∈ P 1 ( F q ) : det ( α A + β B ) = 0 } .
Then, | Σ ( L ) | ∈ { 2 , 1 , 0 } and R is isomorphic to exactly one of the following three rings:
( A ( 2 , 2 ) ( 1 ) , B ( 2 , 2 ) ( 1 ) ) = 1 0 0 0 , 0 0 0 1 ⟺ R ( 2 , 2 ) ( 1 ) = F q [ x , y , z , w ] x 2 − z , y 2 − w , x y , z 2 , w 2 , z w , z x , z y , w x , w y ;
( A ( 2 , 2 ) ( 2 ) , B ( 2 , 2 ) ( 2 ) ) = 0 1 1 0 , 1 0 0 0 ⟺ R ( 2 , 2 ) ( 2 ) = F q [ x , y , z , w ] x 2 − w , y 2 , x y − z , z 2 , w 2 , z w , z x , z y , w x , w y ;
( A ( 2 , 2 ) ( 3 ) , B ( 2 , 2 ) ( 3 ) ) = 1 0 0 λ , 0 1 1 0 ⟺ R ( 2 , 2 ) ( 3 ) = F q [ x , y , z , w ] x 2 − z , y 2 − ϑ z , x y − w , z 2 , w 2 , z w , z x , z y , w x , w y .
Moreover,
| Σ ( L ) | = 2 ⟺ R ≅ R ( 2 , 2 ) ( 1 ) , | Σ ( L ) | = 1 ⟺ R ≅ R ( 2 , 2 ) ( 2 ) , | Σ ( L ) | = 0 ⟺ R ≅ R ( 2 , 2 ) ( 3 ) .
These three rings are pairwise non-isomorphic.
Proof. 
We proceed carefully, making each reduction explicit.
  • Step 1: Lemma 3 provides generators x , y , z , w and an associated linearly independent pair ( A , B ) ∈ Sym 2 ( F q ) 2 encoding the products x 2 , y 2 , x y .
  • Step 2: Through Lemma 5, changing the chosen generators in N / N 2 and N 2 transforms ( A , B ) by (22). Equivalently, the isomorphism class of R is determined by the congruence class of the 2-dimensional subspace L = ⟨ A , B ⟩ ⊆ Sym 2 ( F q ) under L ↦ U T L U with U ∈ GL 2 ( F q ) .
  • Step 3: Fix an ordered basis ( A , B ) of L and consider
    Δ ( α , β ) = det ( α A + β B ) ∈ F q [ α , β ] ,
    a homogeneous quadratic polynomial. If we replace ( A , B ) by another ordered basis of L, then ( α , β ) undergoes an invertible linear change of variables, so the projective zero set
    Σ ( L ) = { ( α : β ) ∈ P 1 ( F q ) : Δ ( α , β ) = 0 }
    depends only on L. If we replace L by U T L U , then
    det ( α ( U T A U ) + β ( U T B U ) ) = det ( U ) 2 det ( α A + β B ) ,
    so Σ ( L ) is unchanged. Hence, Σ ( L ) is an isomorphism invariant of R.
We now show that Δ is not identically zero. By Lemma 4, the 2-dimensional subspace L contains an invertible matrix, so for some ( α , β ) we have det ( α A + β B ) ≠ 0 . Therefore, Δ is nonzero, and the conic Δ ( α , β ) = 0 in P 1 ( F q ) has either two distinct points, one double point, or no F q -point. Consequently,
| Σ ( L ) | ∈ { 2 , 1 , 0 } .
  • Step 4: Assume Σ ( L ) has two distinct points. Then there exist two linearly independent singular matrices M 1 , M 2 ∈ L , spanning two distinct singular directions. Over F q with char ( F q ) ≠ 2 , any nonzero singular symmetric 2 × 2 matrix has rank 1 and hence a one-dimensional kernel in V = F q 2 . Distinct projective singular directions correspond to non-proportional rank-1 matrices, and their kernels are distinct lines in V.
Choose a basis of V so that ker ( M 1 ) = ⟨ e 1 ⟩ and ker ( M 2 ) = ⟨ e 2 ⟩ . In that basis, M 1 and M 2 become diagonal rank-1 matrices. Using the freedom to change the basis of N 2 (equivalently, the ordered basis of L), we may scale so that
M 1 = 1 0 0 0 , M 2 = 0 0 0 1 .
Hence, after admissible changes, L is congruent to
1 0 0 0 , 0 0 0 1 ,
which is exactly ( A ( 2 , 2 ) ( 1 ) , B ( 2 , 2 ) ( 1 ) ) . The relations (18) and (19) become x 2 = z , y 2 = w , x y = 0 , yielding R ≅ R ( 2 , 2 ) ( 1 ) .
  • Step 5: Assume Σ ( L ) is a single projective point. Then, up to scalar, there is a unique nonzero singular matrix N ∈ L . Since char ( F q ) ≠ 2 , N has rank 1, choose a basis of V such that
    N = 1 0 0 0 .
    Choose C ∈ L linearly independent from N. Then C must be invertible; otherwise, C would provide a second singular direction and hence | Σ ( L ) | ≥ 2 .
Write
C = a b b c , det ( C ) = a c − b 2 ≠ 0 .
If b = 0 , then C is diagonal and L = ⟨ diag ( 1 , 0 ) , diag ( a , c ) ⟩ contains the independent singular matrices diag ( 1 , 0 ) and diag ( 0 , 1 ) (since c ≠ 0 ), contradicting | Σ ( L ) | = 1 . Thus b ≠ 0 .
Conjugating by D = diag ( b − 1 , 1 ) keeps N fixed and normalizes the off-diagonal entry to 1, so we may assume b = 1 . Next, replace C by C − a N , which corresponds to changing the ordered basis of L (equivalently, changing the basis of N 2 ). This yields
C = 0 1 1 c .
Now replace the ordered basis of L by ( C , N ) . Then
L ∼ 0 1 1 0 , 1 0 0 0 ,
which is ( A ( 2 , 2 ) ( 2 ) , B ( 2 , 2 ) ( 2 ) ) . The relations become x y = z , x 2 = w , y 2 = 0 , so R ≅ R ( 2 , 2 ) ( 2 ) .
  • Step 6: Assume Σ ( L ) = ⌀ . Then every nonzero matrix in L is invertible. Choose an invertible A ∈ L and complete it to an ordered basis ( A , B ) of L. Since char ( F q ) ≠ 2 , there exists U ∈ GL 2 ( F q ) such that U T A U = diag ( 1 , d ) for some d ∈ F q × . Replacing L by U T L U , we may assume
    A = diag ( 1 , d ) , B = a b b c .
    The condition Σ ( L ) = ⌀ forces b ≠ 0 , for if b = 0 , then B is diagonal and one can choose ( α : β ) so that α A + β B is singular, giving a point of Σ ( L ) .
Now conjugate by the diagonal matrix P = diag ( 1 , b − 1 ) . This preserves the diagonal form of A and normalizes the off-diagonal entry of B to 1. Next, replace the ordered basis ( A , B ) by ( A , B − a A ) , which does not change L and kills the ( 1 , 1 ) -entry of B. Thus, we may assume
A = diag ( 1 , d ) , B = 0 1 1 c .
Finally, apply the shear Q = 1 − c 2 0 1 to obtain
Q T B Q = 0 1 1 0 = H , A 1 = Q T A Q = 1 u u v
for some u , v ∈ F q . Since A is invertible, so is A 1 , hence v ≠ 0 . Because we are free to change the ordered basis of the 2-dimensional space L = ⟨ A 1 , H ⟩ , we may replace ( A 1 , H ) by ( A 1 − u H , H ) . Set
A 2 = A 1 − u H = 1 0 0 v = diag ( 1 , v ) .
Thus,
L = ⟨ A 2 , H ⟩ = diag ( 1 , v ) , 0 1 1 0 .
For ( α : β ) ∈ P 1 ( F q ) we have
det ( α A 2 + β H ) = det α β β α v = α 2 v − β 2 .
The condition Σ ( L ) = ⌀ is equivalent to α 2 v − β 2 ≠ 0 for all ( α : β ) ∈ P 1 ( F q ) , which holds if and only if v is a nonsquare in F q × . Therefore, L is congruent to the span of
A ( 2 , 2 ) ( 3 ) = diag ( 1 , ϑ ) , B ( 2 , 2 ) ( 3 ) = H = 0 1 1 0 ,
where ϑ ∈ F q × is the fixed nonsquare. This yields the canonical anisotropic ring R ( 2 , 2 ) ( 3 ) with relations x 2 = z , y 2 = ϑ z , x y = w (and w N = 0 as before).
  • Step 7: The values | Σ ( L ) | ∈ { 2 , 1 , 0 } are mutually exclusive, and Σ ( L ) is an isomorphism invariant; hence, the three canonical rings are pairwise non-isomorphic. Conversely, every commutative type ( 2 , 2 ) ring yields a 2-dimensional subspace L ⊆ Sym 2 ( F q ) with an invertible element by Lemma 4, so exactly one of the three cases occurs, and the above reductions show that R is isomorphic to the corresponding canonical representative.
□
Remark 2.
The matrix-pair framework of Lemma 3 and the basis-change description in Lemma 5 are valid in all characteristics. However, when char ( F q ) = 2 , the classification of symmetric bilinear forms differs. For this reason, the explicit canonical lists in both Theorem 2 and Theorem 3 are stated only for char ( F q ) ≠ 2 .
Remark 3.
The classification in this section (see Table 1) is governed by natural invariants arising from the induced multiplication on N / N 2 . For type ( 3 , 1 ) rings, multiplication on V = N / N 2 is encoded by a nonzero symmetric matrix A ∈ Sym 3 ( F q ) via x i x j = a i j w , and the isomorphism class depends only on the projective congruence class of A, namely A ∼ θ U T A U with U ∈ GL 3 ( F q ) and θ ∈ F q × . In odd characteristic, this projective class is determined by the rank of A, and in rank 2 by the square class of the determinant of the nondegenerate 2 × 2 part. For type ( 2 , 2 ) rings, multiplication induces a symmetric bilinear map μ : V × V → W , where V = N / N 2 and W = N 2 ; equivalently, there is a two-dimensional subspace L ⊆ Sym 2 ( F q ) up to congruence. In odd characteristic, the projective zero set
Σ ( L ) = { ( α : β ) ∈ P 1 ( F q ) : det ( α A + β B ) = 0 }
is a complete invariant for the type ( 2 , 2 ) classification described in Theorem 3 (in the odd-characteristic setting assumed there).
Table 1. Summary of local rings of order q 5 with N 3 = 0 ≠ N 2 for odd q.

4. Constacyclic Codes over Local Rings of Order q 5 with N 3 = 0

In this section, we analyze the ring
A λ = R [ X ] / ⟨ X n − λ ⟩ , λ ∈ R × ,
under the standing hypotheses, gcd ( n , p ) = 1 and ( ρ 1 , ρ 2 ) ∈ { ( 3 , 1 ) , ( 2 , 2 ) } , where ρ 1 = dim F q ( N / N 2 ) and ρ 2 = dim F q ( N 2 ) . Our goal is to describe λ -constacyclic codes, i.e., ideals of A λ , via the radical filtration of A λ and to obtain a residual–torsion decomposition that will later permit explicit enumeration. Set λ ¯ for the image of λ in F q , and
S = F q [ X ] / ⟨ X n − λ ¯ ⟩ .
Since the derivative of X n − λ ¯ is n X n − 1 ≠ 0 in F q [ X ] , the polynomial X n − λ ¯ is square-free. Hence
S ≅ ∏ i = 1 t F q d i
is a finite semisimple F q -algebra.
Proposition 1.
The ring A λ is local, and
(i) 
J ( A λ ) = M = N A λ .
(ii) 
M 2 = N 2 A λ and M 3 = 0 ≠ M 2 .
(iii) 
A λ / M ≅ ( R / N ) [ X ] / ⟨ X n − λ ¯ ⟩ ≅ S .
(iv) 
One has dim F q ( R ) = 1 + ρ 1 + ρ 2 and hence
dim F q ( A λ ) = ( 1 + ρ 1 + ρ 2 ) n , dim F q ( M / M 2 ) = ρ 1 n , dim F q ( M 2 ) = ρ 2 n .
In particular, dim F q ( A λ ) = 5 n .
Proof. 
Consider the natural surjection
π : A λ ⟶ R [ X ] ⟨ X n − λ , N R [ X ] ⟩ ≅ F q [ X ] / ⟨ X n − λ ¯ ⟩ = S ,
whose kernel is ker ( π ) = N A λ .
(i)
Since S is a finite product of fields, J ( S ) = 0 . Hence π ( J ( A λ ) ) ⊆ J ( S ) = 0 , so J ( A λ ) ⊆ ker ( π ) = N A λ . Conversely, N A λ is nilpotent because ( N A λ ) 3 = N 3 A λ = 0 , so every element of N A λ lies in the Jacobson radical. Therefore, J ( A λ ) = N A λ = M . This means that A λ is local.
(ii)
Since A λ is commutative, ( N A λ ) k = N k A λ for k ≥ 1 , hence M 2 = N 2 A λ and M 3 = N 3 A λ = 0 . Moreover, M 2 ≠ 0 because N 2 ≠ 0 .
(iii)
This is exactly the isomorphism induced by π .
(iv)
As an R-module, A λ is free of rank n with basis { 1 , X , … , X n − 1 } ; hence dim F q ( A λ ) = n dim F q ( R ) . Also, M = N A λ and M 2 = N 2 A λ satisfy dim F q ( M ) = n dim F q ( N ) and dim F q ( M 2 ) = n dim F q ( N 2 ) . Thus,
dim F q ( M / M 2 ) = n dim F q ( N ) − dim F q ( N 2 ) = ρ 1 n , dim F q ( M 2 ) = ρ 2 n .
Finally, dim F q ( R ) = 1 + ρ 1 + ρ 2 follows from the filtration 0 ⊂ N 2 ⊂ N ⊂ R and R / N ≅ F q .
□
We now relate A λ to the factorization of X n − λ ¯ over F q . Since gcd ( n , p ) = 1 , the polynomial X n − λ ¯ is square-free and hence factors into distinct monic irreducibles
X n − λ ¯ = f 1 ( X ) ⋯ f t ( X ) in F q [ X ] .
Lemma 6.
Let R be a finite local ring with maximal ideal N and residue field F q . Let F ( X ) ∈ R [ X ] and write F ¯ ( X ) for its reduction modulo N . Suppose F ¯ = f ¯ 1 … f ¯ t with f ¯ i monic and pairwise coprime in F q [ X ] . Then there exist monic polynomials F 1 , … , F t ∈ R [ X ] with F i mod N = f ¯ i such that F = F 1 … F t in R [ X ] , and the ideals ⟨ F i ⟩ are pairwise comaximal in R [ X ] .
Proof. 
Since the f ¯ i are pairwise coprime in F q [ X ] = ( R / N ) [ X ] , there exist a ¯ i , b ¯ i ∈ F q [ X ] with a ¯ i f ¯ i + b ¯ i ( F ¯ / f ¯ i ) = 1 . Lifting a ¯ i , b ¯ i to a i , b i ∈ R [ X ] gives a i f i + b i ( F / f i ) ≡ 1 ( mod N R [ X ] ) , and since N is nilpotent, one can iteratively correct the lifts to obtain exact factorizations and comaximality. This is the standard coprime factorization lifting (Hensel lifting) over a local ring with a nilpotent maximal ideal; see, e.g., McDonald [2], Ch. IX. □
Apply Lemma 6 to F ( X ) = X n − λ and (28). Let F i ( X ) ∈ R [ X ] be monic Hensel lifts of f i ( X ) such that
X n − λ = F 1 ( X ) … F t ( X ) in R [ X ] .
Theorem 4.
With the notation as above, the ideals ⟨ F i ( X ) ⟩ are pairwise comaximal in R [ X ] , and there is a ring isomorphism:
A λ ≅ ∏ i = 1 t R [ X ] / ⟨ F i ( X ) ⟩ .
Under this isomorphism, λ-constacyclic codes correspond bijectively to products of ideals in the factors. Moreover,
S ≅ ∏ i = 1 t F q [ X ] / ⟨ f i ( X ) ⟩ ≅ ∏ i = 1 t F q deg f i ,
so S is a finite principal ideal ring (indeed, a finite product of fields).
Proof. 
According to Lemma 6, the ideals ⟨ F i ⟩ are pairwise comaximal and X n − λ = ∏ i F i . Hence
⟨ X n − λ ⟩ = ⋂ i = 1 t ⟨ F i ⟩ ,
and the Chinese remainder theorem yields
R [ X ] / ⟨ X n − λ ⟩ ≅ ∏ i = 1 t R [ X ] / ⟨ F i ⟩ ,
which is (29). Ideals in a finite product are products of ideals in the components. Reducing modulo N sends F i to f i and commutes with finite products. Using Proposition 1(iii) (namely, A λ / M ≅ S with M = N A λ ), we obtain (30). The last isomorphism follows since each F q [ X ] / ⟨ f i ⟩ is a finite field of size q deg f i . □
The quotient map A λ → S = A λ / M induces S-module structures on the radical layers M / M 2 and M 2 : for s = a ¯ ∈ S and x ∈ M , set s · ( x + M 2 ) = a x + M 2 , and for y ∈ M 2 , set s · y = a y . These actions are well-defined since ( a − a ′ ) M ⊆ M 2 whenever a ≡ a ′ ( mod M ) , and ( a − a ′ ) M 2 ⊆ M 3 = 0 .
Remark 4.
The ring S is canonically an F q -algebra via the composition F q ↪ R ↠ A λ ↠ S . Hence, the tensor products ( N / N 2 ) ⊗ F q S and N 2 ⊗ F q S are well-defined and carry natural S-module structures.
Proposition 2.
There are canonical S-module isomorphisms
M / M 2 ≅ ( N / N 2 ) ⊗ F q S , M 2 ≅ N 2 ⊗ F q S .
In particular, M / M 2 ≅ S ρ 1 and M 2 ≅ S ρ 2 as S-modules. Moreover, multiplication in A λ induces an S-bilinear map
μ : ( M / M 2 ) × ( M / M 2 ) → M 2
which corresponds, under the above identifications, to the scalar extension to S of the F q -bilinear product map ( N / N 2 ) × ( N / N 2 ) → N 2 .
Proof. 
Define
Ψ : ( N / N 2 ) ⊗ F q S → M / M 2 , ( v ¯ ) ⊗ f ¯ ↦ v f ¯ ,
where v ∈ N and f ∈ A λ are lifts and bars denote quotient classes. If v is replaced by v + v 2 with v 2 ∈ N 2 , then v 2 f ∈ N 2 A λ = M 2 . If f is replaced by f + h with h ∈ M = N A λ , then v h ∈ N N A λ = N 2 A λ = M 2 . Hence, Ψ is well-defined. It is S-linear by construction.
Surjectivity: any class in M / M 2 has a representative in M = N A λ , so it is a sum of terms v f with v ∈ N , f ∈ A λ , and hence lies in the image. Injectivity follows by comparing F q -dimensions:
dim F q ( N / N 2 ) ⊗ F q S = ρ 1 dim F q ( S ) = ρ 1 n = dim F q ( M / M 2 ) ,
using Proposition 1(iv). Thus, Ψ is an isomorphism. The proof for M 2 ≅ N 2 ⊗ F q S is identical.
Finally, since M 3 = 0 , multiplication satisfies M · M ⊆ M 2 , and changing either factor by an element of M 2 changes the product by an element of M 3 = 0 . Therefore, multiplication induces a well-defined S-bilinear map μ : ( M / M 2 ) × ( M / M 2 ) → M 2 , which is precisely the scalar extension of the F q -bilinear product on N / N 2 with values in N 2 . □
Remark 5.
With | R | = q 5 , we have ( ρ 1 , ρ 2 ) ∈ { ( 3 , 1 ) , ( 2 , 2 ) } . Consequently,
M / M 2 ≅ S 3 , M 2 ≅ S or M / M 2 ≅ S 2 , M 2 ≅ S 2 ,
corresponding to the two radical types classified in Section 3.
Let C ⊆ A λ be a λ -constacyclic code, i.e., an ideal. The interaction of C with the filtration A λ ⊃ M ⊃ M 2 ⊃ 0 is recorded by residual and torsion layers.
Definition 1.
For an ideal C ⊆ A λ , define
C 0 = C + M M ⊆ S , C ( 1 ) = C ∩ M , C ( 2 ) = C ∩ M 2 ,
and
C 1 = C ( 1 ) + M 2 M 2 ⊆ M / M 2 , C 2 = C ( 2 ) ⊆ M 2 .
We call C 0 the residual code and C 1 , C 2 the first and second torsion codes.
Lemma 7.
Each C i is an S-submodule of its ambient space. In particular, C 0 is an ideal of S and hence an λ ¯ -constacyclic code over F q . Moreover, under the natural maps induced by the filtration,
C 2 ⊆ C ( 2 ) ⊆ C ( 1 ) ⊆ C , C ( 1 ) C ( 2 ) ≅ C 1 , C C ( 1 ) ≅ C 0 .
Proof. 
The S-module structures on M / M 2 and M 2 are described above. Since C ( 1 ) = C ∩ M is an ideal of A λ , the submodule C ( 1 ) + M 2 ⊆ M is stable under multiplication by A λ ; hence, its image C 1 = ( C ( 1 ) + M 2 ) / M 2 is stable under the induced S-action. Thus, C 1 is an S-submodule. Similarly, C 2 = C ∩ M 2 is an ideal contained in M 2 and hence stable under the S-action.
Finally, C 0 = ( C + M ) / M is an ideal of S. The quotient identifications follow from the isomorphism theorems:
C C ∩ M ≅ C + M M = C 0 , C ( 1 ) C ( 1 ) ∩ M 2 ≅ C ( 1 ) + M 2 M 2 = C 1 ,
and C ( 1 ) ∩ M 2 = C ∩ M 2 = C ( 2 ) = C 2 . □
Theorem 5.
Let C ⊆ A λ be a λ-constacyclic code and set C ( 1 ) = C ∩ M and C ( 2 ) = C ∩ M 2 . Then there are natural short exact sequences of S-modules
0 ⟶ C ( 1 ) / C ( 2 ) ⟶ C / C ( 2 ) ⟶ C 0 ⟶ 0 ,
0 ⟶ C 2 ⟶ C ( 1 ) ⟶ C 1 ⟶ 0 ,
and one has the canonical identification C ( 1 ) / C ( 2 ) ≅ C 1 as S-modules.
Proof. 
Consider the natural surjection
ϕ : C ⟶ ( C + M ) / M = C 0 , c ⟼ c + M .
Its kernel is C ∩ M = C ( 1 ) , so ϕ induces a surjection ϕ ¯ : C / C ( 2 ) ↠ C 0 with kernel C ( 1 ) / C ( 2 ) , giving (34). For (35), restrict the quotient map M → M / M 2 to C ( 1 ) : its image is C 1 and its kernel is C ( 1 ) ∩ M 2 = C ( 2 ) = C 2 , yielding (35). The induced map C ( 1 ) / C ( 2 ) → C 1 is an S-module isomorphism by construction. □
Since S is a finite product of fields, it is a semisimple Artinian ring (hence a principal ideal ring). In particular, every S-submodule of a free module S t is generated by at most t elements: indeed, S t ≅ ∏ j K j t , and submodules correspond componentwise to vector subspaces.
Theorem 6.
Let C ⊆ A λ be a λ-constacyclic code and let C 0 , C 1 , C 2 be as shown in Definition 1. Assume | R | = q 5 . Then there exist polynomials
G 0 ( X ) ∈ R [ X ] , G 1 ( 1 ) ( X ) , … , G 1 ( r ) ( X ) ∈ R [ X ] , G 2 ( 1 ) ( X ) , … , G 2 ( s ) ( X ) ∈ R [ X ] ,
with r ≤ ρ 1 and s ≤ ρ 2 such that:
(i) 
G 0 ( X ) mod N = g 0 ( X ) , where g 0 ( X ) ∈ F q [ X ] generates the ideal C 0 ⊆ S ;
(ii) 
The images of G 1 ( j ) ( X ) in M / M 2 generate C 1 as an S-module;
(iii) 
The images of G 2 ( ℓ ) ( X ) in M 2 generate C 2 as an S-module;
and
C = G 0 ( X ) , G 1 ( 1 ) ( X ) , … , G 1 ( r ) ( X ) , G 2 ( 1 ) ( X ) , … , G 2 ( s ) ( X ) A λ .
In particular, every λ-constacyclic code over R is generated by at most 1 + ρ 1 + ρ 2 = 5 polynomials.
Proof. 
By Proposition 2, M / M 2 ≅ S ρ 1 and M 2 ≅ S ρ 2 . Since S is semisimple (a finite product of fields), any S-submodule of S t is generated by at most t elements. Hence, C 1 is generated by at most ρ 1 elements and C 2 by at most ρ 2 elements as S-modules. Since C 0 is an ideal of the principal ideal ring S, choose g 0 ∈ S such that C 0 = ⟨ g 0 ⟩ . Choose G 0 ( X ) ∈ R [ X ] lifting g 0 modulo N . Choose S-generators u ¯ 1 , … , u ¯ r of C 1 with r ≤ ρ 1 , and choose lifts u j ∈ C ∩ M representing u ¯ j modulo M 2 . Let G 1 ( j ) ( X ) ∈ R [ X ] represent u j in A λ . Similarly, choose S-generators v 1 , … , v s of C 2 ⊆ M 2 with s ≤ ρ 2 , and choose representatives G 2 ( ℓ ) ( X ) ∈ R [ X ] of v ℓ in A λ . Let I ≤ A λ be the ideal generated by these polynomials. Clearly, I ⊆ C . We show that C ⊆ I .
  • Step 1. For c ∈ C , its image in S = A λ / M lies in C 0 = ⟨ g 0 ⟩ , so c + M = s 0 g 0 for some s 0 ∈ S . Lift s 0 to a 0 ∈ A λ . Then c − a 0 G 0 ∈ C ∩ M = C ( 1 ) .
  • Step 2. Put c 1 = c − a 0 G 0 ∈ C ( 1 ) . Its image in M / M 2 lies in C 1 , so c 1 + M 2 = ∑ j = 1 r s j u ¯ j for some s j ∈ S . Lift s j to a j ∈ A λ . Then
    c 1 − ∑ j = 1 r a j G 1 ( j ) ∈ M 2 .
    Set c 2 = c 1 − ∑ j a j G 1 ( j ) ∈ C ∩ M 2 = C 2 .
  • Step 3. Since v 1 , … , v s generate C 2 as an S-module, write c 2 = ∑ ℓ = 1 s t ℓ v ℓ with t ℓ ∈ S . Lift t ℓ to b ℓ ∈ A λ . Because the S-action on M 2 is induced from A λ , the element ∑ ℓ b ℓ G 2 ( ℓ ) represents ∑ ℓ t ℓ v ℓ = c 2 in M 2 (the choice of lifts is immaterial since ( b ℓ − b ℓ ′ ) M 2 ⊆ M 3 = 0 ). Thus c 2 ∈ I .
  • Step 4. Combining the steps yields c ∈ I . Hence, C ⊆ I , and therefore, C = I . The generator bound 1 + r + s ≤ 1 + ρ 1 + ρ 2 = 5 follows.
□
Remark 6.
Since M / M 2 ≅ S ρ 1 and M 2 ≅ S ρ 2 , the torsion layers C 1 and C 2 require at most ρ 1 and ρ 2 generators as S-modules, respectively. Therefore, if C 1 and C 2 are generated by r and s elements, then τ ( C ) ≤ 1 + r + s ≤ 1 + ρ 1 + ρ 2 = 5 , where τ ( C ) denotes the minimal number of generators of C as an A λ -module. Hence, the bound in Theorem 6 is global but not always sharp. In particular, C is principal if C 1 = C 2 = 0 , and the number of generators decreases whenever one of the torsion layers is trivial or cyclic. Also, in type ( 3 , 1 ) one has s ≤ 1 , while in type ( 2 , 2 ) both torsion layers may be nontrivial.
Remark 7.
Assume that R is Frobenius. Then A λ = R [ X ] / ⟨ X n − λ ⟩ is Frobenius as a finite R-algebra, and its Frobenius functional induces a nondegenerate associative bilinear form ⟨ · , · ⟩ : A λ × A λ → R . Passing to quotients yields perfect pairings on the successive radical layers, compatible with the filtration A λ ⊃ M ⊃ M 2 ⊃ 0 . In particular, the induced pairing on A λ / M ≅ S recovers the classical duality for λ ¯ -constacyclic codes over F q . Moreover, the induced pairings on M / M 2 and on M 2 are perfect S-bilinear pairings (via the action of S = A λ / M ), so the dual code C ⊥ can be described layer by layer: its residual and torsion layers are the annihilators of C 0 , C 1 , C 2 under the corresponding pairings (Table 2). This observation will be used in later duality results.
Table 2. Structural layers of A λ = R [ X ] / ⟨ X n − λ ⟩ with | R | = q 5 , N 3 = 0 ≠ N 2 , and gcd ( n , p ) = 1 .
Under the standing hypotheses, write
X n − λ ¯ = ∏ i = 1 t f i ( X ) , X n − λ = ∏ i = 1 t F i ( X ) ,
with f i distinct monic irreducible over F q and F i their Hensel lifts. Set
A i = R [ X ] / ⟨ F i ( X ) ⟩ , K i = F q [ X ] / ⟨ f i ( X ) ⟩ , Q i = | K i | .
Let
m i = J ( A i ) , V i = m i / m i 2 , W i = m i 2 .
Then V i ≅ K i ρ 1 and W i ≅ K i ρ 2 . For a λ -constacyclic code C i ⊆ A i , define
r i = dim K i ( C 1 , i ) , s i = dim K i ( C 2 , i ) ,
where C 1 , i ≤ V i and C 2 , i ≤ W i are the first and second torsion layers of C i . Furthermore, define
U 0 = { i : C i ⊆ m i } , U 1 = { i : C i = A i } .
Theorem 7.
Let C ⊆ A λ be a λ-constacyclic code. Then { 1 , … , t } = U 0 ∪ U 1 . Moreover,
(i) 
For each i ∈ U 0 , fix reduced row echelon matrices over K i representing the subspaces
C 1 , i ≤ V i , C 2 , i ≤ W i .
Choose lifts
G i , 1 ( 1 ) ( X ) , … , G i , 1 ( r i ) ( X ) , G i , 2 ( 1 ) ( X ) , … , G i , 2 ( s i ) ( X )
whose images generate C 1 , i and C 2 , i , respectively. Let e i ( X ) be the CRT idempotent corresponding to A i and set
F U 0 ( X ) = ∏ i ∈ U 0 F i ( X ) .
Then
C = ⟨ F U 0 ( X ) , { e i ( X ) G i , 1 ( j ) ( X ) : i ∈ U 0 , 1 ≤ j ≤ r i } , { e i ( X ) G i , 2 ( ℓ ) ( X ) : i ∈ U 0 , 1 ≤ ℓ ≤ s i } ⟩ .
In particular, each local component C i is generated by at most ρ 1 + ρ 2 ≤ 4 elements, and hence, every λ-constacyclic code over R is generated by at most five polynomials globally.
(ii) 
For i ∈ U 1 , one has | C i | = | A i | = q 5 d i . For i ∈ U 0 , one has
| C i | = Q i r i + s i = q d i ( r i + s i ) .
Consequently,
| C | = ∏ i ∈ U 1 q 5 d i · ∏ i ∈ U 0 q d i ( r i + s i ) .
Proof. 
Because X n − λ ¯ = ∏ i = 1 t f i ( X ) is square-free, the f i are pairwise coprime in F q [ X ] . By Hensel lifting, the monic lifts F i are pairwise comaximal in R [ X ] and satisfy X n − λ = ∏ i F i . Hence
⟨ X n − λ ⟩ = ⋂ i = 1 t ⟨ F i ⟩ ,
and the Chinese remainder theorem yields
A λ = R [ X ] / ⟨ X n − λ ⟩ ≅ ∏ i = 1 t A i .
Thus, constacyclic codes of a finite direct product are exactly products of constacyclic codes in the components. For uniquely determined ideals C i ≤ A i , we have
C ≅ ∏ i = 1 t C i .
Let e i ∈ A λ denote the corresponding CRT idempotents, so 1 = ∑ i e i , e i e j = 0 for i ≠ j , and e i A λ ≅ A i .
  • Step 1. Define
    U 1 = { i : C i = A i } , U 0 = { 1 , … , t } ∖ U 1 = { i : C i ⊆ J ( A i ) } .
    For i ∈ U 0 , the residual layer of C i in A i / J ( A i ) ≅ K i is 0, whereas for i ∈ U 1 it is K i . Hence the residual code
    C 0 = C + J ( A λ ) J ( A λ ) ≤ S ≅ ∏ i = 1 t K i
    is exactly ∏ i ∈ U 1 K i × ∏ i ∈ U 0 0 , so C 0 is the principal ideal of S generated by the CRT idempotent ∑ i ∈ U 1 e ¯ i . Equivalently, C 0 is generated by the product of the complementary factors, namely
    g 0 ( X ) = ∏ i ∈ U 0 f i ( X ) ∈ S .
    Let F U 0 ( X ) = ∏ i ∈ U 0 F i ( X ) ; then F U 0 mod N = g 0 in S.
  • Step 2. Fix i ∈ U 0 . Apply the residual–torsion framework inside A i : with m i = J ( A i ) , the code C i has residual layer 0 and torsion layers
    ( C i ) 1 ≤ V i , ( C i ) 2 ≤ W i ,
    which are K i -subspaces of V i ≅ K i ρ 1 and W i ≅ K i ρ 2 . Choose K i -generators of these subspaces and lift them to polynomials
    G i , 1 ( 1 ) ( X ) , … , G i , 1 ( r i ) ( X ) ∈ R [ X ] , G i , 2 ( 1 ) ( X ) , … , G i , 2 ( s i ) ( X ) ∈ R [ X ] ,
    so that their images generate ( C i ) 1 in V i and ( C i ) 2 in W i . Then, Theorem 6 (applied to the local ring A i ) yields
    C i = G i , 1 ( 1 ) , … , G i , 1 ( r i ) , G i , 2 ( 1 ) , … , G i , 2 ( s i ) A i ,
    since the residual layer is 0. For i ∈ U 1 , we have C i = A i , and hence, no generators are needed beyond 1.
  • Step 3. Under the isomorphism (39), the element e i ∈ A λ projects to 1 in the ith factor and to 0 in all others. Therefore, the ideals
    e i C ⊆ A λ correspond exactly to 0 × … × 0 × C i × 0 × … × 0 .
    Hence, C = ∑ i = 1 t e i C and, using (41) for i ∈ U 0 and C i = A i for i ∈ U 1 , we obtain (37).
  • Step 4. For each i, the additive group of A i has size | A i | = | R | d i = q 5 d i since A i is free of rank d i over R. If i ∈ U 1 , then | C i | = | A i | = q 5 d i . If i ∈ U 0 , the residual layer of C i is 0, and the successive quotients in the filtration
    0 ⊆ C i ∩ m i 2 ⊆ C i ∩ m i ⊆ C i ⊆ m i
    identify as
    C i C i ∩ m i ≅ 0 , C i ∩ m i C i ∩ m i 2 ≅ ( C i ) 1 , C i ∩ m i 2 = ( C i ) 2 .
    Thus | C i | = | ( C i ) 1 | · | ( C i ) 2 | . Since ( C i ) 1 and ( C i ) 2 are K i -vector spaces of dimensions r i and s i , we have | ( C i ) 1 | = Q i r i and | ( C i ) 2 | = Q i s i , hence
    | C i | = Q i r i + s i = q d i ( r i + s i ) .
    Finally, | C | = ∏ i | C i | because C ≅ ∏ i C i as an additive group under the CRT, giving (38).
□

5. Enumeration of λ -Constacyclic Codes

This section determines the exact number
N λ ( R , n ) = { λ – constacyclic codes of length n over R } .
By the structural results established earlier, every such code is an ideal of
A λ = R [ X ] / ⟨ X n − λ ⟩ ,
and the enumeration problem reduces to counting the ideals of A λ . Assume gcd ( n , p ) = 1 . Then X n − λ ¯ is square-free in F q [ X ] , so
X n − λ ¯ = ∏ i = 1 t f i ( X ) , deg f i = d i ,
with distinct monic irreducible factors. Let F i ( X ) denote the corresponding Hensel lifts. By Theorem 4,
A λ ≅ ∏ i = 1 t A i , A i = R [ X ] / ⟨ F i ( X ) ⟩ ,
and every λ -constacyclic code decomposes uniquely as
C ≅ ∏ i = 1 t C i , C i ≤ A i .
Consequently,
N λ ( R , n ) = ∏ i = 1 t N ( A i ) ,
where N ( A i ) denotes the number of constacyclic codes over the local ring A i .
The remainder of this section is devoted to computing N ( A i ) . The answer depends only on the residue field size
Q i = q d i
and on the canonical class of R. For each radical type, ( 3 , 1 ) and ( 2 , 2 ) , we determine the local ideal counts explicitly. Substituting these into (42) yields closed formulas for N λ ( R , n ) .
Lemma 8.
For each i, reduction modulo N induces an isomorphism
A i / N A i ≅ ( R / N ) [ X ] / ⟨ F i ¯ ( X ) ⟩ = F q [ X ] / ⟨ f i ( X ) ⟩ = K i .
Moreover,
J ( A i ) = m i = N A i , m i 2 = N 2 A i , m i 3 = 0 ,
and m i / m i 2 and m i 2 are naturally K i -vector spaces with
dim K i ( m i / m i 2 ) = ρ 1 , dim K i ( m i 2 ) = ρ 2 .
Proof. 
Reducing the defining relation modulo N gives
A i / N A i ≅ ( R / N ) [ X ] / ⟨ F i ¯ ( X ) ⟩ = F q [ X ] / ⟨ f i ( X ) ⟩ = K i ,
so N A i is a maximal ideal of A i . Since N 3 = 0 , we have ( N A i ) 3 = N 3 A i = 0 , so N A i is nilpotent and hence contained in J ( A i ) . Conversely, J ( A i ) maps to J ( K i ) = 0 , which implies J ( A i ) ⊆ N A i . Thus, J ( A i ) = m i = N A i . Commutativity yields m i k = ( N A i ) k = N k A i for k ≥ 1 , and hence m i 2 = N 2 A i and m i 3 = 0 . Since A i / m i ≅ K i , the A i -module structures on m i / m i 2 and m i 2 factor through K i , so these are K i -vector spaces.
Finally, A i is free of rank d i over R (since F i is monic of degree d i ). Hence, dim F q ( N j A i ) = d i dim F q ( N j ) for j = 1 , 2 . As [ K i : F q ] = d i , this implies the stated K i -dimensions. □
Remark 8.
Each local factor A i has the same radical type ( ρ 1 , ρ 2 ) as R, now viewed over K i .
Fix i and abbreviate
A = A i , m = J ( A ) , K = A / m ≅ K i , Q = | K | = Q i .
Set
V = m / m 2 , W = m 2 .
Through Lemma 8, V ≅ K ρ 1 and W ≅ K ρ 2 as K-vector spaces, and multiplication in A induces a well-defined K-bilinear map:
μ : V × V → W , μ ( x ¯ , y ¯ ) = x y ( mod m 3 = 0 ) .
Lemma 9.
The ideals I of A satisfying m 2 ⊆ I ⊆ m are in bijection with K-subspaces U ≤ V via U ↔ π − 1 ( U ) , where π : m ↠ V is the quotient map. Consequently,
{ I ≤ A : m 2 ⊆ I ⊆ m } = G ρ 1 ( Q ) = ∑ k = 0 ρ 1 ρ 1 k Q .
After choosing a K-basis of V ≅ K ρ 1 , the k-dimensional subspaces U ≤ V are parametrized by k × ρ 1 matrices over K in reduced row echelon (RRE) form.
Proof. 
Because m ( m / m 2 ) = 0 , the action of A on V = m / m 2 factors through A / m ≅ K . Hence, A-submodules of V are precisely K-subspaces. The correspondence theorem for π gives the desired bijection with ideals I satisfying m 2 ⊆ I ⊆ m . Counting such subspaces, through (11), yields the Gaussian number G ρ 1 ( Q ) , and the RRE parametrization is standard. □
Lemma 10.
The ideals J of A with J ⊆ m 2 are precisely the K-subspaces of W = m 2 . Consequently,
{ J ≤ A : J ⊆ m 2 } = G ρ 2 ( Q ) = ∑ k = 0 ρ 2 ρ 2 k Q .
Proof. 
Since m m 2 = m 3 = 0 , the action of A on m 2 factors through A / m ≅ K . Hence, A-submodules of m 2 are precisely the K-subspaces of W. □
Remark 9.
Lemmas 9 and 10 account for all ideals containing m 2 and all ideals contained in m 2 . The remaining ideals are those I ⊆ m with I ∩ m 2 = 0 ; these are governed by the multiplication constraints imposed by μ in (43).

5.1. Type ( 3 , 1 )

Assume that R has radical type ( 3 , 1 ) , i.e., ρ 1 = 3 and ρ 2 = 1 , and assume char ( F q ) ≠ 2 .
Fix a local CRT factor
A = A i , m = J ( A ) , K = A / m ≅ K i , Q = | K | .
Then
m 2 = ⟨ w ⟩ K ≅ K , V = m / m 2 ≅ K 3 .
Multiplication in A induces a symmetric K-bilinear form
b s : V × V → K , u v = b s ( u , v ) w ,
belonging to one of the four canonical projective congruence classes represented by
A ( 3 , 1 ) ( 1 ) = diag ( 1 , 0 , 0 ) , A ( 3 , 1 ) ( 2 ) = diag ( 1 , 1 , 0 ) , A ( 3 , 1 ) ( 3 ) = diag ( 1 , ϑ , 0 ) , A ( 3 , 1 ) ( 4 ) = diag ( 1 , 1 , 1 ) ,
where ϑ ∈ F q × is a fixed nonsquare.
Let
Rad ( b s ) = { u ∈ V : b s ( u , v ) = 0 for all v ∈ V }
denote the radical of the bilinear form.
Proposition 3.
Every proper ideal I ⊊ A satisfies exactly one of the following:
(i) 
w ∈ I . Then m 2 ⊆ I ⊆ m , and I is uniquely determined by the K-subspace U = π ( I ) ≤ V via I = π − 1 ( U ) .
(ii) 
w ∉ I . Then I ⊆ m and I ∩ m 2 = 0 . Writing U = π ( I ) ≤ V , one has U ⊆ Rad ( b s ) .
Conversely, fix a K-linear section s : V → m of π (so π ∘ s = id V ). For every K-subspace U ≤ Rad ( b s ) and every K-linear map φ : U → K , the subset
I ( U , φ ) = { s ( u ) + φ ( u ) w : u ∈ U }
is an ideal of A with π ( I ( U , φ ) ) = U and I ( U , φ ) ∩ m 2 = 0 . Moreover, for fixed U, the ideals I ( U , φ ) are pairwise distinct, and there are exactly Q dim U of them.
Proof. 
If w ∈ I , then m 2 = ⟨ w ⟩ K ⊆ I ⊆ m , and the correspondence theorem yields I = π − 1 ( U ) uniquely. Assume w ∉ I . Since m 2 = ⟨ w ⟩ K is the unique minimal nonzero ideal, one has I ∩ m 2 = 0 . Let U = π ( I ) ≤ V . For any x ∈ m and y ∈ I , we have x y ∈ m 2 and x y ∈ I , hence x y ∈ I ∩ m 2 = 0 . Thus, b s ( π ( x ) , u ) = 0 for all u ∈ U and all x ∈ m , so U ⊆ Rad ( b s ) . Conversely, let U ≤ Rad ( b s ) and φ : U → K be K-linear. The set I ( U , φ ) is a K-subspace of m , and π ( I ( U , φ ) ) = U by construction. Also, I ( U , φ ) ∩ m 2 = 0 since π restricts to an isomorphism I ( U , φ ) → ∼ U . To see that it is an ideal, note that A = K ⊕ m as K-vector spaces, so it suffices to check stability under multiplication by m . For x ∈ m and u ∈ U ,
x s ( u ) + φ ( u ) w = x s ( u ) ∈ m 2 = ⟨ w ⟩ K ,
and the coefficient of w equals b s ( π ( x ) , u ) = 0 because u ∈ Rad ( b s ) . Hence, x s ( u ) + φ ( u ) w = 0 ∈ I ( U , φ ) , so m I ( U , φ ) = 0 and I ( U , φ ) is an ideal. Finally, if φ ≠ ψ , choose u ∈ U with φ ( u ) ≠ ψ ( u ) ; then, s ( u ) + φ ( u ) w ≠ s ( u ) + ψ ( u ) w , so I ( U , φ ) ≠ I ( U , ψ ) . Since Hom K ( U , K ) has size Q dim U , the stated count follows. □
Theorem 8.
Let A be as above and let r s = dim K Rad ( b s ) . Then the number of ideals of A equals
N ( A ) = 1 + G 3 ( Q ) + H s ( Q ) ,
where
G 3 ( Q ) = ∑ k = 0 3 3 k Q = 2 Q 2 + 2 Q + 4 , H s ( Q ) = ∑ k = 0 r s r s k Q Q k .
For the four canonical classes, one has
36 s = 1 ( rank 1 ) : r 1 = 2 , N ( A ) = 4 Q 2 + 3 Q + 6 , s = 2 ( rank 2 ) : r 2 = 1 , N ( A ) = 2 Q 2 + 3 Q + 6 , s = 3 ( rank 2 ) : r 3 = 1 , N ( A ) = 2 Q 2 + 3 Q + 6 , s = 4 ( rank 3 ) : r 4 = 0 , N ( A ) = 2 Q 2 + 2 Q + 6 .
Consequently,
N λ ( R , n ) = ∏ i = 1 t N ( A i ) .
Proof. 
The ideals split into (i) those containing w, counted by G 3 ( Q ) (together with A itself); (ii) those not containing w, counted by pairs ( U , φ ) with U ≤ Rad ( b s ) and φ ∈ Hom K ( U , K ) . Hence,
N ( A ) = 1 + G 3 ( Q ) + ∑ U ≤ Rad ( b s ) | Hom K ( U , K ) | = 1 + G 3 ( Q ) + ∑ k = 0 r s r s k Q Q k .
The explicit evaluations follow from G 3 ( Q ) = 2 Q 2 + 2 Q + 4 and r s ∈ { 2 , 1 , 1 , 0 } for the four classes. □
Example 1.
Let R be a finite commutative local ring with residue field R / N ≅ F 3 ,
| R | = 3 5 , N 3 = 0 ≠ N 2 ,
and radical type ( 3 , 1 ) , i.e.,
dim F 3 ( N / N 2 ) = 3 , dim F 3 ( N 2 ) = 1 .
Set
A = R [ X ] / ⟨ X 4 − 1 ⟩ , M = J ( A ) = N A .
Since gcd ( 4 , 3 ) = 1 , the polynomial X 4 − 1 is separable over F 3 .
  • Step 1: Factorization over F 3 and CRT. Over F 3 we have
    X 4 − 1 = ( X 2 − 1 ) ( X 2 + 1 ) = ( X − 1 ) ( X + 1 ) ( X 2 + 1 ) ,
    and X 2 + 1 is irreducible over F 3 since − 1 ≡ 2 is a nonsquare in F 3 . Thus,
    X 4 − 1 = ∏ j = 1 3 f j ( X ) , ( f 1 , f 2 , f 3 ) = ( X − 1 , X + 1 , X 2 + 1 ) , ( d 1 , d 2 , d 3 ) = ( 1 , 1 , 2 ) .
    Let
    K j = F 3 [ X ] / ⟨ f j ( X ) ⟩ , Q j = | K j | = 3 d j .
    Then,
    K 1 ≅ K 2 ≅ F 3 , K 3 ≅ F 9 , ( Q 1 , Q 2 , Q 3 ) = ( 3 , 3 , 9 ) .
    Let F j be monic Hensel lifts of f j to R [ X ] and set
    A ( j ) = R [ X ] / ⟨ F j ( X ) ⟩ .
    By the Chinese remainder theorem,
    A ≅ ∏ j = 1 3 A ( j ) , N 1 ( R , 4 ) = ∏ j = 1 3 N A ( j ) .
  • Step 2: Local counts for the four canonical classes. In type ( 3 , 1 ) (with char ( F 3 ) ≠ 2 ), the number of ideals of each local factor A ( j ) depends only on the canonical class index s ∈ { 1 , 2 , 3 , 4 } of the induced bilinear form on J ( A ( j ) ) / J ( A ( j ) ) 2 ≅ K j 3 . By Theorem 8, for Q = | K j | one has
    N ( A ( j ) ) = 4 Q 2 + 3 Q + 6 , s = 1 diag ( 1 , 0 , 0 ) , 2 Q 2 + 3 Q + 6 , s = 2 diag ( 1 , 1 , 0 ) , 2 Q 2 + 3 Q + 6 , s = 3 diag ( 1 , ϑ , 0 ) , 2 Q 2 + 2 Q + 6 , s = 4 diag ( 1 , 1 , 1 ) .
    In particular, no quadratic character conditions occur in the ideal counts for type ( 3 , 1 ) .
    (i) 
    Class R ( 3 , 1 ) ( 1 ) (rank 1: diag ( 1 , 0 , 0 ) ). For ( Q 1 , Q 2 , Q 3 ) = ( 3 , 3 , 9 ) :
    N ( A ( 1 ) ) = 4 · 3 2 + 3 · 3 + 6 = 51 , N ( A ( 2 ) ) = 51 , N ( A ( 3 ) ) = 4 · 9 2 + 3 · 9 + 6 = 357 .
    Hence
    N 1 R ( 3 , 1 ) ( 1 ) , 4 = 51 2 · 357 .
    (ii) 
    Class R ( 3 , 1 ) ( 2 ) (rank 2: diag ( 1 , 1 , 0 ) ).
    N ( A ( 1 ) ) = 2 · 3 2 + 3 · 3 + 6 = 33 , N ( A ( 2 ) ) = 33 , N ( A ( 3 ) ) = 2 · 9 2 + 3 · 9 + 6 = 195 .
    Hence
    N 1 R ( 3 , 1 ) ( 2 ) , 4 = 33 2 · 195 .
    (iii) 
    Class R ( 3 , 1 ) ( 3 ) (rank 2: diag ( 1 , ϑ , 0 ) ). This class has the same rank as (ii), hence the same local ideal counts:
    N ( A ( 1 ) ) = 33 , N ( A ( 2 ) ) = 33 , N ( A ( 3 ) ) = 195 ,
    so
    N 1 R ( 3 , 1 ) ( 3 ) , 4 = 33 2 · 195 .
    (iv) 
    Class R ( 3 , 1 ) ( 4 ) (rank 3: diag ( 1 , 1 , 1 ) ).
    N ( A ( 1 ) ) = 2 · 3 2 + 2 · 3 + 6 = 30 , N ( A ( 2 ) ) = 30 , N ( A ( 3 ) ) = 2 · 9 2 + 2 · 9 + 6 = 186 .
    Hence
    N 1 R ( 3 , 1 ) ( 4 ) , 4 = 30 2 · 186 .
This example illustrates that, for fixed ( q , n , λ ) = ( 3 , 4 , 1 ) and CRT degrees ( 1 , 1 , 2 ) , the total number of λ-constacyclic codes varies substantially with the canonical type ( 3 , 1 ) class, i.e., the rank class s of the induced bilinear form.

5.2. Type ( 2 , 2 )

Assume that R has radical type ( 2 , 2 ) , i.e.,
ρ 1 = dim F q ( N / N 2 ) = 2 , ρ 2 = dim F q ( N 2 ) = 2 ,
and assume throughout that char ( F q ) ≠ 2 . In odd characteristic, Theorem 3 yields three canonical isomorphism classes, R ( 2 , 2 ) ( 1 ) , R ( 2 , 2 ) ( 2 ) , R ( 2 , 2 ) ( 3 ) , distinguished by the invariant | Σ ( L ) | ∈ { 2 , 1 , 0 } .
Theorem 9.
Assume that char ( F q ) ≠ 2 and let R be a commutative type ( 2 , 2 ) ring of order q 5 . Fix an index i and set K = K i and Q = | K | . Let A i be the i-th local CRT factor. Then, A i is a commutative type ( 2 , 2 ) local ring over K, and the number of ideals of A i depends only on the canonical class of R (equivalently, on | Σ ( L ) | ) as follows:
N ( A i ) = 4 Q + 6 , R ≅ R ( 2 , 2 ) ( 1 ) ( | Σ ( L ) | = 2 ) , 3 Q + 6 , R ≅ R ( 2 , 2 ) ( 2 ) ( | Σ ( L ) | = 1 ) , 4 Q + 6 , R ≅ R ( 2 , 2 ) ( 3 ) ( | Σ ( L ) | = 0 and χ K ( ϑ ) = 1 ) , 2 Q + 6 , R ≅ R ( 2 , 2 ) ( 3 ) ( | Σ ( L ) | = 0 and χ K ( ϑ ) = − 1 ) ,
where ϑ ∈ F q × is the fixed nonsquare parameter appearing in the canonical presentation of R ( 2 , 2 ) ( 3 ) in Theorem 3, and χ K denotes the quadratic character of K × (extended by χ K ( 0 ) = 0 ). Consequently,
N λ ( R , n ) = ∏ i = 1 t N ( A i ) .
Proof. 
Fix i and set K = K i , Q = | K | . By Lemma 8, A i has residue field K and radical type ( 2 , 2 ) over K. Equivalently, after scalar extension, one may identify A i with a type ( 2 , 2 ) local K-algebra R ˜ having maximal ideal m = J ( R ˜ ) satisfying
m 3 = 0 , m m 2 = 0 , V = m / m 2 ≅ K 2 , W = m 2 ≅ K 2 .
Multiplication induces a symmetric K-bilinear map:
μ : V × V → W , μ ( x ¯ , y ¯ ) = x y ( mod m 3 = 0 ) .
Choose a K-linear section s : V → m so that m = s ( V ) ⊕ W as K-vector spaces and s ( u ) s ( v ) = μ ( u , v ) ∈ W for all u , v ∈ V .
  • Step 1. Let I ⊆ R ˜ be a proper ideal. Then I ⊆ m . Define
    U = π ( I ) ≤ V , U 2 = I ∩ W ≤ W ,
    where π : m ↠ V is the quotient map. Fix a pair ( U , U 2 ) . Any K-subspace I ≤ m with π ( I ) = U and I ∩ W = U 2 is the graph of a K-linear map φ : U → W / U 2 . Hence, the number of such subspaces is
    | Hom K ( U , W / U 2 ) | = Q dim U · ( 2 − dim U 2 ) .
  • Step 2. Since W m = 0 and m = s ( V ) ⊕ W , for u ∈ U and v ∈ V one has
    m · ( s ( u ) + W ) = s ( V ) · s ( u ) = μ ( V , u ) ⊆ W .
    Therefore, the condition m I ⊆ I is equivalent to
    μ ( U , V ) ⊆ U 2 ,
    which depends only on the pair ( U , U 2 ) .
  • Step 3. Combining Steps 1 and 2, the number of proper ideals of R ˜ equals
    { I ≤ R ˜ : I ⊆ m } = ∑ U ≤ V , U 2 ≤ W μ ( U , V ) ⊆ U 2 Q dim U · ( 2 − dim U 2 ) .
    Finally,
    N ( A i ) = N ( R ˜ ) = 1 + { I ≤ R ˜ : I ⊆ m } .
  • Case R ( 2 , 2 ) ( 1 ) ( | Σ ( L ) | = 2 ). Choose bases V = ⟨ x , y ⟩ K and W = ⟨ z , w ⟩ K such that x 2 = z , y 2 = w , and x y = 0 . Equivalently, μ ( ( a , b ) , ( c , d ) ) = a c z + b d w . Then, μ ( U , V ) = 0 if and only if U = 0 ; μ ( U , V ) is one-dimensional if and only if U is one of the two coordinate lines; and otherwise, μ ( U , V ) = W . Evaluating (46),
(i) 
dim U = 0 : contribution G 2 ( Q ) = Q + 3 .
(ii) 
dim U = 1 : the two special lines contribute 2 ( Q + 1 ) ; the remaining Q − 1 lines contribute ( Q − 1 ) · 1 . The total contribution is 3 Q + 1 .
(iii) 
dim U = 2 : U = V , and only U 2 = W is admissible, contributing 1.
Hence, | { I ⊆ m } | = ( Q + 3 ) + ( 3 Q + 1 ) + 1 = 4 Q + 5 , so N ( A i ) = 4 Q + 6 .
  • Case R ( 2 , 2 ) ( 2 ) ( | Σ ( L ) | = 1 ). Choose bases such that x 2 = w , y 2 = 0 , and x y = z , i.e., μ ( ( a , b ) , ( c , d ) ) = ( a d + b c ) z + a c w . Then μ ( ⟨ y ⟩ , V ) = ⟨ z ⟩ , and μ ( U , V ) = W for every line U ≠ ⟨ y ⟩ . Evaluating (46) gives | { I ⊆ m } | = ( Q + 3 ) + ( 2 Q + 1 ) + 1 = 3 Q + 5 , hence N ( A i ) = 3 Q + 6 .
  • Case R ( 2 , 2 ) ( 3 ) ( | Σ ( L ) | = 0 ). Choose bases such that x 2 = z , y 2 = ϑ z , and x y = w , i.e., μ ( ( a , b ) , ( c , d ) ) = ( a c + ϑ b d ) z + ( a d + b c ) w . For a line U = ⟨ ( a , b ) ⟩ ≤ V , one has dim μ ( U , V ) = 1 if and only if there exists ( c , d ) ≠ 0 with μ ( ( a , b ) , ( c , d ) ) = 0 , equivalently
    a 2 − ϑ b 2 = 0 .
    Thus, if χ K ( ϑ ) = − 1 , then (47) has no nontrivial solution and every line satisfies μ ( U , V ) = W ; if χ K ( ϑ ) = 1 , then there are exactly two solution lines and all other lines satisfy μ ( U , V ) = W . Evaluating (46) yields
    N ( A i ) = 2 Q + 6 , χ K ( ϑ ) = − 1 , 4 Q + 6 , χ K ( ϑ ) = 1 .
    The global product formula follows from Equation (42).
□
Remark 10.
Let ϑ ∈ F q × be a fixed nonsquare and let K = F q d . Then, χ K ( ϑ ) = ( − 1 ) d . Equivalently, ϑ is a square in K if and only if d is even.
In all cases,
N λ ( R , n ) = ∏ i = 1 t N ( A i ) , Q i = q d i .
Example 2.
Let R be a finite local ring with
| R | = 5 5 , N 3 = 0 ≠ N 2 ,
and radical type ( 2 , 2 ) :
dim F 5 ( N / N 2 ) = 2 , dim F 5 ( N 2 ) = 2 .
Set
A = R [ X ] / ⟨ X 6 + 1 ⟩ .
Since gcd ( 6 , 5 ) = 1 , the polynomial X 6 + 1 is separable over F 5 .
  • Step 1: Factorization over F 5 and CRT degrees. In F 5 [ X ] , we have
    X 6 + 1 = ( X 2 + 1 ) ( X 4 − X 2 + 1 ) .
    Because − 1 ≡ 4 is a square in F 5 , one has
    X 2 + 1 = ( X − 2 ) ( X + 2 ) .
    Moreover,
    X 4 − X 2 + 1 = ( X 2 + 2 X − 1 ) ( X 2 − 2 X − 1 ) ,
    and each quadratic factor is irreducible over F 5 (its discriminant equals 4 − 4 ( − 1 ) = 8 ≡ 3 , which is a nonsquare in F 5 ). Thus,
    X 6 + 1 = ∏ j = 1 4 f j ( X ) , ( f 1 , f 2 , f 3 , f 4 ) = ( X − 2 , X + 2 , X 2 + 2 X − 1 , X 2 − 2 X − 1 ) ,
    with degrees
    ( d 1 , d 2 , d 3 , d 4 ) = ( 1 , 1 , 2 , 2 ) .
    Let
    K j = F 5 [ X ] / ⟨ f j ( X ) ⟩ , Q j = | K j | = 5 d j .
    Then
    K 1 ≅ K 2 ≅ F 5 , K 3 ≅ K 4 ≅ F 25 , ( Q 1 , Q 2 , Q 3 , Q 4 ) = ( 5 , 5 , 25 , 25 ) .
    Let F j be monic Hensel lifts of f j to R [ X ] and set
    A ( j ) = R [ X ] / ⟨ F j ( X ) ⟩ .
    By the Chinese remainder theorem,
    A ≅ ∏ j = 1 4 A ( j ) , N − 1 ( R , 6 ) = ∏ j = 1 4 N A ( j ) .
  • Step 2: Quadratic character values over K j . Let χ K j denote the quadratic character on K j × (extended by χ K j ( 0 ) = 0 ). Fix a nonsquare ϑ ∈ F 5 × (so ϑ ∈ { 2 , 3 } ), as in the canonical presentation of R ( 2 , 2 ) ( 3 ) in Theorem 3. For K 1 ≅ K 2 ≅ F 5 , we have χ F 5 ( ϑ ) = − 1 by the definition of ϑ. For K 3 ≅ K 4 ≅ F 25 (a degree-2 extension), every element of F 5 × becomes a square in F 25 × , hence
    χ F 25 ( a ) = 1 for all a ∈ F 5 × , in particular χ F 25 ( ϑ ) = 1 .
  • Step 3: Local ideal counts. By Theorem 9, the number of ideals of a local factor A ( j ) depends on the canonical class of R (equivalently, on | Σ ( L ) | ) and on Q j = | K j | .
    (i) 
    If R ≅ R ( 2 , 2 ) ( 1 ) (so | Σ ( L ) | = 2 ), then
    N A ( j ) = 4 Q j + 6 .
    Hence,
    N A ( 1 ) = N A ( 2 ) = 4 · 5 + 6 = 26 , N A ( 3 ) = N A ( 4 ) = 4 · 25 + 6 = 106 .
    (ii) 
    If R ≅ R ( 2 , 2 ) ( 2 ) (so | Σ ( L ) | = 1 ), then
    N A ( j ) = 3 Q j + 6 .
    Hence,
    N A ( 1 ) = N A ( 2 ) = 3 · 5 + 6 = 21 , N A ( 3 ) = N A ( 4 ) = 3 · 25 + 6 = 81 .
    (iii) 
    If R ≅ R ( 2 , 2 ) ( 3 ) (so | Σ ( L ) | = 0 ), then
    N A ( j ) = 4 Q j + 6 , χ K j ( ϑ ) = 1 , 2 Q j + 6 , χ K j ( ϑ ) = − 1 .
    Using χ K 1 ( ϑ ) = χ K 2 ( ϑ ) = − 1 and χ K 3 ( ϑ ) = χ K 4 ( ϑ ) = 1 , we obtain
    N A ( 1 ) = N A ( 2 ) = 2 · 5 + 6 = 16 , N A ( 3 ) = N A ( 4 ) = 4 · 25 + 6 = 106 .
  • Step 4: Global enumeration. Combining the local counts yields
    N − 1 ( R , 6 ) = 26 2 · 106 2 , R ≅ R ( 2 , 2 ) ( 1 ) ( | Σ ( L ) | = 2 ) , 21 2 · 81 2 , R ≅ R ( 2 , 2 ) ( 2 ) ( | Σ ( L ) | = 1 ) , 16 2 · 106 2 , R ≅ R ( 2 , 2 ) ( 3 ) ( | Σ ( L ) | = 0 ) .
This example shows that for fixed ( q , n , λ ) = ( 5 , 6 , − 1 ) , the CRT degrees are ( 1 , 1 , 2 , 2 ) and the total number of negacyclic codes depends on the canonical class of the underlying type ( 2 , 2 ) ring. In particular, in the anisotropic class R ( 2 , 2 ) ( 3 ) , the local counts split according to whether the CRT residue field degree is odd or even, via the quadratic character values χ K j ( ϑ ) .

6. Conclusions

In this work, we obtained a structural and enumerative description of λ -constacyclic codes of length n over finite commutative local rings R of order q 5 with N 3 = 0 ≠ N 2 , under the standing assumption gcd ( n , p ) = 1 . Exactly two radical types occur, namely ( 3 , 1 ) and ( 2 , 2 ) , both fitting into a unified residual–torsion framework arising from the radical filtration of
A λ = R [ X ] / ⟨ X n − λ ⟩ .
Every λ -constacyclic code is realized as an ideal of A λ , encoded by a residual component over the semisimple algebra S = A λ / J ( A λ ) together with two torsion layers inside J ( A λ ) . This layered description provides explicit generating sets and reduces global enumeration to local computations over finite extensions of F q via the Chinese remainder decomposition A λ ≅ ∏ i = 1 t A i .
For radical type ( 2 , 2 ) , the local ideal counts depend only on the field sizes Q i = q d i and the determinant-locus invariant | Σ ( L ) | , with an additional quadratic-character split in the anisotropic class. For type ( 3 , 1 ) , the counts are governed by the induced symmetric bilinear form on J ( A i ) / J ( A i ) 2 ; equivalently, they are governed by the rank class of a canonical matrix representing multiplication on the top radical layer (or, equivalently, by r s = dim K i Rad ( b s ) ). Combining the local formulas yields the closed product expression
N λ ( R , n ) = ∏ i = 1 t N ( A i ) ,
explicitly in terms of the factor degrees d i and the canonical isomorphism class of R.
For convenience, we summarize the local counts N ( A i ) in Table 3, where Q = Q i = q d i and K i = F q [ X ] / ⟨ f i ( X ) ⟩ .
Table 3. Local ideal counts N ( A i ) for the CRT factors A i .
The methods developed here provide a unified framework for constacyclic codes over cube-zero local rings of order q 5 and suggest several natural extensions. These include analogous classifications for larger orders (e.g., q 6 ) and for higher nilpotency indices ( N ℓ = 0 with ℓ > 3 ), where additional radical layers and multilinear structures are expected to play a decisive role.

Author Contributions

Conceptualization, S.H.S.; methodology, S.H.S.; software, S.H.S. and S.A.; validation, S.H.S.; formal analysis, S.H.S.; investigation, S.H.S.; data curation, S.A.; writing—original draft, S.H.S.; writing—review and editing, S.H.S. and S.A.; visualization, S.A.; funding acquisition, S.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Ongoing Research Funding program, (ORF-2026-839), King Saud University, Riyadh, Saudi Arabia.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Raghavendran, R. Finite associative rings. Compos. Math. 1969, 21, 195–229. [Google Scholar]
  2. McDonald, B.R. Finite Rings with Identity; Marcel Dekker: New York, NY, USA, 1974. [Google Scholar]
  3. Whelan, E.A. A note on finite local rings. Rocky Mt. J. Math. 1992, 22, 757–759. [Google Scholar] [CrossRef] [Scilit]
  4. Corbas, B.; Williams, G.D. Rings of order p5, Part II: Local rings. J. Algebra 2000, 231, 691–704. [Google Scholar] [CrossRef] [Scilit]
  5. Kanwar, P.; López-Permouth, S.R. Cyclic codes over the integers modulo pm. Finite Fields Their Appl. 1997, 3, 334–352. [Google Scholar] [CrossRef] [Scilit]
  6. Dinh, H.Q.; López-Permouth, S.R. Cyclic and negacyclic codes over finite chain rings. IEEE Trans. Inf. Theory 2004, 50, 1728–1744. [Google Scholar] [CrossRef] [Scilit]
  7. Kim, B.; Lee, Y. Classification of self-dual cyclic codes over the chain ring Zp[u]/⟨u3⟩. Des. Codes Cryptogr. 2020, 88, 2247–2273. [Google Scholar] [CrossRef] [Scilit]
  8. Bonnecaze, A.; Udaya, P. Cyclic codes and self-dual codes over F2+uF2. IEEE Trans. Inf. Theory 1999, 45, 1250–1255. [Google Scholar] [CrossRef] [Scilit]
  9. Saif, S.H. Constructions and enumerations of self-dual and LCD double circulant codes over a local ring. Mathematics 2025, 13, 3527. [Google Scholar] [CrossRef] [Scilit]
  10. Choi, H.S.; Kim, B. Various structures of cyclic codes over the non-Frobenius ring Fp[u,v]/⟨u2,v2,uv,vu⟩. Adv. Math. Commun. 2024, 18, 304–327. [Google Scholar] [CrossRef] [Scilit]
  11. Castillo-Guillén, C.A.; Rentería-Márquez, C.; Tapia-Recillas, H. Constacyclic codes over finite local Frobenius non-chain rings with nilpotency index 3. Finite Fields Their Appl. 2017, 43, 1–21. [Google Scholar] [CrossRef] [Scilit]
  12. Li, S.; Shi, M.; Liu, H. Several constructions of optimal LCD codes over small finite fields. Cryptogr. Commun. 2024, 16, 779–800. [Google Scholar] [CrossRef] [Scilit]
  13. Alabiad, S.; Alhomaidhi, A.A. Frobenius local rings of length 5 and index of nilpotency 3. Mathematics 2025, 13, 781. [Google Scholar] [CrossRef] [Scilit]
  14. Wood, J. Duality for modules over finite rings and applications to coding theory. Am. J. Math. 1999, 121, 555–575. [Google Scholar] [CrossRef] [Scilit]
  15. Shi, M.; Huang, D.; Sok, L.; Solé, P. Double circulant self-dual and LCD codes over Galois rings. Adv. Math. Commun. 2019, 13, 171–183. [Google Scholar] [CrossRef] [Scilit]
  16. Nijenhuis, A.; Solow, A.E.; Wilf, H.S. Bijective methods in the theory of finite vector spaces. J. Comb. Theory Ser. A 1984, 37, 80–84. [Google Scholar] [CrossRef] [Scilit]
  17. Saif, S.H.; Alkhamees, Y. Enumeration of Frobenius local rings of order p6r via bilinear forms. Symmetry 2026, 18, 285. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.