1. Introduction
This article assumes that all rings have an identity element, are finite, and are commutative with a residue field of order 
, it is denoted by 
, where 
p is a prime number. Furthermore, it is supposed that all modules over these rings are considered to be finitely generated. A ring 
R is said to be local if it has a unique maximal ideal, represented by 
J, called the radical of 
R. In the event that each ideal within 
R is generated with one element, 
R is a principal ideal ring (PIR). A very special class of PIRs appears when 
J is principal; this is called the class of chain rings [
1,
2]. Let 
M be a module over 
R. The total sum of all minimal 
R-submodules of 
M is defined as the socle of 
M, or 
. A ring 
R is said to be Frobenius if 
 when 
R is considered as an 
R-module. In this paper, we single out Frobenius rings because of their significant role in coding theory. The fact that Frobenius rings meet both MacWilliams theorems is one of the key reasons they are thought to be the proper class to characterize codes. Moreover, we can relate the symmetrized weight enumerators of codes and their duals, and determine the generating characters by breaking down Frobenius local rings into their primary components. For more information on the characterization of Frobenius rings, we recommend [
3,
4], and for symmetrized weight enumerators of linear codes over these rings, see [
5,
6,
7].
Local rings of length 
 and 
 have their 
J principal, and thus they are chain rings. There is only one local ring with 
 elements: the Galois field 
. While, the local rings of length 
, i.e., of order 
 are: 
 and 
. When 
, the classes of local rings of order 
 are: If 
p is odd, the Frobenius local rings are: 
, 
, 
 and 
, where 
 is a generator of the multiplication group 
 If 
, the Fobenius local rings are: 
, 
 and 
 (see [
2]). The rings 
, 
, 
 and 
 are not Frobenius local rings, because the annihilator of their maximal ideals soc
 is not a simple ideal, and the other rings are chain rings.
If 
A is an 
R-module over a finite local ring 
R with residue field 
 and 
l is the length of 
A, the relation 
, explained later in the Preliminary section, implies that if 
R is a Frobenius local ring with 
 elements, then 
R has length 
. However, we show later that there are many finite Frobenius local non-chain rings of length 4 for various values of the nilpotency index 
t, of 
J, where 
. A particular class of such rings was considered in the literature when examining constacyclic codes [
8], where 
 and 
. The  ring 
, with 
 elements was introduced in [
7], where linear codes over this alphabet have been examined. It was recently demonstrated in [
6] that when linear codes over a specific class of these rings were determined, the significance of Frobenius local rings of order 
 was established. More recently, authors of [
2] studied linear codes over local rings of order 
. This paper aims to accomplish two goals. The structure of finite Frobenius local rings of length four 
 (i.e., with nilpotency index less than or equal four) must first be concluded. Secondly, the classification up to isomorphism of finite Frobenius rings is determined and the classes are enumerated with respect to their invarinats 
. All Frobenius local non-chain and chain rings with 
 elements are subsequently listed in 
Table 1; those with 16 and 256 elements are particularly noteworthy. Note that, in the table, * means that there are exactly two copies of such rings.
The study is organized as follows: basic information regarding finite local rings and their modules is reviewed in 
Section 2. Consequently, we conclude our determination of all Frobenius local rings with 
 elements in 
Section 3. Of particular, those rings with 
, 16, and 256 elements are provided. The section was divided into two subsections, 
 and 
, according to the values of the index of nilpotency of 
J. A few examples illustrate the main findings are provided in the section.
  2. Preliminaries
This section addresses the basic information and notations that used in our analysis. In the discussion that follows, 
J is the radical of 
R, a finite local ring. Moreover, 
 means the ring of polynomials with coefficients in 
R, and 
 is denoted to the ideal generated by the element 
y of 
R. Regarding the outcomes stated here, we refer readers to  [
2,
3,
9,
10,
11,
12,
13].
Recall, in particular, that a ring 
R with a single maximum ideal 
J is referred to as local, and the 
. The index of nilpotency of 
J is a positive integer 
t such that 
 but 
. Now, when 
R is a finite local ring, by Nakayamas’ Lemma [
12], then there exists ideals sequence,
      
Suppose that 
S is a ring and that 
M is an 
R-module. If 
, then 
S is called an extension of 
R. Let 
I be an ideal of 
R, then the ideal 
 means the expansion of 
I to 
S. For any module 
M over 
R, the annihilator ideal is 
. Denote the set of all 
R-submodules of 
M by 
. The set of ideals of 
R, 
, if 
, will be referred as 
. Moreover, the 
-module on 
M has a natural structure for any ideal 
I of 
R that is contained in the annihilator of 
M. The scalar multiplication is 
, where 
 and 
, so the lattice of 
R-submodules and 
-submodules of 
A are the same. Suppose we have a strict inclusion sequence of 
R-submodules,
      
Such a chain is said to have length 
l, which is the number of joints. If all 
R-modules 
 do not have a non-zero proper submodule or 
 is a non-zero simple module, then the chain (
2) is a composition series. A finite composition series for 
M may not exist, so the Jordan–Holder–Schreier Theorem [
10] states that the length of a composition series for 
M, represented by 
, if it is finite or 
∞, otherwise. Remember that these kinds of series have no relevance on the length 
. It follows that if 
, then the dimension of a 
-module is equal to that of the 
-vector space. Equations (
1) and (
2) implies that 
, and if 
M admits a composition series over 
R, as in Equation (
2), so 
 if they are considered as vector spaces over 
. Thus, as a direct result, we have
      
Suppose 
, where 
R is a finite local ring, as direct consequences from Equation (
3), there are 
l and 
m with order of 
J is 
 provided 
, and the size of 
R, is 
. Also the characteristic of 
R is 
, where 
. In addition, 
R has a prime subring 
 of the form 
, called Galois ring with 
. There are also 
, where 
 with (as 
-module)
      
The set of elements 
 are generators of 
J [
14].
A finite local ring 
R is Frobenius if its only minimal ideal is 
, which is simple. Equivalently, 
R is Frobenius if 
, where 
 is a direct sum of all minimal ideals of 
R. For Frobenius local rings, 
 [
3,
4].
However, the converse is not true in general as we explained later. The family of Frobenius rings is large including finite chain and non-chain rings such as 
 and 
, where 
. We recommend [
2,
7], for more examples.
  3. Frobenius Local Rings of Order 
From now on, 
R is a Frobenius local ring with 
 and 
k, then by taking different values of 
n and 
k, we shall prove, in this section, all possible structures of 
R and their enumeration. As 
, then 
R has a possible form as 
—module of
      
      where 
 and 
. The group units of 
R, 
 is largely involved in the process of obtaining the construction of 
R. The structure of 
 has been completely captured in [
15],
      
      where 
. Suppose that 
, and for every 
i, 
 is the least positive integer satisfying 
. Since 
, thus
      
Moreover, since 
 for each 
i. We shall observe that the shape and algebraic structure of 
R are entirely determined by the parameters 
.
For the purpose of simplicity, we need to set 
 as a primitive element of 
 and
      
Next, we establish a very helpful relation among a local ring’s parameters , which will reveal how to construct such a ring.
Proposition 1. If R is a Frobenius local ring, then soc.
 Proof.  As soc is principle, then so  because  soc. Furthermore, soc and . Thus, we have soc.    □
 The following example is very useful, since it shows that ann
 is not necessarily 
 as it was claimed in [
8]. In any way, 
 soc
. However, this is true when 
R is a Frobenius ring as in Proposition 1.
Example 1. Let . Then, , and . This implies, by Theorem 1, that R is not Frobenius. This is true because  while soc. This means,  soc. This example shows also that the condition ann is necessary.
 Suppose 
M be a 
R-module. A subset 
X of 
A spans 
M if its image 
 in 
 generates 
. A set of generators of 
A derived from lifting a basis of the 
-vector space 
 is defined a minimal generating set for 
M over 
R and it is denoted by 
. Note that
      
If 
, so
      
Proposition 2. Let . Then,where  is the largest number such that .  Proof.  Assume that , then . We consider two cases: When . The case when , R is chain, and hence . For the second case, non-chain, we have , i.e., . Thus, . Since ,  because . Then, . As  and , then  if , and , when .    □
 The following results establish powerful tools in characterizing Frobenius local rings based just on their invariants . First, we denote  the least positive integer such that . Suppose that , then . Also , where  and . Note that  when  and .
Theorem 1. assume R is a local non-chain ring with . Then, R is Frobenius if and only if ann and .
 Proof.  First, assume 
R is Frobenius, then 
 is simple and unique. In addition, 
 is principal, and hence we set 
. This implies that 
. Because 
, then one can see that 
 and 
, and hence
        
        where 
 but not both 0. Subsequently, 
. However, since 
, then 
. Hence, 
. Now, we consider two cases to proceed. When 
, so 
, and hence 
 in the annihilator of 
J, and thus 
, i.e., 
. For the second direction, suppose that 
. Since 
 from Equation (
8), 
 and 
, which leads to 
. Thus, 
 and 
ann
. Conversely, suppose 
. Then, 
 and 
. Consequently, 
 when 
 and 
 when 
. Which means that 
R is Frobenius.    □
 Based on the previous results, we get
      
Proposition 3. Suppose  and , then any local ring with such specifications is not Frobenius.
 Proof.  Note that, we have , which means . Moreover, by Proposition 1, we get ann which is not principal since .    □
 Proposition 4. Let R be a local ring with . Then, R is a chain ring. Moreover, .
 Proof.  Let 
R be a local ring with invariants 
. Since 
 and 
. Then, consider the following chain
        
        is composition, and thus 
, where 
. In particular, 
 must be 1 since 
. This indicates 
J is principal, and so 
R is chain, and 
 for all 
i. Therefore, 
.    □
   3.1. Frobenius Local Non-Chain Rings of Order 
In this subsection, we investigate Frobenius non-chain rings. In light of Proposition 4, we have . As well by Proposition 3, the value of the index of nilpotency of our rings in this part is .
Theorem 2. Let R be a local ring with  with . Then, R is Frobenius if and only if  for all i.
 Proof.  Since  and , then . If R is Frobenius, then ann. As , then , where , without loss of generality, is equal to , where . This means s are not in ann. For the converse, since  ann, then  for some i, and thus  must be generated by . Thus, ann, so R is Frobenius.    □
 We provide an example showing that the condition ann of Theorem 2 can not be relaxed.
Proposition 5. Suppose . Then, the generators of J satisfy only one of  Proof.  Since 
, then 
. Moreover, 
, and hence 
 and 
. Thus, the generators of 
J are 
 and 
w
          where 
w is one of 
 or 
. The case when 
 is equivalent to that when 
, and so there is only two cases. If 
, then 
 and we get
          
          where 
. In fact, if 
, then 
, and thus soc
 and this leads to 
R is not Frobenius. Now, if 
 and 
, then using the correspondence 
 and 
, we acquire 
. While if 
, i.e., 
, then we get 
. On the other hand, if 
, then we have 
 in general. Thus, 
. Finally, when 
. If either 
 or 
, where 
, hence we set 
 and 
 or 
 and 
 and therefore we return to the first case. We suppose 
, take 
 and 
 when 
, which reduces the situation to that when 
. When 
, this is however not true, since 
 and all elements of 
 of 
 have square zero and the elements 
u and 
v of 
 such that 
, therefore, 
.    □
 Theorem 3. Let R be a ring with  elements and characteristic p. Then, R is isomorphic to  Proof.  In the light of Proposition 5, we have if 
,
          
Thus, we have 2 rings with these characterizations, namely
          
Such rings are not isomorphic when 
 because if they are, we get 
 which is impossible since 
 However, 
 is equivalent to 
. Suppose that the two rings are isomorphic. There exist 
 such that 
 and 
 are the minimal generators of 
J. These generators hold the relations of 
u and 
v, which result in equations of the form 
, 
 and 
 if and only if 
. Let 
 and 
, we replacing 
 and 
. After necessary calculations, we obtain 
, where 
. Thus, we return to the first case, and so 
 or 
 depending on 
 is in 
B or in 
A, respectively. Assume 
, then by Proposition 5, we have
          
As we pointed out in the proof of the same proposition, these two rings are not isomorphic. In conclusion, we obtained 4 rings (
 and 
),
          
□
 Example 2. Assume . Since ann, then by Theorem 2, R is not Frobenius. Indeed, ann.
 Proposition 6. Suppose R is Frobenius local ring with . Then,  Proof.  First, suppose 
. Then, no such Frobenius rings because of completing squares will lead to 
 when 
. Moreover, we have 
 if 
. For such a case, soc
 is not simple, so 
R is not Frobenius. Secondly, if 
, which menas 
. As 
 is cyclic, then 
 and so 
. As a result of that, we get
          
Since 
ann
, then 
. Now, if 
 and 
, then if 
 or 
, we get 
 similar to Proposition 5. Moreover, if 
, thus 
R is Frobenius if and only if 
 and 
. Suppose 
, 
 and 
. As 
, 
 and 
.    □
 Theorem 4. Let R be a Frobenius ring of order  and . Then, R is  Proof.  Observe that 
. By Proposition 6, put
          
          in which 
. In fact, if 
 and 
, gives 
 by 
 and 
. In addition, when 
 and 
, we have 
 by letting 
. Let 
 and 
. Substitute 
u with 
 and 
 with 
v, so 
, 
, 
 provided that 
. So,
          
Hence, in general, 
. We conclude with the main case where 
 and 
 are in 
A. Given this, 
, where 
, can be found in 
B. This is the same as having 
 and 
, or having 
 and 
. However, we have
          
This means if 
, we get 
 and when 
, we have 
. If we let 
 or 
, then we get
          
Observe,
          
          while when 
, we have more copy,
          
□
 This example explains that if  when , R is not Frobenius.
Example 3. Suppose that . Hence, , and . This implies, by Theorem 1, that R is not Frobenius. In fact,  while soc. Which means that  soc.
 Proposition 7. If , then any Frobenius ring with  and residue field  holds the following relation,where .  Proof.  The order 
R explains that 
, 
 and also 
, which means
          
Note that if 
, then 
, contradiction, since 
. By 
, then 
. Also note that 
, and so 
, where 
. Suppose 
, then 
, and hence 
ann
 which is contradiction as 
R is Frobenius. Thus, 
. When 
, we get a similar relation, which is 
.    □
 Theorem 5. If , then any Frobenius ring with  and residue field  is  Proof.  Since 
, then we must have 
 by Proposition 7. Now, If 
, then 
, which is impossible, and thus we have always 
. Which means that 
 are the minimal generating of 
J, i.e., 
, and so
          
But since the order of 
R is 
, then 
. Furthermore, since 
R is Frobenius, then 
 because otherwise we would have 
 and 
u are elements of the socle of 
R, and hence soc
 is not simple. Thus, 
, and since soc
 is cyclic, therefore 
. As a result, we have the following relations
          
          where 
. Hence, 
 or 
. First note that there are 
 and 
, which are not isomorphic, according to 
 and 
, respectively. Additionally, 
 if and only if 
. In case when 
, only one class of such ring exists, which is 
 since 
, and hence 
. To conclude, we acquire 2 rings (
) and one ring (
).    □
   3.2. Frobenius Local Chain Rings of Order 
Remember that under set-theoretic inclusion, a finite ring 
R is termed to be a chain ring if its ideals is a unique sequence. The ring 
R is chain if and only if 
R is local and its maximum ideal 
J is primary, if and only if 
. Being said that, we get 
 for 
. Moreover, 
, furthermore, it can be observed that 
, i.e., 
. There is also 
 with 
 and 
. Note that,
        
        where 
 is a unit. This means 
u is a root of 
,
        
The numbers 
p, 
n, 
m, 
l and 
k are linked with 
R,
        
According to [
7], this extension is known as an Eisenstein extension of 
R over 
. The element 
 is referred as a basic irreducible if 
 is irreducible over 
. Now, assume 
 is a basic irreducible polynomial and 
, then, in this case, there exist a unit 
 in 
 and a monic polynomial 
f in 
 satisfying 
 (see [
10]). Now, if 
, we obtain 
 and
        
        where 
 is a root of a basic irreducible polynomial 
 of degree 
m. The latter extension of 
 is Galois.
Now, in the discussion will follow, we have 
, then 
R is a chain ring, Proposition 4. In such case, 
, let 
. Consider the chain
        
We shall show by considering values for 
n, where 
. If 
, then 
, and hence 
. Thus,
        
Therefore, 
R is a Galois ring with
        
We have 
 is Frobenius. Next, let 
. As 
 and 
, then 
R is formed by
        
There is one ring which is
        
        when 
, we study two possible cases. The first theorem will handle the case 
. While Theorem 7 investigates 
R when 
.
Theorem 6. Suppose that R is Frobenius ring with  and . Then, the classes of R are given by  Proof.  Put 
, so 
. Also, we get 
, and therefore by [
7],
          
We have 
, and it follows 
 since 
, in the event of 
.
          
If 
 and 
, by enforcing square’s completing, we obtain 
. However, let 
, then 
 and 
. The socle of 
R is 
, thus it is not Frobenius. The case when 
, then
          
Thus, when 
, there are 2 classes. In contrast, when 
 we get two identities which are 
 and 
. The first relation 
 is not chain. While when 
, then 
 and we are back to a studied case. As a summary,
          
Henceforth,
          
□
 Theorem 7. Given that R is a ring with  and . So, R iswhere .  Proof.  Because 
, then we have 
, i.e., 
. The direct sum form of 
R is
          
To characterize 
R, it should be first noted that 
R has 
 as its parameters, see [
2]. Observe 
, and so 
, and thus 
, where 
. If 
, then we have 
 and 
. Thus, 
R, with such specifications, is not Frobenius since soc
 which is not cyclic. However, we go further with assumption that 
, and hence we obtain 
 and 
. Therefore, 
R would be
          
          where 
. Based on results in [
2], the number 
 of 
 has been already captured, which is
          
By other words, we acquire 
 of these rings.    □
 Corollary 1. There are  of rings in Theorem 7. Also, soc, and so the rings are Frobenius.
 Example 4. The ring  is not Frobenius because its socle is not simple. Note that , and also , which means that p and  are in soc, and thus soc.
 However, when , then . As , then , otherwise  since . Now if , then , and thus  which impossible since . We deduce that n can not take 3, i.e., no chain rings with  and .
In summary, when , we list all Frobeius chain and non-chain rings of order  in the following result.
Theorem 8. If R is a Frobenius local ring of 4-length. Then, R is isomorphic to
 As the primary outcomes of this section, we gather the previously established results in the theorem that follows.
Theorem 9. The number of Frobenius local rings of length 4 is determined by  The 
Table 1 gives a full classification of Frobenius local rings of length 4 and of order 
, 16 and 256.