# The Wiener Index of Prime Graph $PG(\mathbb{Z}_n)$

## DOI:

https://doi.org/10.29020/nybg.ejpam.v17i3.5166## Keywords:

Distance matrix, prime graph, ring, Wiener index## Abstract

Let G = (V, E) be a simple graph and (R, +, ·) be a ring with zero element 0R. The Wiener index of G, denoted by W(G), is defined as the sum of distances of every vertex u and v, or half of the sum of all entries of its distance matrix. The prime graph of R, denoted by P G(R), is defined as a graph with V (P G(R)) = R such that uv ∈ E(P G(R)) if and only if uRv = {0R} or vRu = {0R}. In this article, we determine the Wiener index of P G(Zn) in some cases n by constructing its distance matrix. We partition the set Zn into three types of sets, namely zero sets, nontrivial zero divisor sets, and unit sets. There are two objectives to be achieved. Firstly,

we revise the Wiener index formula of P G(Zn) for n = p2 and n = p3 for prime number p and we compare this results with the results carried out by previous researchers. Secondly, we determine the Wiener index formula of P G(Zn) for n = pq, n = p2q, n =p 2q2, and n = pqr for distinct prime numbers p, q, and r.

## Downloads

## Published

## Issue

## Section

## License

Copyright (c) 2024 European Journal of Pure and Applied Mathematics

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Upon acceptance of an article by the European Journal of Pure and Applied Mathematics, the author(s) retain the copyright to the article. However, by submitting your work, you agree that the article will be published under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). This license allows others to copy, distribute, and adapt your work, provided proper attribution is given to the original author(s) and source. However, the work cannot be used for commercial purposes.

By agreeing to this statement, you acknowledge that:

- You retain full copyright over your work.
- The European Journal of Pure and Applied Mathematics will publish your work under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- This license allows others to use and share your work for non-commercial purposes, provided they give appropriate credit to the original author(s) and source.

## How to Cite

*European Journal of Pure and Applied Mathematics*,

*17*(3), 1659-1673. https://doi.org/10.29020/nybg.ejpam.v17i3.5166