1. Introduction
Prime numbers are key in number theory and they have always remained a matter fascination to the mathematicians, and many scientific and technical communities.
A polygon is a flat 2-dimensional () shape made of straight lines. The sides connect to form a closed shape. Diagonals of a polygon are the lines that connect the alternate vertices of the polygon. The number of diagonals of a polygon with n vertices is given by .
A
graph G is defined as the pair
, where
is the set of vertices of
G and
is the set of edges of
G. For two distinct vertices
a and
b of
, the notation
means that
a and
b are adjacent. A graph
G is said to be
complete if
for all distinct
, and
G is said to be
empty if
. Note by this definition that a graph may be empty even if
. An empty graph could also be described as totally disconnected. If
, a
path from
a to
b is a series of adjacent vertices
. The
length of a path is the number of edges it contains. A
cycle is a path that begins and ends at the same vertex in which no edge is repeated, and all vertices other than the starting and ending vertex are distinct. If a graph
G has a cycle, the
girth of
G (notated
) is defined as the length of the shortest cycle of
G; otherwise,
. A graph
G is
connected if for every pair of distinct vertices
, there exists a path from
a to
b. If there is a path from
a to
b with
, then the
distance from a to
b is the length of the shortest path from
a to
b and is denoted by
. If there is not a path between
a and
b,
. The
diameter of
G is diam
. A graph is said to be
planar if it can be drawn in the plane so that its edges intersect only at their ends [
1].
It is well known that we can translate some properties of number theory to graph theory language and then the geometric properties of graphs help us explore some interesting results in number theory. In this regard, we will discuss the relationship between prime numbers and diagonals of polygons. In addition, we will introduce and investigate two graphs related to the the set of number of diagonals of regular polygons.
2. Main Results
Notation and Remark 2.1. We know that the number of diagonals in
n-sided polygon
. Now, consider the following set that is the set of number of diagonals in
n-gon for
.
Set
. For example,
Then for , we have is a prime number. But is not a prime number.
Definition 2.2.
The graph related to the set of number of diagonals of regular polygons, denoted by , is an undirected simple graph whose vertices are and two distinct vertices x and y are adjacent if and only if is a prime number.
Example 2.3.
From the
Figure 1, the following can be obtained for the graph
:
- (a)
The prime numbers introduced form the graph
are the following set:
- (b)
.
- (c)
.
- (d)
is a connected graph.
Recall that a vertex with degree zero is called an isolated vertex.
Theorem 2.4.
Let . Then has no isolated vertex if for each there is a prime number p such that is a square odd number.
Proof. Assume that . Then for some . To see that has no isolated vertex, we need to find such that y is adjacent to . That is is a prime number p, say. So . It follows that . Set . Then or . Therefore, if we have that is a square odd number. □
Theorem 2.5.
is a planar graph for each .
Proof. This follows from the figure of the graph . □
Example 2.6.
We can deduce form the
Figure 2 (that show all edges of
but some vertex are repeated) that the prime numbers introduced form the graph
are the following set:
In fact, these prime number are with the form for some positive integer .
Example 2.7.
We can deduce form the
Figure 3 that (in fact, the
Figure 3 is a some of the shape of the graph
) the graph
is a connected graph for each
.
Theorem 2.8.
Let p be a prime number. Then P can be written as the difference of the number of diagonals of
- (a)
-gon and -gon, i.e. every prime number can be written as the difference of the diagonals of two consecutive polygons.
- (b)
-gon and -gon, where .
Proof. (a) Set
. Then
Thus p is a difference of the diagonals of n-gon and -gon.
(b) This follows from the fact that the number of diagonals of -gon is and the number of diagonals of -gon is . □
Example 2.9.
Consider
(the subset of
F in Notation and Remark 2.1) that is an array of set of the number of diagonals for
, where the pairs marked in red do not have a prime difference.
Then the set of prime numbers that is generated by
,
, …,
is as follows:
In fact, the elements of are the prime numbers with the form for . Continuing this way, we can create an infinite set of prime numbers with this form.
Example 2.10.
Consider
(the subset of
F in Notation and Remark 2.1) that is an array of set of the number of diagonals for
, where the pairs whose sum is not a prime number are highlighted in blue.
Then the set of prime numbers that is generated by
,
, …,
is as follows:
In fact, the elements of are the prime numbers with the form for 4, 6, 8, 10, 12, 14, 16, 20, 22, 28, 30, 34, 36, 38. Continuing this way, we can create an infinite set of prime numbers with this form.
Definition 2.11.
The another graph related to the set of number of diagonals of regular polygons, denoted by , is an undirected simple graph whose vertices are and two distinct vertices x and y are adjacent if and only if is a prime number.
Theorem 2.12.
Let . Then has no isolated vertex if for each there is a prime number p such that is a square odd number.
Proof. Assume that . Then for some . To see that has no isolated vertex, we need to find such that y is adjacent to . That is is a prime number p, say. So . It follows that . Set . Then or . Therefore, if we have that is a square odd number. □
Corollary 2.13.
If and such that is a prime number, then x is adjacent to y.
Proof. Set . By using the proof of Theorem 2.12, we get that . Now, the result follows from Theorem 2.12. □
Example 2.14.
We can see that in the
Figure 4 that
has no cycle for e
. The prime numbers introduced form the graph
are the following set:
Definition 2.15.
The graph related to the set of number of diagonals of regular polygons, denoted by , is an undirected simple graph whose vertices are that is the number of gon in regular polygons for and two distinct vertices n and m are adjacent if and only if the difference of number of diagonals of n-gon and m-gon be a prime number.
Proposition 2.16.
The graph is a bipartite graph with two parts and .
Proof. Clearly every element of
is of the form
for
or
for
and every element of
is of the form
or
for
. Now if
, then
or
and
or
. In any case, we have
is an even and so is not prime. Thus
x is not adjacent to
y. Similarly, any two elements of
are not adjacent. □
Example 2.17.
From the
Figure 5, the following can be obtained for the graph
:
- (a)
The graph is not connected for ;
- (b)
28 is an isolated vertex for ;
- (c)
for and ;
- (d)
for and ;
- (e)
If
n is an odd number, then the set of prime numbers generated from
is
first elements of
P in Example 2.14. For example
this set is