1 Introduction

In statistical mechanics, a key step to calculate the thermodynamics properties of a system in thermal equilibrium is evaluating the partition function, which is a sum of Boltzmann factors over energy levels of the model by including the degeneracy of each energy level. Every allowed energy level of a classical Ising chain specifies one or more microstates by one or more spin configurations. Studies on the values, degeneracy factors, and the number of allowed energy levels for Ising chains are of great importance; therefore, it has been considered by several authors. In quantum statistical mechanics, this can be a much more difficult issue to address, especially when Ising, Heisenberg and Heisenberg-Ising models in different dimensions and lattices are considered. For this, many authors have to investigate the ground state energy of statistical systems in detail and discuss thermodynamics properties at low temperatures. This is justified because the dominant contribution to the partition function arises from the ground state, as the system is not gapless. For example, in Ref. [1], upper and lower bounds have been considered for the ground-state energy of the rectangular one-, two-, and three-dimensional lattices of the Heisenberg-Ising type with anisotropic couplings between nearest neighbors (NNs). The authors have also shown that the ground-state energy per NN pair is not decreased by increasing the dimension of the lattice. In Ref. [2], spin configurations have been considered for the ground state of an Ising model on a flat triangular lattice with the competing interactions between spins at the nearest and next-nearest neighbors (NNNs) as well as a coupling between three spins at the vertices of a NN triangle, and an external magnetic field. In Ref. [3], analytical expressions for the eigenvalues and eigenstates of the Ising Hamiltonians in one-, two- and three-dimensional lattices of arbitrary size have been derived in the absence of an external magnetic field using unitary transformations and combinatorics. The authors have used transfer matrix properties of which the models can include a magnetic field along the z-axis and generalize to a higher number of spin components on each site. The accurate determination of the energy levels and their degeneracy factors in the Ising chains with arbitrary sizes may be very complex, even from the viewpoint of classical statistical mechanics. However, so many attempts have been made to study the spectra of Ising chains, especially on the ground energies. For example, in Ref. [4], the author has studied the degeneracy of the ground state for an open finite one-dimensional chain of Ising spins-\(\frac{1}{2}\) with the ferromagnetic and antiferromagnetic competing interactions for nearest neighbors and kth neighbors, respectively. He has shown that when the magnitude of the ratio of the first coupling constant to the second one is k, the ground state is highly degenerate with the residual entropy per spin. The existence of the ferromagnetic and antiferromagnetic competing interactions in a chain causes all interactions not to be satisfied simultaneously [5,6,7]. In this case, there is no way to simultaneously satisfy all interactions and, consequently, the total energy of the chain cannot be minimized by minimizing all the spin–spin interactions simultaneously. In other words, the ground-state becomes highly degenerate, and some spins behave as free spins. Such a model is generally known in the literature as a frustrated model, and the present paper aims to investigate spin frustration by analyzing energy levels for a two-ring Ising chain with the NN and NNN coupling constants. Some other relevant studies of both classical and quantum-mechanical viewpoints can be mentioned through Refs. [8,9,10,11,12,13,14,15,16].

The authors believe that many issues of analysis and optimization of complex systems in the various fields such as biology, wireless communication, artificial intelligence can be modeled with binary variables and mapped on the basic state of the Ising model. In these papers, different Ising machines have been designated for finding the exact solutions to a variety of hard instances Ising problems. In this regard, a physical system called the coherent Ising machine was designed to calculate the ground states of the Ising-like networks [17,18,19,20,21]. This machine is based on a network of optical oscillators proposed for the Ising problem with specific values of coupling. It calculates the basic states of similar Ising networks and provides relatively accurate or approximate solutions with high accuracy to various Ising problems with more than 100 spins with 10,000 spin-spin connections [22]. For example, in paper [23], the authors simulated a 16-bit coherent Ising machine based on semi-classical models. The 2000-bit system has also been studied in Ref [24]. The significance of this model also has been mentioned in its applications for describing different 1D and quasi-1D systems of various materials, such as a ferroelectric system composed of Ca\(_3\)CoMnO\(_6\)-type chains [25]. In the paper, the magneto-electric coupling of a material using the transfer matrix method was investigated, and the consistency of the results with experience was confirmed. The work was done in the absence of a magnetic field, and the interactions of NN and NNN were considered. The ferroelectric properties of Ca\(_3\)Co\(_{2-{\text{ x }}}\)Mn\(_{\text{ x }}\)O\(_6\), as an Ising chain magnet, have been studied theoretically and experimentally in the works such as [24, 26]. Ising chain also has been found some applications in genetics [23]. In this work, a linear 1D Ising model was studied, and the NN interactions were simulated. The results were comparable to complex genetic algorithms. Ref. [27] is one of the papers in which the conformity of theory with experience was well demonstrated, and the authors have proposed a theoretical approach to obtain magnetic properties and simulate magnetic fields in single-ring magnetic compounds based on spin-Ising rings with a limited number.

Analytical methods have been very useful in evaluating the statistical properties of classical Ising chains incisively. It must be emphasized that the two-ring Ising chains are very well-known in the literature under different names, e.g., ANNNI chain, two-leg ladder, zig-zag ladder, sawtooth chain, delta chain, decorated chain, and so on. Without the knowledge of energy levels and their degeneracy factors, they have been comprehensively studied from different perspectives—exact solutions through the change of variable method and transfer-matrix approach, decoration-iteration transformation, disorder solution, ground-state analysis, frustration, etc. (see, for example, Refs. [28,29,30,31,32,33,34,35,36]). In a recent work [37], by using the Hubbard–Stratonovich transformation without analyzing the energy levels and their degeneracy factors, the author has obtained an exact solution for the partition function of the Ising model with an arbitrary number of spin-\(\frac{1}{2}\) sites and with a nonsingular coupling coefficients matrix, whether there is a nonzero external field or not. This partition function is transformed to Kramers–Wannier and Onsager solutions when the Ising model is considered as the z-components of spins localized at the 1- and 2-dimensional lattice sites, respectively. We have analyzed exactly all energy levels and the degeneracy factors for the two Ising models that are the special cases of [37] and then obtained their partition functions, which are in agreement with the above-mentioned reference. The cyclic chains of even- and odd-site spins-\(\frac{1}{2}\) with the NN and NNN interactions have necessarily three- and two-ring structures, respectively. It is expected that their behaviors will not be different from each other in the thermodynamic limit. In Ref. [38], the contributions of all spin-\(\frac{1}{2}\) sites in the NN and NNN interactions have been studied in the thermodynamic limit when the total number of spins is even. The authors of the latter mentioned reference have used the partition function and analyzed the specific heat capacity per spin in the thermodynamic limit to explain the close competition between ferromagnetic NN and antiferromagnetic NNN interactions for when the value of spin frustration parameter is \(\frac{1}{2}\). This is in agreement with our analytical findings for the ground energy levels in this work, the finite-size Ising chains of odd-site spins-\(\frac{1}{2}\) with the NN and NNN interactions demonstrate the maximal frustration not only for the value \(\frac{1}{2}\) but also for the value 1 of spin frustration parameter, which covers automatically the thermodynamic limit mentioned in the above.

In Refs. [39, 40] we have utilized the change of variable method to obtain the exact expressions for the partition functions of the two- and three-ring Ising chains formed by the NN and NNN coupling constants with an arbitrary number of spins-\(\frac{1}{2}\) in the absence of an external magnetic field. In Ref. [40], we have formulated the allowed energy levels and their degeneracy factors by aggregating data for small sizes of three-ring Ising chains. Then, the standard energy-based method has been used to calculate the partition function of a three-ring Ising chain with an arbitrary even number of spins-\(\frac{1}{2}\), in addition to the method mentioned above. Finally, the validity of our formulation has been justified by comparing partition functions obtained from both methods. Now, the present article, in Sect. 2, formulates the values, degeneracy factors, and the number of the allowed energy levels for the two-ring Ising chains introduced in Ref. [39]. Our analytical considerations in Sect. 3 confirm that the ground levels demonstrate the maximal spin frustration via a competition between ferromagnetic NN and antiferromagnetic NNN couplings in both two-ring Ising chains with any arbitrary (odd and even) number of spins-\(\frac{1}{2}\). We show that the ground levels of the two-ring chains with the odd and even number of spins-\(\frac{1}{2}\) display the maximal frustration for both values \(\frac{1}{2}\) and 1, and only value 1 of the spin frustration parameter, respectively. Section 4 is devoted to considering the low-temperature behavior of entropy and specific heat capacity per spin in the maximally frustrated regime. Finally, Sect. 5 is devoted to summarizing the results of this article.

2 The values, degeneracy factors and number of allowed energy levels for the two-ring Ising chains

For a two-ring Ising spin-\(\frac{1}{2}\) chain with NN and NNN interactions, all and half spins contribute to the second ones depending on whether the number of spins is odd or even, respectively. Therefore, we will deal with two different types of formulation for the Hamiltonian and consequently two distinct formulations for the energy spectrum with the odd and even number of spins in the chain. Firstly, we are going to consider our ansatz on the formulation of the energy spectrum for a two-ring Ising spin-\(\frac{1}{2}\) chain with the odd number of sites.

Remark 1

Let p be an integer number greater than or equal to 2. As illustrated in Fig. 1, consider \(2p+1\) Ising spins \(S_1, S_2, \cdots , S_{2p+1}\, (\equiv \pm 1)\) on a one-dimensional two-ring chain in which all spins contribute to the interaction with their NNs and NNNs via different coupling constants J and K, respectively. Hamiltonian for the chain in Fig. 1 is

$$\begin{aligned} H_{J,K}^{2p+1}=-J\sum _{i=1}^{2p+1}S_{i}S_{i+1}-K\left( \sum _{i=0}^{p}S_{2i+1}S_{2i+3}+\sum _{i=1}^{p}S_{2i}S_{2i+2}\right) , \end{aligned}$$
(1)

with the periodic boundary conditions \(S_{2p+2}\equiv S_1\) and \(S_{2p+3}\equiv S_2\). Let (mn) be an ordered pair of nonnegative integer numbers defined by \(n=0\) for \(m=0\) as well as \(n=\left[ \frac{m+1}{2}\right] , \left[ \frac{m+1}{2}\right] +1, \left[ \frac{m+1}{2}\right] +2,\cdots , p-\left[ \frac{m}{2}\right] \) for \(m=1, 2, 3, \cdots , p\), where the symbol [.] denotes the integer part. Then, the allowed energy levels of the Hamiltonian (1) are

Fig. 1
figure 1

Plot of the two-ring Ising chain with the NN and NNN coupling constants J and K for the spins \(S_1, S_2, \cdots , S_{2p+1}\)

Table 1 The values, degeneracy factors and number of allowed energy levels for the two-ring Ising chains \(p=2, 3, 4, 5\) of Remark 1
$$\begin{aligned} E_{m,n}^{2p+1}(J,K)=\left( 4n-2p-1\right) J+\left( 4m-2p-1\right) K. \end{aligned}$$
(2)

If we denote the degeneracy factor of the energy \(E_{m,n}^{2p+1}\) as \(g_{m,n}^{2p+1}\), then we have

$$\begin{aligned}&g_{0,0}^{2p+1}=2, g_{m,n}^{2p+1}=\frac{2(2p+1)}{m} C_{m-1}^{2n-1} C_{m-1}^{2p-2n}. \end{aligned}$$
(3)

The symbol C: stands for the binomial coefficient. The total number of microstates accessible to the two-ring chain in Fig. 1 is estimated by summation of all possible degeneracy configurations:

$$\begin{aligned} 2^{2p+1}= & {} g_{0,0}^{2p+1}+\sum _{m=1}^{p}\sum _{n=\left[ \frac{m+1}{2}\right] }^{p-\left[ \frac{m}{2}\right] }g_{m,n}^{2p+1} \nonumber \\= & {} 2+2\sum _{m=1}^{p}\sum _{n=\left[ \frac{m+1}{2}\right] }^{p-\left[ \frac{m}{2}\right] } \frac{2p+1}{m} C_{m-1}^{2n-1} C_{m-1}^{2p-2n}. \end{aligned}$$
(4)

Moreover, the number of allowed distinct values for energy is given by

$$\begin{aligned} N^{2p+1}=1+\frac{1}{2}p(p+1). \end{aligned}$$
(5)
Table 2 All possible configurations (up and down) for a two-ring Ising chain of spins \(S_1\), \(S_2\), \(S_3\), \(S_4\) and \(S_5\) with the different exchange coupling constants J and K of NN and NNN interactions, respectively

We introduce two different pieces of evidence in order to confirm the correctness of Remark 1. Firstly, its accuracy can be verified numerically as below. We can directly obtain the values, degeneracy factors and number of allowed energy levels for \(p=2, 3, 4, 5\) as shown in Table 1 by setting spin variables \(S_1, S_2, \cdots , S_{2p+1}\) to the values \(+1\) and \(-1\) in all different possible ways. For example, the given information in the first column (from the left side) of Table 1 follows from all possible configurations, up and down, for spins \(S_1\), \(S_2\), \(S_3\), \(S_4\) and \(S_5\) as shown in Table 2. The interaction energies given in this table are obtained by setting the spin variables \(S_1\), \(S_2\), \(S_3\), \(S_4\) and \(S_5\) of the Hamiltonian \(H_{J,K}^{5}\) to the values \(+1\) and \(-1\) in all different possible ways. One can easily verify that the values, degeneracy factors and the number of allowed energy levels listed in Table 1 are in full compatibility with those found in Remark 1. Secondly, one can obtain the partition function \(Z_{J,K}^{2p+1}\) exactly by using \(E_{m,n}^{2p+1}\) and \(g_{m,n}^{2p+1}\) of Remark 1 as follows

$$\begin{aligned} Z_{J,K}^{2p+1}= & {} g_{0,0}^{2p+1}e^{-\beta E_{0,0}^{2p+1}(J,K)}+\sum _{m=1}^{p}\sum _{n=\left[ \frac{m+1}{2}\right] }^{p-\left[ \frac{m}{2}\right] }g_{m,n}^{2p+1} e^{-\beta E_{m,n}^{2p+1}(J,K)}\nonumber \\= & {} 2e^{\beta (2p+1)(J+K)}\left( 1+\sum _{m=1}^{p}\sum _{n=\left[ \frac{m+1}{2}\right] }^{p-\left[ \frac{m}{2}\right] } \frac{2p+1}{m} C_{m-1}^{2n-1} C_{m-1}^{2p-2n}e^{-4\beta (nJ+mK)}\right) ,\nonumber \\ \end{aligned}$$
(6)

in which \(\beta =1/k_BT\) and \(k_B\) denotes the Boltzmann’s constant. This formula is confirmed when it is compared with the relation (1) of Ref. [39] for different values of p. This, in turn, certifies the validity of our formulation in Remark 1 for the spectrum of two-ring Ising chain drawn in Fig. 1.

Fig. 2
figure 2

Plot of the two-ring (decorated) Ising chain with the NN and NNN coupling constants J and K for the spins \(S_1, S_2, \cdots , S_{2p}\) and \(S_1, S_3, \cdots , S_{2p-1}\), respectively

Remark 2

(Decorated chain) Let p be an integer number greater than or equal to 3. Consider 2p Ising spins \(S_1, S_2, \cdots , S_{2p}\, (\equiv \pm 1)\) on a one-dimensional chain in which NN spins are coupled to each other by the constant J. Furthermore, we suppose that NNN spins \(S_1, S_3, \cdots , S_{2p-1}\) are coupled to each other by the exchange coupling constant K. It is also assumed that the Ising chain is cyclic in both NN and NNN interactions via the boundary condition \(S_{2p+1}\equiv S_1\) as shown in Fig. 2. Hamiltonian for two-ring Ising chain described by Fig. 2 is

$$\begin{aligned} H_{J,K}^{2p}=-J\sum _{i=1}^{2p}S_{i}S_{i+1}-K\sum _{i=1}^{p}S_{2i-1}S_{2i+1}. \end{aligned}$$
(7)

Consider ordered pairs (mn) of nonnegative integer numbers defined by \(n=m, m+1, m+2, \cdots , p-m\) for \(m=0, 1, 2, \cdots , \left[ \frac{p}{2}\right] \). In this way, the allowed energy levels of the Hamiltonian (7) are given by

$$\begin{aligned} E_{m,n}^{2p}(J,K)=\left( 4n-2p\right) J+\left( 4m-p\right) K. \end{aligned}$$
(8)

Then, the degeneracy factor \(g_{m,n}^{2p}\) for the energy \(E_{m,n}^{2p}\) is given by

$$\begin{aligned} g_{m,n}^{2p}=2^{2m+1} C_{m+n}^{p} C_{2m}^{m+n}. \end{aligned}$$
(9)

The total number of microstates accessible for the two-ring chain given in Fig. 2 is evaluated by summation of all possible degeneracy configurations:

$$\begin{aligned} 2^{2p}= & {} \sum _{m=0}^{\left[ \frac{p}{2}\right] }\sum _{n=m}^{p-m}g_{m,n}^{2p} \nonumber \\= & {} \sum _{m=0}^{\left[ \frac{p}{2}\right] }\sum _{n=m}^{p-m}2^{2m+1} C_{m+n}^{p} C_{2m}^{m+n}. \end{aligned}$$
(10)

Also, the number of allowed values of energy for the decorated chain is given by

$$\begin{aligned} N^{2p}=\left( \left[ \frac{p}{2}\right] +1\right) \left( p-\left[ \frac{p}{2}\right] +1\right) . \end{aligned}$$
(11)
Table 3 The values, degeneracy factors and number of allowed energy levels for the two-ring Ising chains \(p=3, 4, 5, 6\) of Remark 2

Again, our claims in Remark 2 about the values, degeneracy factors and the number of allowed energy levels for the decorated two-ring Ising chain given in Fig. 2 with the even number 2p of spins are verified by a direct calculation. For example, we have included the results in Table 3 for \(p=3, 4, 5, 6\), where one can match data with the formulation of Remark 2. Furthermore, the partition function \(Z_{J,K}^{2p}\) corresponding to two-ring Ising chain of Fig. 2 is derived by using the values of \(E_{m,n}^{2p}\) and \(g_{m,n}^{2p}\) given in Remark 2 as follows

$$\begin{aligned} Z_{J,K}^{2p}= & {} \sum _{m=0}^{\left[ \frac{p}{2}\right] }\sum _{n=m}^{p-m}g_{m,n}^{2p}e^{-\beta E_{m,n}^{2p}(J,K)} \nonumber \\= & {} e^{\beta p(2J+K)}\sum _{m=0}^{\left[ \frac{p}{2}\right] }\sum _{n=m}^{p-m}2^{2m+1} C_{m+n}^{p} C_{2m}^{m+n} e^{-4\beta (nJ+mK)}. \end{aligned}$$
(12)

However, we previously obtained another form for the partition function \(Z_{J,K}^{2p}\) in the relation (14) of Ref. [39] by the change of variable method. Finally, one can show that the above-mentioned two expressions for the partition function \(Z_{J,K}^{2p}\) are equal when p is fixed to \(p=3, 4, 5, 6\), etc., which is another certification of the validity of Remark 2.

3 Spin frustration of ferromagnetic and antiferromagnetic orders

Let us set J and K equal to 1 and \(-\alpha \), in both two-ring Ising chains discussed above, and use \(\alpha >0\) as a spin frustration parameter for when the ferromagnetic and antiferromagnetic interactions are carried out via the coupling constants J and K, respectively. This symbolization allows us to consider the spin frustration effect on each of the models, separately, as follows:

(a) Analysis of spin frustration effect on the two-ring Ising chain of Fig. 1: We show analytically that the maximal spin frustration in the ground states at the low temperatures occurs when the dimensionless parameter \(\alpha \) takes both values \(\frac{1}{2}\) and 1. First, we need to get the ground energies, which may sometimes depend on the evenness and oddness of p.

  • Our considerations show that the inequality \(2n\ge m\) holds by all pairs (mn) of Remark 1, whether p is even or odd. If we demand that \(E_{0,0}^{2p+1}(1,-\alpha )\) with the degeneracy factor 2 be the ground energy, then we obtain the inequality \(m\alpha \le n\) that must be satisfied by all pairs (mn) belonging to \(1\le m \le p\) and \(\left[ \frac{m+1}{2}\right] \le n \le p-\left[ \frac{m}{2}\right] \). By comparison with \(2n\ge m\), we conclude that, for \(\alpha \le \frac{1}{2}\), the ground energy of the two-ring Ising spins-\(\frac{1}{2}\) chain corresponding to Fig. 1 for every \(p\ge 2\), whether even or odd, is \(E_{0,0}^{2p+1}(1,-\alpha )=(2p+1)(\alpha -1)\).

  • An immediate consequence of \(2n\ge m\) is \((\frac{p}{2}-n)/(p-m)\le \frac{1}{2}\) which, in turn, results that the ground energy of the two-ring Ising model in Fig. 1 with \(p\ge 2\) as an even number is \(E_{p,\frac{p}{2}}^{2p+1}(1,-\alpha )=-1-(2p-1)\alpha \) for \(\alpha \ge \frac{1}{2}\), with the degeneracy factor \(2(2p+1)\).

  • From Remark 1, for p as an arbitrary odd number, it becomes clear that \(E_{p-1,\frac{p-1}{2}}^{2p+1}(1,-\alpha )\) will be the ground energy, provided that the inequality \(\frac{p-1}{2}-n\le (p-m-1)\alpha \) is satisfied by \(\alpha \). The satisfaction of this inequality requires that \(\alpha \) obeys \(\alpha \ge \frac{1}{2}\) and \(\alpha \le 1\) for \(0\le m \le p-3\) and \(m=p\), respectively. Moreover, it leads to \(\alpha \ge 0\) for \(m=p-2\) while no condition is applied for \(m=p-1\). Therefore, for every odd integer \(p\ge 3\), \(E_{p-1,\frac{p-1}{2}}^{2p+1}(1,-\alpha )=-3-(2p-5)\alpha \) with the degeneracy factor \(\frac{1}{3}p(p+1)(2p+1)\) is the ground energy of the two-ring Ising chain corresponding to Fig. 1 in the region \({\frac{1}{2}}\le \alpha \le 1\).

  • Here, we again assume that p is an odd integer number greater than or equal to 3. If we demand that \(E_{p,{\frac{p+1}{2}}}^{2p+1}(1,-\alpha )\) be the ground energy, we get \(\alpha \ge (p+1)/2p\) and \(\frac{p+1}{2}-n\le (p-m)\alpha \). These inequalities are satisfied by all pairs (mn) of Remark 1 if inequality \(\alpha \ge 1\) is satisfied. Therefore, \(E_{p,{\frac{p+1}{2}}}^{2p+1}(1,-\alpha )=1-(2p-1)\alpha \) is the ground energy for \(\alpha \ge 1\) with the degeneracy factor \(2(2p+1)\).

Now, we are in an appropriate position to consider the maximal spin frustration effect for the values \(\alpha =\frac{1}{2}\) and \(\alpha =1\):

  • Maximal frustration at \(\alpha =\frac{1}{2}\) for even values of p: For an even \(p\ge 2\), the two-ring Ising chain in Fig. 1 takes the energy \(-p-\frac{1}{2}\) via two ground levels \(E_{0,0}^{2p+1}(1,-\frac{1}{2})\) and \(E_{p,\frac{p}{2}}^{2p+1}(1,-\frac{1}{2})\) with the degeneracy factors 2 and \(2(2p+1)\), respectively. The sum of the degeneracy factors at \(\alpha =\frac{1}{2}\) is \(4(p+1)\) which is increasing linearly with p and describes itself a type of frustration rate. This, in turn, implies that the chain becomes more frustrated at \(\alpha =\frac{1}{2}\) when p is increased.

  • Maximal frustration at \(\alpha =\frac{1}{2}\) for odd values of p: Again, the two ground levels \(E_{0,0}^{2p+1}(1,-\frac{1}{2})\) and \(E_{p-1,\frac{p-1}{2}}^{2p+1}(1,-\frac{1}{2})\) with the degeneracy factors 2 and \(\frac{1}{3}p(p+1)(2p+1)\), respectively, take the same energy, named \(-p-\frac{1}{2}\), for an odd \(p\ge 3\) in the chain of Fig. 1. Despite the previous case, the sum of the degeneracy factors at \(\alpha =\frac{1}{2}\) is a cubic power of p which, in turn, means stronger frustrations for higher values of p.

  • Maximal frustration at \(\alpha =1\) for odd values of p: For an odd \(p\ge 3\), the two-ring Ising chain in Fig. 1 takes the energy \(2-2p\) via two ground levels \(E_{p-1,\frac{p-1}{2}}^{2p+1}(1,-\frac{1}{2})\) and \(E_{p,\frac{p+1}{2}}^{2p+1}(1,-\frac{1}{2})\) with the degeneracy factors \(\frac{1}{3}p(p+1)(2p+1)\) and \(2(2p+1)\), respectively. Therefore, there exists very stronger frustrations due to the fact that the sum of the degeneracy factors not only is a cubic power of p but also is greater than the previous case by 4p.

(b) Analysis of spin frustration effect on the two-ring Ising chain of Fig. 2: We first obtain the ground-state energies as a function of the frustration parameter \(\alpha \) and then show that the maximal frustration occurs when it takes the value 1. Indeed, the classical ground energies of the decorated Ising chain are determined depending upon which of the inequalities \(\alpha \le 1\) or \(\alpha \ge 1\) is satisfied by the frustration parameter. Again, for \(\alpha \ge 1\), the ground level has two different forms in terms of the parameters p and \(\alpha \), depending on whether p is even or odd.

  • An immediate result from Remark 2 is \(0\le m\le \left[ \frac{p}{2}\right] \) and \(m\le n\le p-m\). On the other hand, in order to have a minimum value for energy via \(E_{0,0}^{2p}(1,-\alpha )\) with the degeneracy factors 2, the inequality \(n\ge m\alpha \) must be satisfied by all pairs (mn) of Remark 2. The last inequality for \(n=m=0\) is fulfilled without imposing any restrictions on \(\alpha \). Otherwise, the condition expression \(\alpha \le \frac{n}{m}\) is evaluated. From this, together with \(n\ge m\), we deduce that \(\alpha \le 1\). Therefore, for every \(p\ge 2\), whether even or odd, the ground energy of the two-ring Ising spins-\(\frac{1}{2}\) chain in Fig. 2 is \(E_{0,0}^{2p}(1,-\alpha )=p(\alpha -2)\) in the case of \(\alpha \le 1\).

  • Clearly, if we demand that \(E_{\frac{p}{2},\frac{p}{2}}^{2p}(1,-\alpha )=-p\alpha \) with the degeneracy factor \(2^{p+1}\) for a given even number \(p\ge 2\) be a ground level, then the inequality \((\frac{p}{2}-m)\alpha \ge \frac{p}{2}-n\) is derived, which, is automatically satisfied by \(n=m=\frac{p}{2}\) without any condition on \(\alpha \). This inequality appears in the form of \(\alpha \ge \frac{p-2n}{p-2m}\) for the rest of pairs (mn) of \(1\le m\le \left[ \frac{p}{2}\right] \) and \(m\le n\le p-m\), satisfied by \(\alpha \ge 1\).

  • In the case of odd \(p\ge 3\), in computing the lowest level by \(E_{\frac{p-1}{2},\frac{p-1}{2}}^{2p}(1,-\alpha )=-2-(p-2)\alpha \) with the degeneracy factor \(2^pp\), it will be needed to satisfy the inequality \((\frac{p-1}{2}-m)\alpha \ge \frac{p-1}{2}-n\), which is trivially satisfied by \(n=m=\frac{p-1}{2}\). While, for the other values of m and n in Remark 2 the inequality \(\alpha \ge 1\) must be realized.

Now, we can explain the maximal spin frustration effect at \(\alpha =1\) on the two-ring Ising chain of Fig. 2 in two different forms for the even and odd values of p.

  • Maximal frustration at \(\alpha =1\) for even values of p : For an even \(p\ge 2\), the energy of the two-ring Ising chain in Fig. 2 takes the value \(-p\) by ground levels \(E_{0,0}^{2p}(1,-1)\) and \(E_{\frac{p}{2},\frac{p}{2}}^{2p}(1,-1)\) with the degeneracy factors 2 and \(2^{p+1}\), respectively. Furthermore, the sum of the degeneracy factors at \(\alpha =1\) is \(2(1+2^{p})\) which is increasing in terms of p.

  • Maximal frustration at \(\alpha =1\) for odd values of p : Again, the lowest energy \(-p\) for an odd \(p\ge 3\) in the chain of Fig. 2 is derived by two ground levels \(E_{0,0}^{2p}(1,-1)\) and \(E_{\frac{p-1}{2},\frac{p-1}{2}}^{2p}(1,-1)\) with the degeneracy factors 2 and \(2^{p}p\), respectively. The sum of the degeneracy factors at \(\alpha =1\) is \(2(1+2^{p-1}p)\) which, in turn, means a stronger frustration for higher values of p, in comparison with the previous case.

4 The maximally frustrated regime: Low-temperature behavior of entropy and specific heat capacity in the vicinity of the values \(\frac{1}{2}\) and 1 of frustration parameter

Now, we investigate the role of the spin frustration parameter \(\alpha \) at the low-temperatures on the entropy \(S=-\frac{\partial {F_{\alpha }^N}}{\partial {T}}\) and the specific heat capacity \(C=\frac{\partial {U}}{\partial {T}}\) with \(U=-T^{2}\frac{\partial }{\partial {T}}{\frac{F_{\alpha }^N}{T}}\) as internal energy that is obtained from the Helmholtz free energy per spin \(F_{\alpha }^N\equiv -\frac{1}{N\beta }\ln {Z_{1,-\alpha }^N}\). The N refers to the number of spins in the Ising chains of Figs. 1 and 2, namely \(2p+1\) and 2p, respectively. Therefore, the partition functions obtained in (6) and (12) are used to evaluate the low-temperature behavior of entropy and specific heat capacity in the vicinity of the values \(\frac{1}{2}\) and 1 of spin frustration parameter, corresponding to the maximally frustrated regime. From now on, it is assumed that the NN and NNN exchange couplings are given in terms of the unit \(k_B\times Kelvin=1.3807 \times 10^{-23} Joule\), which will be omitted to simplify both text and plots.

In Figs. 3 and 4, we have considered the behavior of the entropy and specific heat capacity per spin as the function of spin frustration parameter \(0<\alpha <1.5\) at the low-temperatures \(T=0.1 K\) and 0.3K for the parameters \(p=3, 4, 5, 6, 7, 8\) of size of the two-ring Ising chains in Figs. 1 and 2. Due to the fact that the low-temperatures \(T=0.1 K\) and 0.3K led to establishing the ground-state energies, the curves indicate the expected behaviors in agreement with our analytical results on the maximally frustrated regime, presented in the previous section. According to Fig. 3a–d for the Ising chains in Fig. 1, the maximum and minimum values for the entropy and specific heat capacity per spin are shown, respectively, in the vicinity of \(\alpha =\frac{1}{2}\), whether p is even or odd. Whilst, this happens only for odd values of p in the vicinity of \(\alpha =1\). These are in agreement with the maximal degeneracies \(4(p+1)\), \(2+\frac{1}{3}p(p+1)(2p+1)\) and \((2p+1)(2+\frac{1}{3}p(p+1))\) for even p and \(\alpha =\frac{1}{2}\), odd p and \(\alpha =\frac{1}{2}\), odd p and \(\alpha =1\), respectively. Finally, according to Fig. 4a–d for the Ising chains in Fig. 2, the maximum and minimum values for the entropy and specific heat capacity per spin are exhibited, respectively, in the vicinity of only \(\alpha =1\), for every p, whether even or odd. This assertion is in agreement with the maximal degeneracies \(2+2^{p+1}\) and \(2+2^{p}p\) for even and odd p, respectively, in the vicinity of \(\alpha =1\). We must point out that as it is seen from Fig. 4a–d, there are no extreme values for the entropy and specific heat capacity per spin in the vicinity of \(\alpha =\frac{1}{2}\) which, in turn, is in agreement with our analytical results on Remark 2 of the previous section.

Fig. 3
figure 3

Plots of entropy and specific heat capacity per spin based on the partition function (6) in the frustration parameter range \(0<\alpha <1.5\) at the low-temperatures (a, b) \(T=0.1 K\) and (c, d) \(T=0.3 K\). The parameter p of Fig. 1 with the partition function (6) has been chosen as \(p=3, 4, 5, 6, 7, 8\)

Fig. 4
figure 4

Plots of entropy and specific heat capacity per spin based on the partition function (12) in the frustration parameter range \(0<\alpha <1.5\) at the low-temperatures (a, b) \(T=0.1 K\) and (c, d) \(T=0.3 K\). The parameter p of Fig. 2 with the partition function (12) has been chosen as \(p=3, 4, 5, 6, 7, 8\)

5 Concluding remarks

As it has been shown in Fig. 1, a cyclic linear chain of the odd number \(2p+1\) of spins-\(\frac{1}{2}\) in the NN and NNN interactions with coupling constants J and K, respectively, has to have a two-ring structure so that all spins contribute to the interaction with their NNs and NNNs. Fig. 2 denotes a two-ring (decorated) chain of the even number 2p of spins-\(\frac{1}{2}\) while all and half spins contribute to the NN and NNN interactions with coupling constants J and K, respectively. Remarks 1 and 2 introduce explicitly the exact forms of the classical energy levels and their corresponding degeneracy factors for these two-ring Ising chains without remarking that the NN and NNN interactions are from which type, ferromagnetic or antiferromagnetic. However, we know that the competing ferromagnetic and antiferromagnetic interactions lead to frustration at the low temperatures, which can be measured in degenerate ground states by the negative ratio of the coupling constants K and J, the so-called frustration parameter \(\alpha \). Maximal frustration occurs when some ground levels for some values of \(\alpha \) find the same energy, and consequently, become more degenerated with respect to the other values in their vicinity. In fact, the disorder in the spin orientations induced by competing interactions increases in the ground levels at the last issues. In this work, we have shown that the ground levels of the two-ring Ising spins-\(\frac{1}{2}\) chain corresponding to Fig. 1 with p as an even number are \(E_{0,0}^{2p+1}(1,-\alpha )=(2p+1)(\alpha -1)\) and \(E_{p,\frac{p}{2}}^{2p+1}(1,-\alpha )=-1-(2p-1)\alpha \) for \(\alpha <\frac{1}{2}\) and \(\alpha >\frac{1}{2}\) with the degeneracy factors 2 and \(2(2p+1)\), respectively. Furthermore, the ground levels of Fig. 1 with p as an odd number are \(E_{0,0}^{2p+1}(1,-\alpha )=(2p+1)(\alpha -1)\), \(E_{p-1,\frac{p-1}{2}}^{2p+1}(1,-\alpha )=-3-(2p-5)\alpha \) and \(E_{p,\frac{p+1}{2}}^{2p+1}(1,-\alpha )=1-(2p-1)\alpha \) for \(\alpha <\frac{1}{2}\), \(\frac{1}{2}<\alpha <1\) and \(\alpha >1\) with the degeneracy factors 2, \(\frac{1}{3}p(p+1)(2p+1)\) and \(2(2p+1)\), respectively. These results demonstrate spin frustration effect by the ground levels of Fig. 1 at the low temperatures in the presence of the competing ferromagnetic and antiferromagnetic interactions. Moreover, maximal spin frustration occurs in the ground energy \(-p-\frac{1}{2}\) with the degeneracy factors \(4(p+1)\) and \(2+\frac{1}{3}p(p+1)(2p+1)\) in the cases p even and odd, respectively, at \(\alpha =\frac{1}{2}\), as well as in the ground energy \(2-2p\) with the degeneracy factor \((2p+1)(2+\frac{1}{3}p(p+1))\) in case only p odd, at \(\alpha =1\). The frustration effect in the case of the two-ring Ising spin-\(\frac{1}{2}\) chain corresponding to Fig. 2 is simpler as we deal with two ground levels whether p is even or odd. For \(\alpha <1\), the ground level of Fig. 2, with arbitrary \(p\ge 2\), whether even or odd, is \(E_{0,0}^{2p}(1,-\alpha )=p(\alpha -2)\) with the degeneracy factor 2. Besides, for \(\alpha >1\), the ground levels are \(E_{\frac{p}{2},\frac{p}{2}}^{2p}(1,-\alpha )=-p\alpha \) and \(E_{\frac{p-1}{2},\frac{p-1}{2}}^{2p}(1,-\alpha )=-2-(p-2)\alpha \) with the degeneracy factors \(2^{p+1}\) \(2^{p}p\), respectively. Consequently, for energy \(-p\) corresponding to \(\alpha =1\), we obtain the degeneracy factors \(2(1+2^p)\) and \(2(1+2^{p-1}p)\) in cases p even and odd, respectively. Therefore, the two-ring Ising chains in Fig. 2 for energy \(-p\) find maximal frustration due to competing ferromagnetic and antiferromagnetic interactions. In Figs. 3 and 4, we have depicted plots of the entropy and specific heat capacity per spin as the functions of the frustration parameter at the low-temperatures \(T=0.1 K\) and 0.3K for \(p=3, 4, 5, 6, 7, 8\) of the two-ring Ising chains in Figs. 1 and 2. These curves verify the analysis above. The entropy and specific heat capacity per spin for the Ising chains in Fig. 1 take the maximum and minimum values in the vicinity of \(\alpha =\frac{1}{2}\) (\(\alpha =1\)), in both cases even and odd p (only for odd p). The plots of the entropy and specific heat capacity per spin for the Ising chains in Fig. 2 involve the maximum and minimum values, respectively, in the vicinity of only \(\alpha =1\), in both cases even and odd p.