Proof. Let and let such that . We discuss the following cases:
Case 1. for
According to Lemma 4, we find that , Hence, for . However, considering that , we can see that for . Additionally, we have , which implies that similarly, by Lemma 4, for , i.e., for . Consequently, for all vertices i of .
Case 2. for
Utilizing Lemma 4, we derive that for . However, given that , we note that for . We continue in the same manner as we did in the previous case, noting that this time, we have .
We establish the rest of the cases using the same approach as in Case 1, with the distinction being that in these instances and . □
4.1. Diameter of When n Is Even and s Is Odd
Lemma 6. When n is even and s is odd, Proof. Let us denote M as the minimum value between and , and let i represent a vertex of . According to Lemma 4, we find that , where and . It is worth noting that if , then ; otherwise, .
For , we find that and . If , then ; otherwise, . Therefore, for . By Lemma 5, if , then for all vertices i of . Consequently, we will have , which is the desired outcome. Hence, the remaining task is to prove that , a proof that will be presented in the following claim.
Claim 1. .
Proof. It is worth noting that if is even (or odd), given that n is even and s is odd, we conclude that is also even (or odd). Also, if , then ; otherwise, . Therefore, we will consider the following two cases:
Case 1.
Thus,
.
. (Since , )
Case 2.
. ()
.
(We have , so . Thus, . On the other hand, since and , then . Thus, . Moreover, we have . Hence, ) □
□
Lemma 7. Suppose n is even and s is odd. There is a vertex i in such that,
Proof. Let . Let be the set of all the possible values of . This set can be partitioned into: , , , and . Note that when . Moreover, In fact, when is odd (i.e., ), we have and . It is easy to verify that, when s is odd, we obtain . Similarly, when is even, we have .
Case 1.
Since is odd,
However, where . Thus, if , then . Otherwise, if , then . Hence, Moreover, is odd and . Thus, Therefore, when ,
Case 1.1.
In this case, Let be a vertex of We have,
Let be an integer. We have If then,
;
;
If i.e., , then where , and .
So, Thus,
Thus,
We have If then
;
;
If , i.e., , then
So,
Thus,
Thus, by Lemma 4, we have .
Case 1.2.
If then, we have , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If then, , , and Let be a vertex of . Since and , we obtain . Note that because . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 2.
Since is even,
Moreover, where . Thus, for s odd, we obtain . Hence, we have , , , and
Case 2.1.
In this case, . Let be a vertex of . Note that since , we obtain . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 2.2.
If , then , , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If , then , , and . Let be a vertex of . Since and , we have Note that because . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 3.
In this case, where . If , then Otherwise, if , then Since is odd and , we get Therefore, , , (when ), and Let be a vertex . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 4.
Here, we have where . If , then Otherwise, if , then Moreover, since is even and , we have Therefore, , , (when ), and Let be a vertex . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain . □
Thus, the following theorem follows from Lemmas 6 and 7.
Theorem 3. When n is even and s is odd, 4.2. Diameter of When Both n and s Are Even
Lemma 8. When both n and s are even, Proof. Since both n and s are even, is also even regardless of whether is even or odd. Let i represent a vertex of .
Case 1.
According to Lemma 4, we find that , where and . It is worth noting that if , then ; otherwise, if , then . For , we find that and . If , then ; otherwise, if , then . Therefore, for . By Lemma 5, if , then for all vertices i of . Consequently, we will have , which is the desired outcome. Hence, the remaining task is to prove that , a proof that will be presented in the following claim.
Claim 2. .
Proof. If is even, then,
.
. (, so )
Otherwise, if is odd, then,
. (, so )
.
(Assume that , i.e., , which implies that . Thus, . Contradiction with the fact that . Hence, ) □
Case 2.
For , we have . Therefore, according to Lemma 4, we find that . Moreover, as per the previous claim, we showed that , thus, by Lemma 5, for all vertices i of . Consequently, . □
Lemma 9. Suppose that both n and s are even. There is a vertex i in such that, Proof. Let
In this case, is even and because if , then (see Theorem 2).
Case 1.
Case 1.1. is even
In this case,
,
,
, and
Let
be a vertex of
.
Table 3 represents a simple calculation of the lengths
to
provided in Lemma 3.
Thus, by Lemma 4, we have .
Case 1.2. is odd
If then, , , and Let be a vertex of . Note that since , we have . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If then, , , and Let be a vertex of . Since and , we have . Note that because . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 2.
If is even, then , , , and Let be a vertex of . Note that since , we have . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If is odd then, , , , and Let be a vertex of . Since , we have . Similarly, by applying Lemma 4, we obtain . □
Thus, the following theorem follows from Lemmas 8 and 9.
Theorem 4. When both n and s are even, 4.3. Diameter of When Both n and s Are Odd
Theorem 5. When both n and s are odd, Proof. Let us denote M as the minimum value between and , and let i represent a vertex of . We prove, by the same method as in Lemma 6, that for , Then we prove, similarly as in Claim 1, that . Hence, by applying Lemma 5, we find that for all vertices i in . Hence,
Let Let be the set of all the possible values of . This set can be partitioned into: , , , and . Moreover, In fact, when is odd (i.e., ), we have and . It is easy to verify that, when s is odd, we obtain . Similarly, when is even, we have .
Case 1.
Since is odd,
However, we have
where
. Thus, if
, then
. Otherwise, if
, then
. Hence,
Moreover, we have
,
,
, and
Let
be a vertex of
Since
, we have
. Note that
because
.
Table 4 represents a simple calculation of the lengths
to
provided in Lemma 3.
Thus, by Lemma 4, we have .
Case 2.
Since is even,
However, we have where Thus, if , then . Otherwise, if , then . Hence, Therefore, , , , and
Case 2.1.
In this case, . Let be a vertex of . Note that . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 2.2.
If , then , , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If , then , , and . Let be a vertex of . Since and , we get Note that and because . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 3.
In this case, , , , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 4.
We have , , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Hence for all , there exists a vertex i of such that, Consequently, □
4.4. Diameter of When n Is Odd and s Is Even
Lemma 10. When n is odd and s is even, Proof. Since n is odd and s is even, is odd regardless of whether is even or odd. Let .
Case 1.
For , we find that and . According to Lemma 4, if , then ; otherwise, if , then . Therefore, we find that for . By Lemma 5, if , then for all vertices i of . Consequently, we will have , which is the desired outcome. Hence, the remaining task is to prove that , a proof that will be presented in the following claim.
Claim 3. .
Proof. If is even, then,
.
. ( even, so )
Otherwise, if is odd, then,
.
. ( even, so )
□
Case 2.
For , we find that and . According to Lemma 4, if , then ; otherwise, if , then . Therefore, we find that for . By Lemma 5, if , then we will have . Hence, the remaining task is to prove that , a proof that will be presented in the following claim.
Claim 4. .
Proof. If is even, then,
Otherwise, if is odd, then,
□
Case 3.
For , we have . Therefore, according to Lemma 4, we find that . Moreover, as per the previous claim, we showed that , thus, by Lemma 5, for all vertices i of . Consequently, . □
Lemma 11. Suppose that n is odd and s is even. There is a vertex i in such that Proof. Let
Case 1.
If
then,
,
, and
Let
be a vertex of
.
Table 5 represents a simple calculation of the lengths
to
provided in Lemma 3.
Thus, by Lemma 4, we have .
If , then , , and Let be a vertex of . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 2.
If is even, then , , and Let be a vertex of . Note that since , we have . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
If is odd then, , , , and Let be a vertex of . Note that since and , we get . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain .
Case 3.
We have , , , and Let be a vertex of . Note that since , we have . By a simple calculation of the lengths to represented in Lemma 3, and by applying Lemma 4, we obtain . This completes the proof. □
Thus, the following theorem follows from Lemmas 10 and 11.
Theorem 6. When n is odd and s is even, Next, we discuss the case when and .