The Metric Dimension and Local Metric Dimension of Relative Prime Graph CAUCHY โ€“Jurnal Matematika Murni dan Aplikasi Volume 6(3) (2020), Pages 149-161 p-ISSN: 2086-0382; e-ISSN: 2477-3344 Submitted: August 06, 2020 Reviewed: October 07, 2020 Accepted: 10 November 2020 DOI: http://dx.doi.org/10.18860/ca.v6i3.10103 The Metric Dimension and Local Metric Dimension of Relative Prime Graph Inna Kuswandari1, Fatmawati2, Mohammad Imam Utoyo3 Mathematics Department, Faculty of Science and Technology, Universitas Airlangga, Mulyorejo, Surabaya 60115, Indonesia. Email: ikuswandari94@gmail.com, fatma47unair@gmail.com, m.i.utoyo@fst.unair.ac.id ABSTRACT This study aims to determine the metric dimensions and local metric dimensions of relative prime graphs formed from modulo ๐‘› integer rings, namely ๐บโ„ค๐‘› with ๐‘› โ‰ฅ 2. As a vertex set is โ„ค๐‘› โˆ–{0} and ๐‘ข๐‘ฃ โˆˆ ๐บโ„ค๐‘› if ๐‘ข and ๐‘ฃ are relatively prime. By finding the pattern elements of resolving set and local resolving set, it can be shown the value of the metric dimension and the local metric dimension of ๐บโ„ค๐‘› are ๐‘› โˆ’ 2+ ๐‘˜ and |๐‘ƒ0|โˆ’ 1+ ๐‘˜ respectively, where ๐‘˜ is the number of vertices groups that formed multiple 2,3, โ€ฆ , ๐‘˜ and |๐‘ƒ0| is the cardinality of set ๐‘ƒ0. This research can be developed by determining the fractional metric dimension, local fractional metric dimension and studying the advanced properties of graphs related to their forming rings. Key Words : Metric Dimension; Modulo ๐‘›; Relative Prime Graph; Resolving Set; Rings. INTRODUCTION Graph ๐บ is defined as a non-empty and finite set of ๐‘‰(๐บ) whose elements are called vertices and set ๐ธ(๐บ) (maybe empty) whose elements are called edges which are the unordered pair of different vertices in ๐‘‰(๐บ) [1]. Any problems whose objects can be described as vertices and edges can be solved by the concept of graph theory, this has become one of the supporting factors in the field of graph theory research developing very rapidly today. The notion of metric dimensions was introduced firstly by [2] and independently by [3] (in [4]). In [3], the concepts of bases and dimensions have been built on the graph. A bases on a graph is a set of vertices with minimal cardinality that implies in each vertex of graph having a different representation (resolving set) to the bases, while the dimensions are number elements of the bases. Meanwhile, the local metric dimension was introduced by [5] by considering different representations of two adjacent vertices so that the local metric dimension of a graph is obtained. The research related to the metric dimensions and local metric dimensions of a graph has been carried out by many researchers no exception to the graph of the results of operations (comb, corona, joint, etc.). The development of research in the field of graph theory is also supported by the expansion of research objects in algebraic systems, namely groups or rings. In [6], the zero divisor graph is introduced from any commutative ring by defining the vertices on the graph are elements of the ring, while the two vertices are adjacent if the product is zero. By using http://dx.doi.org/10.18860/ca.v6i3.10103 mailto:ikuswandari94@gmail.com mailto:fatma47unair@gmail.com mailto:utoyo@fst.unair.ac.id The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 150 the definition in [6], the research was also carried out in [7,8,9] and succeeded in finding several properties related to the diameter, girth, isomorphism of the graph, radius, and domination set of zero divisor graphs constructed from the commutative and non- commutative rings. In addition to the zero divisor of graph, research has also been developed on the Jacobson graph formed from commutative rings that have nonzero unit elements [10,11]. The definition of vertices and edges is built from the radical Jacobson and the unit of the ring. Specifically, in [11], Jacobson graph was formed from the commutative ring ๐‘3๐‘› and obtained several properties that related to the graph with its forming ring. Some of the research above inspired the author to examine the metric dimensions and local metric dimensions on graphs constructed from commutative rings. As an object of research, we choose a ring of modulo ๐‘› integer with the adjacency between two vertices was chosen based on the relative prime properties between the two vertices. The following is given the definition of the greatest common divisor and the relative prime of two positive integers. Definition 1 [12]. Let ๐‘Ž and ๐‘ be two positive integers. The positive integer ๐‘‘ that satisfies ๐‘‘ = ๐‘๐‘Ž + ๐‘ž๐‘ for some integer ๐‘ and ๐‘ž is called greatest common divisor (abbreviated gcd) of ๐‘Ž and ๐‘, denoted by ๐‘‘ = gcd (๐‘Ž,๐‘). Definition 2 [12]. Two positive integers ๐‘Ž and ๐‘ are relatively prime if gcd(๐‘Ž,๐‘) = 1. The purpose of this study is to determine the metric dimensions and local metric dimensions of relative prime graphs. The definition of metric dimensions and local metric dimensions which refer to [13] and [5] is given as follows. Definition 3 [13]. Suppose that ๐บ is a connected graph of order ๐‘› and ๐‘Š = {๐‘ค1,๐‘ค2,โ€ฆ,๐‘ค๐‘—} โŠ† ๐‘‰(๐บ),1 โ‰ค ๐‘— โ‰ค ๐‘› is an ordered set of j-tuples of vertices in ๐บ. Representation of vertice ๐‘ฃ โˆˆ ๐‘‰(๐บ) with respect to ๐‘Š is an ordered pair j-tuples ๐‘Ÿ(๐‘ฃ|๐‘Š) = (๐‘‘(๐‘ฃ,๐‘ค1),๐‘‘(๐‘ฃ,๐‘ค2),โ€ฆ,๐‘‘(๐‘ฃ,๐‘ค๐‘—)), where ๐‘‘(๐‘ฃ,๐‘ค๐‘–) representing the distance between vertex ๐‘ฃ and vertex ๐‘ค๐‘–, 1 โ‰ค ๐‘– โ‰ค ๐‘—. The set ๐‘Š is called the resolving set of ๐บ if each vertex in ๐บ has different representation with respect to ๐‘Š. The resolving set with a minimum cardinality is called a bases, whereas number of elements on the bases are called dimensions of the graph ๐บ, denoted by ๐‘‘๐‘–๐‘š(๐บ). Since the calculation of dimensions in a graph is built using the concept of distance (metric), it is called the metric dimension. Definition 4 [5]. Let G be the connected graph and ๐‘Š โŠ† ๐‘‰(๐บ). The set ๐‘Š is called the local resolving set of a graph ๐บ if each of two adjacent vertices in ๐บ has a different representation with respect to ๐‘Š, i.e. ๐‘ข๐‘ฃ โˆˆ ๐ธ(๐บ) implies ๐‘Ÿ(๐‘ข|๐‘Š) โ‰  ๐‘Ÿ(๐‘ฃ|๐‘Š). The set of local resolving set with minimal cardinality is called a local bases, while number of elements on a bases are called the local metric dimensions of graph ๐บ, denoted by ๐‘‘๐‘–๐‘š๐‘™(๐บ). METHODS This study aims to determine the metric dimensions and local metric dimensions of relative prime graph ๐บ๐‘๐‘›. The most important step in determining the metric dimensions and local metric dimensions is to determine the pattern of resolving set and local resolving set that have a minimum cardinality as a bases set. The main difference between them is that The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 151 1 1 1 2 3 2 3 3 4 4 5 2 6 2 on the local metric dimension the different representation are only required at adjacent vertices. RESULTS AND DISCUSSION In this section, we will discuss the definition of a relative prime graph built from a ring of modulo ๐‘› integer and an exploration of the basic properties of a relative prime graph related to the characteristics of a graph. The discussion begins with the definition of a relative prime graph. Definition 5. Let โ„ค๐‘› be a rings of modulo ๐‘› integer โ„ค๐‘›, where ๐‘› positive integer and ๐‘› โ‰  1. We defined a new graph ๐บ with ๐‘‰(๐บ) = โ„ค๐‘› โˆ–{0} and ๐ธ(๐บ) = {๐‘ข๐‘ฃ;๐‘ข relatively prime with ๐‘ฃ}. Graph ๐บ which formed from ring of modulo ๐‘› integer with add relatively prime as condition for adjacency two vertices are called relative prime graph, denoted by ๐บโ„ค๐‘›. The number of vertices of ๐บ๐‘๐‘›is denoted |๐‘‰(๐บโ„ค๐‘›)| and the number of edges is denoted |๐ธ(๐บโ„ค๐‘›)|. Example: A B C Figure 1. Some relative prime graphs A: ๐บโ„ค4; B: ๐บโ„ค5; C: ๐บโ„ค7 The graph on Figure 1: A: ๐บโ„ค4 consists of three vertices, namely 1,2,3 which are mutually relative prime. Hence vertex 1 adjacent to 2, vertex 2 adjacent to 3, and vertex 3 adjacent to 1. B: ๐บโ„ค5 consists of four vertices, namely 1,2,3,4. The adjacency of vertices 1,2,3 similar with condition of ๐บโ„ค4. Furthermore, vertex 4 is relatively prime to 1 and 3, while vertex 2 is not relatively prime to 4. Hence vertex 2 is not adjacent to 4. C: ๐บโ„ค7 consists of six vertices, namely 1,2,3,4,5,6. Vertex 1 is relatively prime to vertices 2,3,4,5,6; vertex 2 is relatively prime to vertices 1,3,5; vertex 3 is relatively prime to vertices 1,2,4,5; vertex 4 is relatively prime to vertices 1,3,5; vertex 5 is relatively prime to vertices 1,2,3,4,6; and vertex 6 is relatively prime to vertices 1,3,5. Since the three vertices (i.e. 2,4,6) are not relatively prime to each other, then they are not adjacent to each other. Likewise, vertex 3 is not adjacent to 6 because 3 is not relatively prime to 6. The results of this study begin with an exploration the basic properties of ๐บโ„ค๐‘›, furthermore determine the metric dimensions and local metric dimensions of ๐บโ„ค๐‘›. Based on Definition 5 above, there are some basic properties of ๐บโ„ค๐‘› for ๐‘› โ‰ฅ 2, as follows: a. The set of vertices in ๐บโ„ค๐‘›is ๐‘‰(๐บโ„ค๐‘›) = {1,2,3,โ€ฆ,๐‘› โˆ’ 1}, hence |๐ธ(๐บโ„ค๐‘›)| = ๐‘› โˆ’ 1. b. ๐บโ„ค๐‘› is not an empty graph. c. ๐บโ„ค๐‘› is a trivial graph for ๐‘› = 2 because it consist only one vertex. The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 152 d. ๐บโ„ค๐‘› is a connected graph. e. ๐บโ„ค๐‘› is a complete graph for ๐‘› = 2,3,4. Specifically for ๐‘› = 3 it is a path graph and for ๐‘› = 4 it is a sikel graph. f. ๐บโ„ค๐‘› is a regular graph for ๐‘› = 3,4 because every vertex has the same degree. g. There is a vertex 1 that adjacent to every vertex in ๐บโ„ค๐‘› for ๐‘› โ‰ฅ 3. Based on Definition 5, a vertex ๐‘ข is adjacent to vertex ๐‘ฃ if ๐‘ข is relatively prime with ๐‘ฃ. In ๐บโ„ค๐‘›, there are vertices that are adjacent to each vertex in ๐บโ„ค๐‘›, included in this category are vertex 1 and several vertices which are prime numbers. Based on the definition of two adjacent vertices on ๐บโ„ค๐‘›, the adjacency of vertices are divided into two groups, namely (1) vertices that are adjacent to every vertex, and (2) vertices that are not adjacent to each other. The vertices that not adjacent are the vertices that not relatively prime to each other, i.e. the vertices that have a common divisor other than 1. Furthermore, the vertices that have a common divisor other than 1 can be divided into multiple of 2, multiple of 3, multiple of 5, ..., multiple of 7, ... . Suppose ๐ด = {2,3,5,7,โ€ฆ} = {๐‘1,๐‘2,โ€ฆ,๐‘๐‘˜} represent a set of ordered prime numbers, then the non adjacent vertices are grouped together in multiples of 2, multiples of 3, ... to multiples of prime numbers ๐‘๐‘˜, where 2๐‘๐‘˜ โ‰ค ๐‘› โˆ’ 1. In this case, ๐‘๐‘˜ is the largest prime numbers and ๐‘˜ represents number of groups (multiples 2, multiples 3, etc.). The vertices that adjacent to every vertices in ๐บโ„ค๐‘› are categorized into group ๐‘0. Example: in ๐บโ„ค15, ๐‘‰(๐บโ„ค15) = {1,2,3,โ€ฆ, 14}. The grouping of vertices in ๐บโ„ค15 are: The vertices in group ๐‘0 are 1,11,13. The vertices in group of multiple ๐‘1= 2 are 2,4,6,8,10,12,14. The vertices in group of multiple ๐‘2= 3 are 3,6,9,12. The vertices in group of multiple ๐‘3= 5 are 5,10. The vertices in group of multiple ๐‘4= 7 are 7,14. In this case, there are four groups of multiples, where 7 is the largest prime number that satisfy 2x7 โ‰ค 14. The vertices 1,11,13 are adjacent to every vertex in ๐บโ„ค15 so that it is categorized in group ๐‘0. It appears that there are vertices that are in more than one group of multiples, for example vertices 6 and 12 are in groups of multiple 2 and multiple 3. Likewise, vertex 15 is in groups of multiple 3 and multiple 5. Furthermore, if ๐‘ƒ๐‘– is the set of vertices in the group of multiples ๐‘๐‘–, where ๐‘– = 1,2,โ€ฆ,๐‘˜ and โŒŠ๐‘ฅโŒ‹ represent the largest integer that same or less than ๐‘ฅ, then |๐‘ƒ๐‘–| = โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹. On ๐บโ„ค15, |๐‘ƒ1| = โŒŠ 14 2 โŒ‹ = 7; |๐‘ƒ2| = โŒŠ 14 3 โŒ‹ = โŒŠ4,67โŒ‹ = 4; |๐‘ƒ3| = โŒŠ 14 5 โŒ‹ = โŒŠ2,8โŒ‹ = 2; |๐‘ƒ4| = โŒŠ 14 7 โŒ‹ = 2. So, in general in ๐บโ„ค๐‘› the number of vertices in the group of multiples ๐‘๐‘– is โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹, while the number of vertices in the group of multiples ๐‘๐‘– and ๐‘๐‘— is โŒŠ ๐‘›โˆ’1 ๐‘๐‘–.๐‘๐‘— โŒ‹ where 1 โ‰ค ๐‘–,๐‘— โ‰ค ๐‘˜. The lemma that expressed the number of edge of ๐บโ„ค๐‘› is given as follows. Lemma 1. |๐ธ(๐บโ„ค๐‘›)| = (๐‘›โˆ’1)(๐‘›โˆ’2) 2 โˆ’ โˆ‘ ( โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹ 2 )๐‘˜๐‘–=1 , where โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹ is the number of vertices in groups of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜ and 2๐‘๐‘˜ โ‰ค ๐‘› โˆ’ 1. Proof. As explained above, the vertices on ๐บโ„ค๐‘› are divided into 2 major groups, namely the group ๐‘0 and the groups of multiples ๐‘๐‘–. Due to the specific properties of each group, the number of edges on graph ๐บโ„ค๐‘› can be calculated by asumption the number of edges of the complete graph with ๐‘› โˆ’1 vertices, then edge reduction is done based on the non relatively prime properties between any two vertices. As we know, the number of edge of the complete graph with ๐‘› โˆ’ 1 vertices is (๐‘›โˆ’1)(๐‘›โˆ’2) 2 . Since an edge is formed by two different vertices, The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 153 then there is a reduction in the edge for each group of multiples ๐‘๐‘– as many as ( โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹ 2 ). Thus, |๐ธ(๐บโ„ค๐‘›)| = (๐‘›โˆ’1)(๐‘›โˆ’2) 2 โˆ’ โˆ‘ ( โŒŠ ๐‘›โˆ’1 ๐‘๐‘– โŒ‹ 2 )๐‘˜๐‘–=1 ๏ฒ Table 1. Number of edges on graph ๐บโ„ค๐‘› ๐‘› |๐‘‰(๐บโ„ค๐‘›)| Groups of vertices Reduction of edge |๐ธ(๐บโ„ค๐‘›)| 2 1 - - 0 3 2 ๐‘0 : 1,2 - 2(2โˆ’ 1) 2 = 1 4 3 ๐‘0 : 1,2,3 - 3(3โˆ’ 1) 2 = 3 5 4 ๐‘0 : 1,3 - 4(4โˆ’ 1) 2 โˆ’ 1 = 5 ๐‘1 : 2,4 ( 2 2 ) = 1 6 5 ๐‘0 : 1,3,5 - 5(5โˆ’ 1) 2 โˆ’ 1 = 9 ๐‘1 : 2,4 ( 2 2 ) = 1 7 6 ๐‘0 : 1,5 - 6(6โˆ’1) 2 โˆ’3 โˆ’1 = 11 ๐‘1 : 2,4,6 ( 3 2 ) = 3 ๐‘2 : 3,6 ( 2 2 ) = 1 8 7 ๐‘0 : 1,5,7 - 7(7โˆ’1) 2 โˆ’3 โˆ’1 = 17 ๐‘1 : 2,4,6 ( 3 2 ) = 3 ๐‘2 : 3,6 ( 2 2 ) = 1 9 8 ๐‘0 : 1,5,7 - 8(8โˆ’1) 2 โˆ’6 โˆ’1 = 21 ๐‘1 : 2,4,6,8 ( 4 2 ) = 6 ๐‘2 : 3,6 ( 2 2 ) = 1 The degree of each vertex on any graph is the number of the vertices that adjacent to that vertex. Thus, the degree of vertex ๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›) is determined based on their adjacency to (๐‘› โˆ’ 2) other vertices as in Observation 2. Furthermore, Lemma 3 states the minimum and maximum degree of the vertex on ๐บโ„ค๐‘›. Observation 2. If deg๐บโ„ค๐‘› (๐‘ข) denoted the degree of any vertex ๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›), then deg๐บโ„ค๐‘› (๐‘ข) = |{๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›):๐‘ฃ relatively prime with ๐‘ข}|. Lemma 3. If ๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›), then deg๐บโ„ค๐‘› (๐‘ข) = { 0, 1, 2 โ‰ค deg๐บโ„ค๐‘› (๐‘ข) โ‰ค ๐‘› โˆ’ 2, ๐‘› = 2 ๐‘› = 3 ๐‘› โ‰ฅ 4 Proof. Let ๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›). The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 154 - For ๐‘› = 2, then ๐‘ข = 1 and ๐บโ„ค๐‘› is the trivial graph, hence deg๐บโ„ค๐‘› (๐‘ข) = 0. - For ๐‘› = 3, then ๐‘ข โˆˆ {1,2}. The number 1 is relatively prime with 2, hence vertex 1 adjacent to vertex 2. Thus, deg๐บโ„ค๐‘› (๐‘ข) = 1. - For ๐‘› โ‰ฅ 4, it means |๐‘‰(๐บโ„ค๐‘›)| โ‰ฅ 3. To show the minimum degree of any vertex is 2, we use Claim: every vertex in ๐บโ„ค๐‘› is adjacent to at least two other vertices. Proof of Claim: Since the criterion for two adjacency vertices are relative prime and the vertices in ๐บโ„ค๐‘› are natural numbers, it is sufficient to show that any natural number other than 1 must be relative prime to the natural number before and after it. Suppose any natural number ๐‘Ž where ๐‘Ž โ‰  1, it will be shown that ๐‘Ž relative prime with ๐‘Ž โˆ’ 1 and ๐‘Ž also relative prime with ๐‘Ž + 1. Based on Definition 2, the natural number ๐‘Ž is relative prime with ๐‘Ž โˆ’ 1 if there are integers ๐‘ and ๐‘ž such that 1 = ๐‘๐‘Ž + ๐‘ž(๐‘Ž โˆ’ 1). By choosing ๐‘ = 1 and ๐‘ž = โˆ’1, equality hold. Hence ๐‘Ž relative prime with ๐‘Ž โˆ’ 1. In a similar way, it can be shown that ๐‘Ž relative prime with ๐‘Ž + 1. Thus, ๐‘Ž adjacent to ๐‘Ž โˆ’ 1 and also ๐‘Ž adjacent to ๐‘Ž + 1. Therefore, for any ๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›), there are at least two vertices that adjacent to ๐‘ข, so deg๐บโ„ค๐‘› (๐‘ข) โ‰ฅ 2. On the other hand, based on the property of the group ๐‘0, where each vertex is adjacent to every vertex in ๐บโ„ค๐‘›, so for any ๐‘ข โˆˆ ๐‘ƒ0, deg๐บโ„ค๐‘› (๐‘ข) = |๐‘‰(๐บโ„ค๐‘›)|โˆ’ 1 = ๐‘› โˆ’ 1 โˆ’ 1 = ๐‘› โˆ’2 and this is the maximum degree of any vertex in ๐บโ„ค๐‘›. Thus, it is proven that 2 โ‰ค deg๐บโ„ค๐‘› (๐‘ข) โ‰ค ๐‘› โˆ’ 2, for ๐‘› โ‰ฅ 4 and the whole lemma is proven. ๏ฒ For example, on graph ๐บโ„ค7 we have ๐‘‰(๐บโ„ค7) = {1,2,3,4,5,6}. The degree of each vertex is: deg๐บโ„ค7 (1) = |{2,3,4,5,6}| = 5; deg๐บโ„ค7 (2) = |{1,3,5}| = 3; deg๐บโ„ค7 (3) = |{1,2,4,5}| = 4; deg๐บโ„ค7 (4) = |{1,3,5}| = 3; deg๐บโ„ค7 (5) = |{1,2,3,4,6}| = 5; deg๐บโ„ค7 (6) = |{1,5}| = 2. It can be seen that 2 โ‰ค deg๐บโ„ค7 (๐‘ข) โ‰ค 5, for every ๐‘ข โˆˆ ๐‘‰(๐บโ„ค7). In ๐บโ„ค๐‘›, there is vertex 1 which is adjacent to each vertex in ๐บโ„ค๐‘›. Several other vertices are also similar. Vertices of this property will form a complete subgraph of ๐บโ„ค๐‘› as shown in Theorem 4. Theorem 4. There is a complete subgraph formed by vertices of ๐บโ„ค๐‘›. Proof. A complete graph is a graph where every two vertices are adjacent. Based on the property of the vertices on ๐บโ„ค๐‘›, there are vertices that are adjacent to each vertex, namely the vertices in the group ๐‘0. These vertices will form the complete subgraph ๐พ๐‘š, where ๐‘š = |{๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›):gcd(๐‘ข,๐‘ฃ) = 1,โˆ€๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›)}|. ๏ฒ From Theorem 4, the vertices in ๐บโ„ค๐‘› that form the complete subgraph are vertices in group ๐‘0, where ๐‘š = |{๐‘ข โˆˆ ๐‘‰(๐บโ„ค๐‘›):gcd(๐‘ข,๐‘ฃ) = 1,โˆ€๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›)}| = |๐‘ƒ0|. On the other hand, the vertices in the group of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜ have the same property that they are not adjacent to each other. This inspires that the vertices in the group of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜ form the multipartite subgraph of ๐บโ„ค๐‘› which is stated in the Theorem 5. Theorem 5. For ๐‘› โ‰ฅ 5, ๐บโ„ค๐‘› is isomorphic with a ๐พ๐‘š + ๐ป graph where ๐ป is the ๐‘˜-partite graph, ๐พ๐‘š is a complete graph with ๐‘š vertices and ๐‘š = |๐‘ƒ0|. Proof. Based on Theorem 4, the vertices in the group ๐‘0 form the complete subgraph ๐พ๐‘š of ๐บโ„ค๐‘›. Meanwhile, the vertices in the group of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜ are not adjacent to The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 155 each other for each ๐‘–, so the vertices in the group of multiples ๐‘๐‘– can be partitioned into ๐‘˜ partitions with each partition consisting of vertices in the same group of multiples. On the same partition, there are no adjacent vertices according to the properties of the vertices in the group of multiples ๐‘๐‘–. The connectedness of the vertices between partitions is based on the relatively prime properties of these vertices. Since every vertex in ๐พ๐‘š is adjacent to every vertex in the group of multiples ๐‘๐‘–, this means that every vertex in ๐พ๐‘š is adjacent to every vertex on all partitions (as many as ๐‘˜ partitions) that are formed. Suppose the ๐‘˜ partitions formed along with adjacency their vertices are called graph ๐ป, then ๐ป is a ๐‘˜-partite graph formed from vertices in the group of multiples ๐‘๐‘–. Every vertex in the group ๐‘0 is adjacent to every vertex in ๐บโ„ค๐‘›, especially in the group of multiples ๐‘๐‘–. This means that every vertex in ๐พ๐‘š is adjacent to every vertex in ๐ป. Therefore, there is a bijective function ๐‘“ from ๐‘‰(๐บโ„ค๐‘›) to ๐‘‰(๐พ๐‘š + ๐ป) which preserves the adjacency between vertices in ๐บโ„ค๐‘›. Thus, ๐บโ„ค๐‘› โ‰… ๐พ๐‘š + ๐ป. ๏ฒ Theorem 5 applies for ๐‘› โ‰ฅ 5, spesifically for ๐‘› = 2,3,4 then ๐บโ„ค๐‘› โ‰… ๐พ๐‘›โˆ’1 (complete graph with ๐‘› โˆ’1 vertices). For example: on ๐บโ„ค8 where ๐‘‰(๐บโ„ค8) = {1,2,3,4,5,6,7}. โ‰… + ๐บโ„ค8 ๐พ3 + ๐ป2,2 Figure 2. Isomorphism ๐บโ„ค8 with ๐พ3 + ๐ป2,2 Figure 2 illustrates the isomorphism ๐บโ„ค8 with ๐พ3 + ๐ป2,2 where ๐ป2,2 is 2-partite graph. In ๐บโ„ค8, vertices 1,5,7 is adjacent to each vertex such that ๐‘š = 3. Meanwhile, the vertices in the group of multiples 2 are 2,4,6; the vertices in the group of multiples 3 are 3,6 and no vertex are multiples of 5, so there are 2 partitions. In the example above, the vertices on the first partition are 2 and 4, while the vertices on the second partition are 3 and 6. Since the number of vertices on the first partition is 2 and the number of vertices on the second partition is 2, it is written ๐ป2,2. The existence of graph ๐ป2,2 as a 2-partite graph is not unique. Another alternative is that if three vertices are selected on the first partition (i.e. vertices 2,4,6) and on the second partition one vertex is chosen (i.e. vertex 3), then the 2-partite graph in this case is written ๐ป3,1. Thus, ๐บโ„ค8 โ‰… ๐พ3 + ๐ป2,2 โ‰… ๐พ3 + ๐ป3,1. Next, we will be determined the value of the metric dimension and the local metric dimension of ๐บโ„ค๐‘› for ๐‘› โ‰ฅ 2. The determination of metric dimensions is calculated using the concept of the distance between two vertices, namely the length of the shortest path connecting the two vertices. Theorem 6. If ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›), then ๐‘‘(๐‘ข,๐‘ฃ) โ‰ค 2. Proof. Let ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›). Based on Theorem 5, there are three possibilities for ๐‘ข and ๐‘ฃ, namely (i) ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐พ๐‘š), (ii) ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐ป), dan (iii) ๐‘ข โˆˆ ๐‘‰(๐พ๐‘š) ,๐‘ฃ โˆˆ ๐‘‰(๐ป). (i) Suppose ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐พ๐‘š). Since ๐พ๐‘š is a complete graph, then distance between two different vertices is 1, so that ๐‘‘(๐‘ข,๐‘ฃ) = { 0, ๐‘ข = ๐‘ฃ 1, ๐‘ข โ‰  ๐‘ฃ . 1 2 3 5 4 7 6 1 5 7 3 2 4 6 The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 156 (ii) Suppose ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐ป), there are two condition, i.e. ๐‘ข and ๐‘ฃ on the same partitions or ๐‘ข and ๐‘ฃ on the different partitions. a. If ๐‘ข and ๐‘ฃ are vertex on the same partition, then there is ๐‘ง โˆˆ ๐‘‰(๐พ๐‘š) so that ๐‘‘(๐‘ข,๐‘ง) = 1 and ๐‘‘(๐‘ง,๐‘ฃ) = 1. Therefore, ๐‘‘(๐‘ข,๐‘ฃ) = 2. So ๐‘‘(๐‘ข,๐‘ฃ) = { 0, 2, ๐‘ข = ๐‘ฃ ๐‘ข โ‰  ๐‘ฃ . b. If ๐‘ข and ๐‘ฃ are vertices on the different partition, then the distance is 1 if ๐‘ข adjacent to ๐‘ฃ. For vertex ๐‘ข which is not adjacent to ๐‘ฃ, there is ๐‘ฅ โˆˆ ๐‘‰(๐พ๐‘š) so that ๐‘‘(๐‘ข,๐‘ฅ) = 1 and ๐‘‘(๐‘ฅ,๐‘ฃ) = 1. Therefore ๐‘‘(๐‘ข,๐‘ฃ) = 2. Thus ๐‘‘(๐‘ข,๐‘ฃ) = { 1, 2, gcd(๐‘ข,๐‘ฃ) = 1 gcd(๐‘ข,๐‘ฃ) โ‰  1 . (iii) Suppose ๐‘ข โˆˆ ๐‘‰(๐พ๐‘š) ,๐‘ฃ โˆˆ ๐‘‰(๐ป), then ๐‘‘(๐‘ข,๐‘ฃ) = 1 because every vertex in ๐พ๐‘š is adjacent to all vertices in ๐ป. From all possibilities (i), (ii), and (iii) it is proven that ๐‘‘(๐‘ข,๐‘ฃ) โ‰ค 2. ๏ฒ Corollary 7. Let ๐‘ข,๐‘ฃ โˆˆ ๐‘‰(๐บโ„ค๐‘›), ๐‘‘(๐‘ข,๐‘ฃ) = 2 if and only if ๐‘ข is not relatively prime to ๐‘ฃ. Proof. It is clear, is a direct result of Theorem 6. The vertices in the group ๐‘0 apart from forming a complete subgraph of ๐บโ„ค๐‘› are also adjacent to all vertices in ๐บโ„ค๐‘›. Due to this specific property, in determining the elements of the resolving set, only one vertex is allowed. On the other hand, the vertices in the group of multiples ๐‘๐‘– also have a specific property. Two groupings of vertices in ๐บโ„ค๐‘›, each group have specific properties, so it is impossible for the metric bases of ๐บโ„ค๐‘› consist of vertices in the group ๐‘0 or in the group of multiples ๐‘๐‘– only. This condition is illustrated in Theorem 8 below by observing the vertices in the group ๐‘0. Theorem 8. Every subset of ๐พ๐‘š is not a resolving set. Proof. Referring to Theorem 4, the vertices in group ๐‘0 form a complete subgraph with ๐‘š vertices and the metric dimension is ๐‘š โˆ’ 1. That is, the representation of other vertices in the group ๐‘0 against the ๐‘š โˆ’ 1 vertices is the same as the vertex representation outside the group ๐‘0 for the ๐‘š โˆ’ 1 verices. As a result, the set consisting of ๐‘š โˆ’ 1 vertices is not a resolving set. The same condition also applies to sets whose element are less than ๐‘š โˆ’ 1 vertices. Based on Theorem 5 which states ๐บโ„ค๐‘› โ‰… ๐พ๐‘š +๐ป, it is obtained that each vertex in ๐พ๐‘š is adjacent to every vertex in ๐ป, it means that the distance is 1. For the same reason, any vertex taken from ๐พ๐‘š is not a resolving set. Evidently, every subset of ๐พ๐‘š is not a resolving set. ๏ฒ Based on the proof of Theorem 8, the resolving set can not contain only vertices in ๐พ๐‘š. On the other hand, the vertices in groups of multiples ๐‘1,๐‘2, ..., ๐‘๐‘˜ has a similar property that are not adjacent to each other. Representation of two different vertices of a certain group of multiple to another vertices in the same group of multiple and to different groups of multiple are presented in the following Lemma 9 and Lemma 10. Lemma 9. If ๐‘ข,๐‘ฃ โˆˆ ๐‘ƒ๐‘–, where ๐‘ข โ‰  ๐‘ฃ, then ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘– โˆ– {๐‘ข,๐‘ฃ}) = ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘– โˆ–{๐‘ข,๐‘ฃ}). Proof. The vertices in the group of multiples ๐‘๐‘– have a similar characteristic, namely they are not adjacent. Based on the proof of Theorem 6 (ii) a, the distance between different vertices is 2. Thus, ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘– โˆ–{๐‘ข,๐‘ฃ}) = (2,2,โ€ฆ,2) and ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘– โˆ–{๐‘ข,๐‘ฃ}) = (2,2,โ€ฆ,2). Therefore, ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘– โˆ– {๐‘ข,๐‘ฃ}) = ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘– โˆ–{๐‘ข,๐‘ฃ}). ๏ฒ Lemma 10. If ๐‘ข,๐‘ฃ โˆˆ ๐‘ƒ๐‘—1, then ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘—2) = ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘—2), where 1 โ‰ค ๐‘—1, ๐‘—2 โ‰ค ๐‘˜ and ๐‘ข,๐‘ฃ โˆ‰ ๐‘ƒ๐‘—1 โˆฉ๐‘ƒ๐‘—2. The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 157 Proof. Based on the proof of Theorem 6 (ii) b, the distance between two vertices on different partitions is 1 or 2. Furthermore, ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘—2) = (๐‘‘(๐‘ข,๐‘๐‘—2),๐‘‘(๐‘ข,2๐‘๐‘—2),๐‘‘(๐‘ข,3๐‘๐‘—2),โ€ฆ,๐‘‘(๐‘ข,๐‘ก๐‘๐‘—2)) and ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘—2) = (๐‘‘(๐‘ฃ,๐‘๐‘—2),๐‘‘(๐‘ฃ,2๐‘๐‘—2),๐‘‘(๐‘ฃ,3๐‘๐‘—2),โ€ฆ,๐‘‘(๐‘ฃ,๐‘ก๐‘๐‘—2)), where ๐‘ก๐‘๐‘—2 โ‰ค ๐‘› โˆ’ 1. The distance between two vertices in different groups of multiples is 1 if the two vertices are relatively prime and the distance is 2 if they are not relatively prime. Since the properties of the group of multiples ๐‘๐‘—1 and multiples ๐‘๐‘—2 are similar, namely that the vertices are not adjacent in each group, while ๐‘ข and ๐‘ฃ are vertices in the same multiple group, then ๐‘Ÿ(๐‘ข|๐‘ƒ๐‘—2) = ๐‘Ÿ(๐‘ฃ|๐‘ƒ๐‘—2). ๏ฒ Based on the results of Lemma 9 and Lemma 10, the vertices in the group of multiple ๐‘๐‘– become element of the resolving set leaving only one vertex in each group. This also applies to the vertices in the group ๐‘0, which leaves only one vertex. Suppose that the vertex that must be left in the group of multiples ๐‘๐‘– are ๐‘Ž๐‘– where 1 โ‰ค ๐‘– โ‰ค ๐‘˜ and the vertex that must be left in the group ๐‘0 are ๐‘Ž0, the following is given the metric dimension of ๐บโ„ค๐‘›. Theorem 11. ๐ท๐‘–๐‘š(๐บโ„ค๐‘›) = ๐‘› โˆ’ ๐‘˜ โˆ’2, where ๐‘˜ represents number of groups of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜. Proof. Suppose ๐‘Š = ๐‘„0 โˆช ๐‘„1 โˆช ๐‘„2 โˆชโ€ฆโˆช๐‘„๐‘˜, where ๐‘„0 = ๐‘ƒ0 โˆ– {๐‘Ž0}, ๐‘Ž0 is an arbitrary vertex left from the group ๐‘0, ๐‘„1 = ๐‘ƒ1 โˆ– {๐‘Ž1}, ๐‘Ž1 is an arbitrary vertex left from the group of multiple ๐‘1, ๐‘„2 = ๐‘ƒ2 โˆ– {๐‘Ž2}, ๐‘Ž2 is an arbitrary vertex left from the group of multiple ๐‘2, โ‹ฎ ๐‘„๐‘˜ = ๐‘ƒ๐‘˜ โˆ– {๐‘Ž๐‘˜}, ๐‘Ž๐‘˜ is an arbitrary vertex left from the group of multiple ๐‘๐‘˜. The representation of every vertex in ๐‘‰(๐บโ„ค๐‘› โˆ–๐‘Š) with respect to ๐‘Š is: ๐‘Ÿ(๐‘Ž0|๐‘Š) = ( 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ0|โˆ’1 , 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ1|โˆ’1 , 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ2|โˆ’1 ,โ€ฆ, 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ๐‘˜|โˆ’1 ) ๐‘Ÿ(๐‘Ž1|๐‘Š) = ( 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ0|โˆ’1 , 2,2,2,โ€ฆ,2โŸ as many as |๐‘ƒ1|โˆ’1 ,๐‘‘(๐‘Ž1,๐‘„2),โ€ฆ,๐‘‘(๐‘Ž1,๐‘„๐‘˜)) ๐‘Ÿ(๐‘Ž2|๐‘Š) = ( 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ0|โˆ’1 ,๐‘‘(๐‘Ž2,๐‘„1), 2,2,2,โ€ฆ,2โŸ as many as |๐‘ƒ2|โˆ’1 ,โ€ฆ,๐‘‘(๐‘Ž2,๐‘„๐‘˜)) โ‹ฎ ๐‘Ÿ(๐‘Ž๐‘˜|๐‘Š) = ( 1,1,1,โ€ฆ,1โŸ as many as |๐‘ƒ0|โˆ’1 , ๐‘‘(๐‘Ž๐‘˜,๐‘„1), ๐‘‘(๐‘Ž๐‘˜,๐‘„2),โ€ฆ, 2,2,2,โ€ฆ,2โŸ as many as |๐‘ƒ๐‘˜|โˆ’1 ) where ๐‘‘(๐‘Ž๐‘–,๐‘„๐‘—) = { 1,if ๐‘Ž๐‘– โˆ‰ ๐‘ƒ๐‘— 2, if ๐‘Ž๐‘– โˆˆ ๐‘ƒ๐‘— , 1 โ‰ค ๐‘–,๐‘— โ‰ค ๐‘˜. It appears that the representation of every vertex with respect to ๐‘Š is different, so that ๐‘Š is a resolving set. Next, it will be shown that the cardinality of ๐‘Š is minimal. Suppose that any set ๐‘‹ is taken whose cardinality is one less than ๐‘Š, that is, |๐‘‹| = |๐‘Š|โˆ’ 1. There are three possibilities for elements of set ๐‘‹, namely (i) all vertices in group ๐‘0 are element of ๐‘‹; (ii) all vertices in the group of multiples ๐‘๐‘– are element of ๐‘‹; and (iii) all vertices of the group of multiple ๐‘๐‘— (certain ๐‘—), 1 โ‰ค ๐‘— โ‰ค ๐‘˜ being element of ๐‘‹. (i) If all vertices in the group ๐‘0 are element of ๐‘‹, then ๐‘˜ + 1 of the vertices in ๐บโ„ค๐‘› must be left in the group of multiples ๐‘๐‘– with the number of groups being ๐‘˜. a. Suppose that as many as ๐‘˜ โˆ’ 1 groups leave each one vertex, then there are two vertices that must be left by the group of multiple ๐‘๐‘— (certain ๐‘—), 1 โ‰ค ๐‘— โ‰ค ๐‘˜. Due to The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 158 the similar properties of vertices in the group of multiple ๐‘๐‘—, the representation of the two vertices with respect to ๐‘‹ will be the same. Thus ๐‘‹ is not being a resolving set. b. Suppose that all vertices in the ๐‘˜ โˆ’ 1 group are element of ๐‘‹, then there is one particular group, name the group of multiple ๐‘๐‘— (certain ๐‘—), 1 โ‰ค ๐‘— โ‰ค ๐‘˜ leaving ๐‘˜ + 1 vertex. For the same reason as (i)a, these ๐‘˜ โˆ’ 1 vertices will have the same representation of ๐‘‹ because the vertices in the group of multiples ๐‘๐‘— are non- mutually adjacent. So ๐‘‹ is not a resolving set. (ii) If all the vertices in the group of multiples ๐‘๐‘– are element of ๐‘‹, then |๐‘‹| = |๐‘Š| โˆ’ 1+ ๐‘˜ = (๐‘› โˆ’ 2 โˆ’ ๐‘˜) โˆ’ 1+ ๐‘˜ = ๐‘› โˆ’ 3 โ‰ฅ ๐‘› โˆ’ 2โˆ’ ๐‘˜ for ๐‘˜ โ‰ฅ 1. The equity hold only to ๐‘˜ = 1. So, for ๐‘˜ โ‰ฅ 2 then |๐‘‹| > |๐‘Š|. This contradicts the cardinality of the set ๐‘‹. (iii) If all vertices in a group of multiples ๐‘๐‘–, namely ๐‘๐‘— dengan 1 โ‰ค ๐‘— โ‰ค ๐‘˜ as element of ๐‘‹, then from the vertices in ๐บโ„ค๐‘› must be left ๐‘˜ + 1 vertices in ๐‘˜ โˆ’ 1 group of multiples ๐‘๐‘– (other than ๐‘๐‘—) and in the group ๐‘0. a. Suppose that all vertices in the group ๐‘0 are element of ๐‘‹, then from ๐‘˜ โˆ’ 1 group of multiples ๐‘๐‘– must be left ๐‘˜ vertices. This is similar to case (i). b. Suppose all vertices in the group of multiples ๐‘๐‘– (other than ๐‘๐‘—) are element of ๐‘‹, it means that all vertices in the group of multiples ๐‘๐‘– are element of ๐‘‹. This is similar to the case (ii). From all of the above possibilities it can be concluded that ๐‘‹ is not a resolving set. If all vertices in one group are selected as element of set ๐‘‹, then ๐‘‹ is not a resolving set. Likewise, if there is a group ๐‘0 or a group of multiples ๐‘๐‘– that leaves more than one vertex, it will result that ๐‘‹ not being a resolving set. Since |๐‘‹| = |๐‘Š| โˆ’ 1 and ๐‘Š are resolving set, it means that ๐‘Š is the resolving set with minimal cardinality or the metric bases of ๐บโ„ค๐‘›. Since each group leaves one vertex and the number of groups are ๐‘˜ +1, the metric dimension of ๐บโ„ค๐‘› is (๐‘› โˆ’ 1) โˆ’ (๐‘˜ + 1) = ๐‘› โˆ’ ๐‘˜ โˆ’ 2. It is proven that ๐‘‘๐‘–๐‘š(๐บโ„ค๐‘›) = ๐‘› โˆ’๐‘˜ โˆ’ 2. ๏ฒ Based on Theorem 11, the metric bases of ๐บโ„ค๐‘› consists of a combination of vertices in the group ๐‘0 and the group of multiples ๐‘๐‘– with the conditions each leaving only one vertex. The final part of this research is to determine the value of the local metric dimension of ๐บโ„ค๐‘› by first determining the local resolving set. In this case the vertex representation may be the same as long as the vertices are not adjacent. Theorem 12. ๐ท๐‘–๐‘š๐‘™(๐บโ„ค๐‘›) = |๐‘ƒ0| + ๐‘˜ โˆ’ 1, where ๐‘˜ representing number of groups of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜ and |๐‘ƒ0| is the cardinality of set ๐‘ƒ0. Proof. Based on the property of each group of multiples ๐‘๐‘–, ๐‘– = 1,2,โ€ฆ,๐‘˜, which the vertices are not mutually adjacent, the property of the group ๐‘0 that all elements are adjacent to every vertex, and according to the definition of the local metric dimension, then we choose the set ๐‘Š๐‘™ = {1,๐‘01,โ€ฆ,๐‘๐‘œ(๐‘šโˆ’2),๐‘11,๐‘21,โ€ฆ,๐‘๐‘˜1}, where 1,๐‘01,โ€ฆ,๐‘๐‘œ(๐‘šโˆ’2) are ๐‘š โˆ’ 1 vertices in the group ๐‘0, ๐‘11 is one vertex in the group of multiples ๐‘1, ๐‘21 is one vertex in the group of multiples ๐‘2, ๐‘๐‘˜1 is one vertex in the group of multiples ๐‘๐‘˜. The representation of every vertex in ๐บโ„ค๐‘› with respect to ๐‘Š๐‘™ is: ๐‘Ÿ(1|๐‘Š๐‘™) = (0,1,โ€ฆ,1,1,1,โ€ฆ,1); ๐‘Ÿ(๐‘01|๐‘Š๐‘™) = (1,0,โ€ฆ,1,1,1,โ€ฆ,1); ๐‘Ÿ(๐‘๐‘œ(๐‘šโˆ’2)|๐‘Š๐‘™) = (1,1,โ€ฆ,0,1,1,โ€ฆ,1); ๐‘Ÿ(๐‘11|๐‘Š๐‘™) = (1,1,โ€ฆ,1,0,1,โ€ฆ,1); ๐‘Ÿ(๐‘21|๐‘Š๐‘™) = (1,1,โ€ฆ,1,1,0,โ€ฆ,1); ๐‘Ÿ(๐‘๐‘˜1|๐‘Š๐‘™) = (1,1,โ€ฆ,1,1,1,โ€ฆ,0); The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 159 ๐‘Ÿ(๐‘02|๐‘Š๐‘™) = (1,1,โ€ฆ,1,1,1,โ€ฆ,1); ๐‘Ÿ(๐‘03|๐‘Š๐‘™) = (1,1,โ€ฆ,1,1,1,โ€ฆ,1); ๐‘Ÿ(๐‘12|๐‘Š๐‘™) = (1,1,โ€ฆ,1,2,2,โ€ฆ,1); ๐‘Ÿ(๐‘13|๐‘Š๐‘™) = (1,1,โ€ฆ,1,2,2,โ€ฆ,1); ๐‘Ÿ(๐‘14|๐‘Š๐‘™) = (1,1,โ€ฆ,1,2,2,โ€ฆ,1); ๐‘Ÿ(๐‘1๐‘ |๐‘Š๐‘™) = (1,1,โ€ฆ,1,2,2,โ€ฆ,1). It appears that ๐‘Ÿ(๐‘13|๐‘Š๐‘™) = ๐‘Ÿ(๐‘13|๐‘Š๐‘™) = ๐‘Ÿ(๐‘14|๐‘Š๐‘™) = ๐‘Ÿ(๐‘1๐‘ |๐‘Š๐‘™), but ๐‘12,๐‘13,๐‘14,๐‘1๐‘  are vertices in the group of multiples ๐‘1 which is not mutually adjacent. In the concept of local metric dimensions, the above still meets the criteria, meaning that ๐‘Š๐‘™ is a local resolving set. Next, it will be shown that the cardinality of ๐‘Š๐‘™ is minimal. Suppose any set ๐‘‹๐‘™ whose cardinality is reduced to one from the set ๐‘Š๐‘™, i.e. |๐‘‹๐‘™| = |๐‘Š๐‘™| โˆ’ 1. There are three possibilities for element of ๐‘‹๐‘™, namely (i) all vertices in group ๐‘0 become element of ๐‘‹๐‘™; (ii) at least one vertex from each group of multiples ๐‘๐‘– become element of ๐‘‹๐‘™; and (iii) the group ๐‘0 leaves more than one vertex. (i) Suppose that all vertices in the group ๐‘0 are members of ๐‘‹๐‘™, then there are ๐‘˜ โˆ’ 2 vertices from the group of multiple ๐‘๐‘– as many as ๐‘˜ that can be element of ๐‘‹๐‘™. Assuming at least one vertex in each group of multiple ๐‘๐‘– becomes a element of ๐‘‹๐‘™, it means that there are at least two groups whose vertices are not represented as element of ๐‘‹๐‘™. It is sufficient to show that there are two vertices from two different groups, these two vertices are adjacent and have the same representation respect to ๐‘‹๐‘™. Suppose that the two groups not represented in the element of the set ๐‘‹๐‘™ are the group of multiples ๐‘๐‘—1 and ๐‘๐‘—2 where 1 โ‰ค ๐‘—1, ๐‘—2 โ‰ค ๐‘˜. Vertex ๐‘๐‘—1 is adjacent to ๐‘๐‘—2 because both are prime numbers and are the first element in their respective group of multiples. In addition, vertices ๐‘๐‘—1 and ๐‘๐‘—2 are adjacent to all vertices in the group ๐‘0, so that ๐‘Ÿ(๐‘๐‘—1|๐‘‹๐‘™) = ๐‘Ÿ(๐‘๐‘—2|๐‘‹๐‘™). Consequently, ๐‘‹๐‘™ is not a resolving set. (ii) Suppose that at least one vertex from each group of multiples ๐‘๐‘– is a element of ๐‘‹๐‘™, then there are at least two vertices in the group ๐‘0 that are not element of ๐‘‹๐‘™. The two vertices in the group ๐‘0 will have the same representation respect to ๐‘‹๐‘™, because the two vertices in the group ๐‘0 are adjacent to every vertex in ๐บโ„ค๐‘›. So ๐‘‹๐‘™ is not a resolving set. (iii) Suppose that the group ๐‘0 leaves more than one vertex, then a. If the group ๐‘0 leaves two vertices, then whatever the condition for selecting vertices in the group of multiples ๐‘๐‘–, the remaining two vertices in the group ๐‘0 will have the same representation respect to ๐‘‹๐‘™. Consequently, ๐‘‹๐‘™ is not a resolving set. b. If the group ๐‘0 leaves more than two vertices, then there is a group of multiples ๐‘๐‘– where all the vertices are not ๐‘‹๐‘™ element. In this case, the remaining vertices in the group ๐‘0 will have the same representation of ๐‘‹๐‘™ regardless of the vertex conditions in the group of multiples ๐‘๐‘–. As a result, ๐‘‹๐‘™ is not a resolving set. From all of the above possibilities, it can be concluded that ๐‘‹๐‘™ is not a local resolving set. If there are more than one vertex left in group ๐‘0, then the representation of the remaining vertices respect to ๐‘‹๐‘™ will be the same. Likewise, if there is one or more groups of multiples ๐‘๐‘– that are not represented in the element of the set ๐‘‹๐‘™, it can always be found the vertices of the group of multiples ๐‘๐‘– which have the same representation respect to set ๐‘‹๐‘™ eventhough they are adjacent. Since |๐‘‹๐‘™| = |๐‘Š๐‘™| โˆ’ 1 and ๐‘Š๐‘™ are local resolving set, it can be concluded that ๐‘Š๐‘™ is a local resolving set with minimal cardinality or local metric bases of ๐บโ„ค๐‘›. The cardinality of the set ๐‘Š๐‘™ is the local metric dimension of ๐บโ„ค๐‘›. It is proven that ๐‘‘๐‘–๐‘š๐‘™(๐บ๐‘๐‘›) = |๐‘ƒ0|โˆ’ 1 + ๐‘˜. ๏ฒ Based on Theorem 12, the local metric bases consists of vertices in the group ๐‘0 and the group of multiples ๐‘๐‘–, provided that the group ๐‘0 leaves only one vertex while in each group of multiples ๐‘๐‘– are represented by only one vertex. The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 160 Example: Suppose given ๐บโ„ค17, where ๐‘‰(๐บโ„ค17) = {1,2,3,โ€ฆ, 16}. It will determine the metric dimension and the local metric dimension of ๐บโ„ค17 and some metric bases and local metric bases. Firstly, the vertices of ๐บโ„ค17 were grouped as follows: Group ๐‘0:1,11,13 then |๐‘ƒ0| = 3. Group of multiple 2 are 2,4,6,8,10,12,14,16. Group of multiple 3 are 3,6,9,12,15. Group of multiple 5 are 5,10,15. Group of multiple 7 are 7,14. There are four groups of multiples, namely multiples of 2, multiples of 4, multiples of 5, and multiples of 7, so ๐‘˜ = 4. (1) ๐‘‘๐‘–๐‘š(๐บโ„ค17) = 17 โˆ’ 4 โˆ’ 2 = 11. Some of the metric bases of ๐บโ„ค17 are: - ๐‘Š1 = {1,11,2,3,4,6,8,10,12,14,15}, then ๐‘Ÿ(5|๐‘Š1) = (1,1,1,1,1,1,1,2,1,1,2); ๐‘Ÿ(7|๐‘Š1) = (1,1,1,1,1,1,1,1,1,2,1); ๐‘Ÿ(9|๐‘Š1) = (1,1,1,2,1,2,1,1,2,1,2); ๐‘Ÿ(13|๐‘Š1) = (1,1,1,1,1,1,1,1,1,1,1); ๐‘Ÿ(16|๐‘Š1) = (1,1,2,1,2,2,2,2,2,2,1). - ๐‘Š2 = {1,13,2,3,4,6,10,12,14,15,16}, then ๐‘Ÿ(5|๐‘Š2) = (1,1,1,1,1,1,2,1,2,2,1); ๐‘Ÿ(7|๐‘Š2) = (1,1,1,1,1,1,1,1,2,1,1); ๐‘Ÿ(8|๐‘Š2) = (1,1,2,1,2,2,2,2,2,1,2); ๐‘Ÿ(9|๐‘Š2) = (1,1,1,2,1,2,1,2,1,2,1); ๐‘Ÿ(11|๐‘Š2) = (1,1,1,1,1,1,1,1,1,1,1). - ๐‘Š3 = {11,13,2,4,6,9,10,12,14,15,16}, then ๐‘Ÿ(1|๐‘Š3) = (1,1,1,1,1,1,1,1,1,1,1); ๐‘Ÿ(3|๐‘Š3) = (1,1,1,1,1,2,2,1,2,2,1); ๐‘Ÿ(5|๐‘Š3) = (1,1,1,1,1,1,2,1,1,2,1); ๐‘Ÿ(7|๐‘Š3) = (1,1,1,1,1,1,1,1,2,1,1); ๐‘Ÿ(8|๐‘Š3) = (1,1,2,1,2,1,2,2,2,1,2). (2) ๐‘‘๐‘–๐‘š๐‘™(๐บโ„ค17) = 3 โˆ’ 1+ 4 = 6. Some of the local metric bases of ๐บโ„ค17 are: - ๐‘Š๐‘™1 = {1,11,2,3,5,7}, then ๐‘Ÿ(4|๐‘Š๐‘™1) = (1,1,2,1,1,1); ๐‘Ÿ(6|๐‘Š๐‘™1) = (1,1,2,2,1,1); ๐‘Ÿ(8|๐‘Š๐‘™1) = (1,1,2,1,1,1); ๐‘Ÿ(9|๐‘Š๐‘™1) = (1,1,1,2,1,1); ๐‘Ÿ(10|๐‘Š๐‘™1) = (1,1,2,1,2,1); ๐‘Ÿ(12|๐‘Š๐‘™1) = (1,1,2,2,1,1); ๐‘Ÿ(13|๐‘Š๐‘™1) = (1,1,1,1,1,1); ๐‘Ÿ(14|๐‘Š๐‘™1) = (1,1,2,1,1,2); ๐‘Ÿ(15|๐‘Š๐‘™1) = (1,1,1,2,2,1); ๐‘Ÿ(16|๐‘Š๐‘™1) = (1,1,2,1,1,1). It appears that ๐‘Ÿ(4|๐‘Š๐‘™1) = ๐‘Ÿ(8|๐‘Š๐‘™1) and ๐‘Ÿ(6|๐‘Š๐‘™1) = ๐‘Ÿ(12|๐‘Š๐‘™1), but vertex 4 is not adjacent to 8 and vertex 6 is not adjacent to 12. - ๐‘Š๐‘™2 = {1,13,4,9,5,7}, then ๐‘Ÿ(2|๐‘Š๐‘™2) = (1,1,2,1,1,1); ๐‘Ÿ(3|๐‘Š๐‘™2) = (1,1,1,1,1,1); ๐‘Ÿ(6|๐‘Š๐‘™2) = (1,1,2,2,1,1); ๐‘Ÿ(8|๐‘Š๐‘™2) = (1,1,2,1,1,1); ๐‘Ÿ(10|๐‘Š๐‘™2) = (1,1,2,1,2,1); ๐‘Ÿ(11|๐‘Š๐‘™2) = (1,1,1,1,1,1); ๐‘Ÿ(12|๐‘Š๐‘™2) = (1,1,2,2,1,1); ๐‘Ÿ(14|๐‘Š๐‘™2) = (1,1,2,1,1,2); ๐‘Ÿ(15|๐‘Š๐‘™2) = (1,1,1,2,2,1); ๐‘Ÿ(16|๐‘Š๐‘™2) = (1,1,2,1,1,1). It appears that ๐‘Ÿ(2|๐‘Š๐‘™1) = ๐‘Ÿ(8|๐‘Š๐‘™1) and ๐‘Ÿ(6|๐‘Š๐‘™1) = ๐‘Ÿ(12|๐‘Š๐‘™1), but vertex 2 is not adjacent to 8 and vertex 6 is not adjacent to 12. - ๐‘Š๐‘™3 = {1,11,8,12,5,14}, then ๐‘Ÿ(2|๐‘Š๐‘™3) = (1,1,2,2,1,2); ๐‘Ÿ(3|๐‘Š๐‘™3) = (1,1,1,2,2,1); ๐‘Ÿ(4|๐‘Š๐‘™3) = (1,1,2,2,1,2); ๐‘Ÿ(6|๐‘Š๐‘™3) = (1,1,2,2,1,2); ๐‘Ÿ(7|๐‘Š๐‘™3) = (1,1,1,1,1,1); ๐‘Ÿ(9|๐‘Š๐‘™3) = (1,1,1,2,1,1); ๐‘Ÿ(10|๐‘Š๐‘™3) = (1,1,2,2,2,2); ๐‘Ÿ(13|๐‘Š๐‘™3) = (1,1,1,1,1,1); ๐‘Ÿ(15|๐‘Š๐‘™3) = (1,1,1,2,2,1); ๐‘Ÿ(16|๐‘Š๐‘™3) = (1,1,2,2,1,2). It appears that ๐‘Ÿ(2|๐‘Š๐‘™3) = ๐‘Ÿ(4|๐‘Š๐‘™3) = ๐‘Ÿ(6|๐‘Š๐‘™3) = ๐‘Ÿ(16|๐‘Š๐‘™3), but the vertices 2,4,6,16 are not adjacent to each other. The Metric Dimension and Local Metric Dimension of Relative Prime Graph Fatmawati 161 CONCLUSIONS This research focuses on determining the metric dimension and local metric dimension of relative prime graphs ๐บ๐‘๐‘›. Based on the previous discussion, it can be concluded that: (1) ๐‘‘๐‘–๐‘š(๐บ๐‘๐‘›) = ๐‘› โˆ’๐‘˜ โˆ’ 2; (2) ๐‘‘๐‘–๐‘š๐‘™(๐บ๐‘๐‘›) = |๐‘ƒ0| โˆ’ 1 + ๐‘˜, where ๐‘˜ is the number of group multiples ๐‘1,๐‘2,โ€ฆ,๐‘๐‘˜, and |๐‘ƒ0| is the cardinality of set ๐‘ƒ0. In the future, the research can be extended to other topics such as fractional metric dimensions, local fractional metric dimensions, domination numbers/set, graph coloring, and graph labeling as well as expansion of research objects in special rings. REFERENCES [1] G. Chartrand and L. Lesniak, Graphs and Digraphs, Third Edition, Chapman & Hall/CRC, Florida, 2000. [2] P. J. Slater, "Leaves and trees", Congr. Numer., 14, pp. 549-559, 1975. [3] F. Harary and R. A. Melter, "On the Metric Dimension of a Graph", Ars Combinatoria, Vol. 2, pp. 191-195, 1976. [4] J. A. Rodriquez-Velazquez, I. G. Yero, D. Kuziak and O. R. Oellermann, "On the strong metric dimension of cartesian and direct product of graphs", Discrete Mathematics 335, pp. 8-19, 2014. [5] F. Okamoto, B. Phinezy and P. Zhang, "The Local Metric Dimension of a graph", Math. Bohem., Vol. 135, pp. 239-255, 2010. [6] I. Beck, "Coloring of Commutative Rings", Journal of Algebra, Vol. 116, No.1, pp. 208- 226, 1988. [7] D. F. Anderson and P. S. Livingston, "The Zero-Divisor Graph of a Commutative Ring", Journal of Algebra 217, pp. 434-447 1999. [8] S. P. Redmond, "The zero-divisor graph of a non-commutative ring", International J. Commutative Rings 1(4), pp. 203-211, 2002. [9] S. P. Redmond, "Central Sets and Radii of the Zero-Divisor Graphs of Commutative Rings", Communications in Algebra 34, pp. 2389โ€“2401, 2006. [10] A. Azimi, A. Erfanian and D. G. Farrokhi, "The Jacobson Graph of Commutative Rings", Jounal of Algebra and its Application, DOI: 10.1142/S0219498812501794, 2012. [11] A. Novictor, L. Susilowati and Fatmawati, "Jacobson graph construction of ring Z3n, for n > 1", Journal of Physics: Conference Series 1494 (2020) 012016, doi:10.1088/1742- 6596/1494/1/012016, 2020. [12] J. B. Fraleigh, A First Course in Abstract Algebra, Addison-Wesley Publishing Company, Massachusetts, 2003. [13] G. Chartrand, L. Eroh, M. A. Johnson and O. R. Oellermann, "Resolvability in graphs and the metric dimension of a graph", Discrete Applied Mathematics 105, pp. 99-113, 2000.