Abstract

Let be a commutative ring with nonzero identity and let be its set of zero divisors. The zero-divisor graph of is the graph with vertex set , where , and edge set . One of the basic results for these graphs is that is connected with diameter less than or equal to 3. In this paper, we obtain a few distance-based topological polynomials and indices of zero-divisor graph when the commutative ring is , namely, the Wiener index, the Hosoya polynomial, and the Shultz and the modified Shultz indices and polynomials.

1. Introduction

Algebraic structures have been investigated significantly for their nearby connection with representation theory and number theory; likewise, they have been widely concentrated in combinatorics [1, 2]. Despite the expansive theoretical research in these areas, restricted rings and fields got consideration for their applications to cryptography and coding theory.

In mathematical chemistry, a graphical structure of a chemical compound is a representation of the structural formula. In a chemical graph, vertices and edges represent the atoms and their chemical bonds of the compound, respectively. Molecular descriptors for a particular chemical compound are calculated on basis of the corresponding molecular graph. A topological index is a graph invariant that is obtained from it. In [3], the first topological index, namely, the Wiener index, was introduced. Nowadays, it is widely used in QSAR (“Quantitative Structure Activity Relationship”), whose properties are surveyed in [4, 5].

Topological indices are classified as degree based [69] and distance based of graphs. Some well-known topological indices based on the degrees of a graph are the Randić connectivity index, Zagreb indices, Harmonic index, atom bond connectivity, and geometric arithmetic index. The Wiener index, Hosaya index, and Estrada index are distance-based topological indices [10, 11]. Topological indices formulate the criteria for the development of compound structures, and numerical activities on these structures extend multidisciplinary research. In what follows, we cite some of them.

A relationship among the stability of linear alkanes and the branched alkanes is examined using the index, which helped in computation of strain energy for cycle alkanes [12, 13]. The GA index is more appropriate and efficient to correlate certain physico-chemical characteristics for predictive power than the Randić connectivity index [14, 15]. The Zagreb indices are powerful tools for the calculation of total -electron energy of the molecules with precise approximation [16]. The degree-based topological indices are more useful to examine the chemical characteristics of distinct molecular structures. Eccentricity-based topological indices are useful as a key for the judgement of toxicological, physico-chemical, and pharmacological properties of a compound through the structure of its molecules. The study of the QSAR is known for this sort of analysis [17]. By exploring [18, 19], further applications of topological indices can be obtained.

1.1. Distance-Based Topological Indices and Polynomials

In this section, we introduce the topological indices and polynomials that will be obtained for the graphs studied in this paper. We recall some concepts from graph theory. Let be a (undirected) graph. If there is a path between any two distinct vertices of , then is a connected graph. For two distinct vertices , we denote the length of a shortest path connecting and ( and, if no such a path exists). The diameter of the graph is the maximum length of the shortest path connecting two distinct vertices of , that is, . The number of edges incidence a vertex of simple graph is called the degree of the vertex , denoted as .

The Wiener index [11] was introduced by Wiener in 1947 to illustrate the connection between physico-chemical properties of organic compounds and the index of their molecular graphs:

Randić [20] and Randić et al. [21] introduced a modified version of the Wiener index that is used for predicting physico-chemical properties of organic components. The new index was called the hyper-Wiener index and it is defined as follows:

The Hosoya polynomial was introduced in 1989 [22]. The definition is as follows:

Dobrynin and Kochetova [23], and independently, Gutman [24] introduced a degree distance index, which is known as the Schultz index. Let be a connected graph and be the degree of . Then, the Schultz index or the degree distance of is defined as follows:

Klavžar and Gutman defined, in [25], the modified Schulz index of a graph as follows:

Finally, Gutman, in [24], introduced two topological polynomials, namely, the Schulz polynomial and the modified Schulz polynomial as follows:

The connection between the above polynomials and the previous two indices is stated below:

1.2. Zero-Divisor Graphs

Let be a commutative ring with nonzero identity and let be its set of zero divisors. The zero-divisor graph of is the graph with vertex set , where , and edge set . As usual, an edge is simply denoted as . Zero-divisor graphs were introduced by Beck [2] in 1988 and then studied by Anderson and Naseer in [26]. These authors were interested in colorings and the original definition included all elements in , even the zero. Later on, Anderson and Livingston [27] made emphasis on the relationship between ring-theoretical properties and graph-theoretical properties and reformulated the definition as it appears in the lines above. One of the basic results in this relationship is the following one.

Theorem 1. (see [27]). Let be a commutative ring. Then, is connected with diameter less or equal to 3.

The study conducted in [28, 29] may serve as a survey that is very interesting to find the relation between ring-theoretic properties and graph-theoretic properties of . Some applications and relation between algebraic theory and chemical graph theory can be seen in [1, 18, 30]. In this paper, we presented some results that interplay in the relation between a zero-divisor graph and chemical graph theory. The structure of the paper is as follows. In Section 2, we describe the family of zero-divisor graphs of the form , where and are different primes, and we also count pairs of vertices that are exactly at distance , for . In Section 3, we obtain the Wiener index and the Hosoya, the Shultz, and the modified Shultz polynomials of . We also obtain the Shultz and the modified Shultz indices of .

2. The Zero-Divisor Graph on

Let us start by introducing some notation that will be used along the paper. We assume that and are different positive primes.

Lemma 1. Let . Let , for and , otherwise. Then,(i)(ii)(iii), whenever The vertices of can be split into blocks such that all vertices in the same block have the same behavior. From this partition, we can easily describe the structure of , that is, the content of the following lemma.

Lemma 2. For and , let . Then,

Moreover,(i)If , then is a clique. Otherwise, is a set of independent vertices.(ii)Let and such that . Then, the edges , and , define a complete bipartite graph.

According to the definition, all vertices in the same block of the zero-divisor graph on have the same degree. For more details on this graph, see [30]. Let be the degree of any vertex in . Following the notation of the previous lemma, we also conclude the following information.

Lemma 3. For and , then

Figure 1 shows the structure of the zero-divisor graph . White vertices represent blocks of independent vertices in , whereas black vertices represent cliques.

The structure shown in Lemmas 2 and 3 can be completed by showing the distance between pairs of vertices, which only depends on the block they belong to. This information appears in Table 1.

Let , and , the number of pairs of vertices at distance in a graph .

Lemma 4. Let be a zero-divisor graph; then,

Proof. The size of is given byThat is, by introducing the values described in Lemma 2, the result follows.

Lemma 5. Let be a zero-divisor graph; then,

Proof. The number of pairs of vertices at distance 2 is given by the formula that follows:that is,Thus, by Lemma 2, we obtain the following expression:Hence, after simplification, the result follows.

Lemma 6. Let be a zero-divisor graph; then,

Proof. The number of pairs at distance exactly 3, , is given by the following expression:Thus, by Lemma 2, we get the result.

3. Distance-Based Topological Indices and Polynomials of

Now, we are ready to state and prove the following theorems.

Theorem 2. The Winner index of is

Proof. The diameter of is 3. Thus, there are pairs of vertices at distance , and 3, and the Winner index can be obtained as follows:By Lemmas 46, we get , , and , respectively. Thus, by introducing these values in (19), we get, after simplification, the required result.

Lemma 7. The Hosoya polynomial of is .

Theorem 3. The Hosoya polynomial of is

Proof. The result follows by Lemma 7 and by Lemmas 46.

Lemma 8. The Hyper–Wiener index of is .

Theorem 4. The Hyper–Wiener index of is

Proof. The result follows by Lemma 8 and by Lemmas 46, after some simplifications.

Lemma 9. Let , where is the degree of any vertex in , and . Then, the Schultz polynomial of is equal to

Proof. Since the diameter of is 3, 3 is by definition the degree of . The coefficient of the polynomial is given byThat is, . From this expression, we clearly obtain the coefficient that appears in the statement.
The coefficients of and (see Table 1) are given, respectively, byBy doing similar transformations as above, we obtain the and the coefficient, respectively, that appears in the statement. Finally, the independent term appears when we apply the formula to each vertex.

Theorem 5. Let and be different primes. Then, the Schultz polynomial of is equal to

Proof. Consider the formula obtained in Lemma 9. Note thatand . By introducing the values of , (collected in Lemmas 2 and 3), and in terms of and , the result follows.

Corollary 1. The Schultz index or the degree distance of is equal to

Lemma 10. Let , where is the degree of any vertex in , and . Then, the modified Schultz polynomial of is equal to

Proof. Since the diameter of is 3, 3 is by definition the degree of . The coefficient of the polynomial is given bythat is, .
The coefficients of and (see Table 1) are given, respectively, byBy doing similar transformations as above, we obtain the and the coefficient, respectively, that appears in the statement. Finally, the independent term appears when we apply the formula to each vertex.

Theorem 6. Let and be different primes. Then, the modified Schultz polynomial of is equal to

Proof. Consider the formula obtained in Lemma 10. Recall that . By introducing the values of , (collected in Lemmas 2 and 3), and in terms of and , the result follows.

Corollary 2. The modified Schultz index of is equal to

4. Conclusion

The structure of zero-divisor graphs of the form of is particularly interesting for studying distance-based topological indices. First, because its diameter is exactly 3, but also because there are defined blocks, with a complete bipartite connection between them, of either independent vertices or complete graphs (cliques). In this paper, we have focused on the Wiener index and the Hosoya, the Shultz, and the modified Shultz polynomials of and, finally, on the Shultz and the modified Shultz indices of . For that reason, we have introduced some notation that could be useful not only for studying other distance-base topological indices of but also for other graphs of the form , for positive integers. A key point in this notation is the study of pairs that are exactly a distance one (the size of the graph), two, or three. We think that a possible line of future research should include the study of paths connecting pairs of vertices a different distances and the extension to other indices, as for instance, the Estrada index.

Data Availability

All the data are provided within the manuscript.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The research conducted by the second author has been supported by Ministerio de Ciencia, Innovación y Universidades (Spain), under project PGC2018-095471-B-I00.