Let →G be a finite simple directed graph with n vertices, and let Γ be a finite abelian group of order n. A Γ-distance magic labeling is a bijection φ:V(→G)⟶Γ for which there exists c∈Γ such that ∑y∈N+(x)φ(y)−∑y∈N−(x)φ(y)=c for any x∈V(→G), where N+(x) and N−(x) denote the set of the head and the tail of x, respectively. In this paper, we obtain a necessary and sufficient condition for that there exists a Γ-distance magic labeling for the Cartesian products of two directed cycles.
Citation: Guixin Deng, Li Wang, Caimei Luo. Group distance magic labeling of the Cartesian product of two directed cycles[J]. Electronic Research Archive, 2025, 33(6): 4014-4026. doi: 10.3934/era.2025178
[1] | Yuriĭ G. Nikonorov, Irina A. Zubareva . On the behavior of geodesics of left-invariant sub-Riemannian metrics on the group $ \operatorname{Aff}_{0}(\mathbb{R}) \times \operatorname{Aff}_{0}(\mathbb{R}) $. Electronic Research Archive, 2025, 33(1): 181-209. doi: 10.3934/era.2025010 |
[2] | Xiaoyan Xu, Xiaohua Xu, Jin Chen, Shixun Lin . On forbidden subgraphs of main supergraphs of groups. Electronic Research Archive, 2024, 32(8): 4845-4857. doi: 10.3934/era.2024222 |
[3] | Huani Li, Xuanlong Ma . Finite groups whose coprime graphs are AT-free. Electronic Research Archive, 2024, 32(11): 6443-6449. doi: 10.3934/era.2024300 |
[4] | Yijun Chen, Yaning Xie . A kernel-free boundary integral method for reaction-diffusion equations. Electronic Research Archive, 2025, 33(2): 556-581. doi: 10.3934/era.2025026 |
[5] | A. A. Heliel, A. Ballester-Bolinches, M. M. Al-Shomrani, R. A. Al-Obidy . On $ \sigma $-subnormal subgroups and products of finite groups. Electronic Research Archive, 2023, 31(2): 770-775. doi: 10.3934/era.2023038 |
[6] | Donghyeon Kim, Jinsung Kim . Optimization of designing multiple genes encoding the same protein based on NSGA-II for efficient execution on GPUs. Electronic Research Archive, 2023, 31(9): 5313-5339. doi: 10.3934/era.2023270 |
[7] | Vanessa Barros, Carlos Nonato, Carlos Raposo . Global existence and energy decay of solutions for a wave equation with non-constant delay and nonlinear weights. Electronic Research Archive, 2020, 28(1): 205-220. doi: 10.3934/era.2020014 |
[8] | Sang-Eon Han . Digitally topological groups. Electronic Research Archive, 2022, 30(6): 2356-2384. doi: 10.3934/era.2022120 |
[9] | Yahui Liu, Jianbo Dai, Liang Hu, Guangxu Zhao . Large-scale content-based image retrieval system with metric learning and discrete binary encoding. Electronic Research Archive, 2025, 33(7): 4151-4164. doi: 10.3934/era.2025186 |
[10] |
Bing Sun, Liangyun Chen, Yan Cao .
On the universal |
Let →G be a finite simple directed graph with n vertices, and let Γ be a finite abelian group of order n. A Γ-distance magic labeling is a bijection φ:V(→G)⟶Γ for which there exists c∈Γ such that ∑y∈N+(x)φ(y)−∑y∈N−(x)φ(y)=c for any x∈V(→G), where N+(x) and N−(x) denote the set of the head and the tail of x, respectively. In this paper, we obtain a necessary and sufficient condition for that there exists a Γ-distance magic labeling for the Cartesian products of two directed cycles.
Let G=(V,E) be a finite undirected simple graph and →G=(V(→G),E(→G)) be a finite directed graph. If x,y∈V(→G) and there exists an arrow from x into y, then x is called a head of y and y is called a tail of x. Let N+(x) and N−(x) denote the set of the head and the tail of x, respectively. The neighborhood N(x) of a vertex x∈V(G) consists of the vertices adjacent to x.
Let G1,G2 be two graphs, and let →G1,→G2 be two directed graphs. The Cartesian product G1◻G2 is the graph with vertex set V(G1)×V(G2), and two vertices (g1,h1) and (g2,h2) are adjacent in G1◻G2 if and only if g1=g2 and h1 is adjacent to h2 in G2, or h1=h2 and g1 is adjacent to g2 in G1. Similarly, the Cartesian product →G1◻→G2 is the directed graph with vertex set V(→G1)×V(→G2) and there is a directed arrow from (g1,h1) to (g2,h2) in →G1◻→G2 if and only if g1=g2 and →h1h2∈E(→G2), or h1=h2 and →g1g2∈E(→G1). Let Cn and →Cn denote the cycle of length n and directed cycle of length n≥3, respectively.
The concept of group distance magic labeling of undirected graphs was introduced by Froncek in [1]. Let Γ be an abelian group and let φ:V⟶Γ be a mapping. We call w(v):=∑x∈N(v)φ(x) the weight of v with respect to φ for any v∈V. Then, φ is called a Γ-distance magic labeling if and only if φ is bijective and the weight is independent of the choice of v. The unique weight is called the magic constant of the magic labeling. A graph G is called Γ-distance magic if there exists a Γ-distance magic labeling of G.
Froncek [1] showed that Cm◻Cn is Zmn-distance magic if and only if 2∣mn for any integers m,n≥3, and he asked for the full characterization full characterization of abelian groups Γ such that Cm◻Cn is Γ-distance magic. Cichacz et al. [2] answered the above question for the case that m=n. Recently, we generalized the idea and determined all abelian groups Γ such that Cm◻Cn admits a Γ-distance magic labeling for any m,n≥3 in [3]. The result is stated as follows.
Theorem 1.1 ([3]). Let m,n>2 be integers and let Γ be an abelian group of order mn. Then, Cm◻Cn admits a Γ-distance magic labeling if and only if 2∣mn and l2d1∣exp(Γ), where l=lcm[m,n], d=gcd(m,n) and
d1={d,2∤dd2,2∣d,4∤dd4,4∣d. |
This type of labeling was generalized to the directed graph →G=(V(→G),E(→G)) in [4]. Suppose φ:V(→G)⟶Γ is a map. For any v∈V(→G), we call w(v):=∑y∈N+(v)φ(y)−∑y∈N−(v)φ(y) the weight of v with respect to φ. Then, φ is called a Γ-distance magic labeling of →G if and only if φ is bijective and there exists c∈Γ such that w(v)=c for any v∈V(→G). The constant c is called the magic constant of the labeling φ. It was shown that →Cm◻→Cn is Zmn-distance magic in [4].
Many people study the group magic labeling of directed graph, which included the directed antiprism, lexicographic product of graphs, Cartesian product of graphs, and complete multipartite graphs, see [5,6,7]. In this paper, we focus on the group distance magic labeling on the Cartesian product of two directed cycles →Cm◻→Cn. We give a necessary and sufficient condition for that →Cm◻→Cn admits a group distance magic labeling. This is another version of Theorem 1.1.
The present paper is organized as follows. In Section 2, we obtain some necessary conditions for a group magic labeling of →Cm◻→Cn to be Γ-distance magic. We present and prove the main result in Section 3.
In the remainder of this paper, we fix two integers m,n≥3 and let l=lcm[m,n] and d=gcd(m,n). Let Γ denote an abelian group of order mn. For convenience, we identity the vertices set of →Cm◻→Cn as the set of the equivalent classes on Z×Z defined by
(x1,y1)R(x2,y2)⇔x1≡y1(modm),x2≡y2(modn). |
There is a directed edge from (i,j)R to (i′,j′)R if and only if either i≡i′(modm) and j′−j≡1(modn), or j≡j′(modm) and i′−i≡1(modm). Let Ds={(i,j)R∈V(→Cm◻→Cn):j−i≡s(modd)} for s=0,1,…,d−1. We have a partition of V(→Cm◻→Cn)=∪d−1s=0Ds, and we call D0,D1,…,Dd−1 the diagonals of →Cm◻→Cn.
We need the following basic fact, see [8].
Lemma 2.1. Let ni,ai be integers, i=1,2. The following system of congruence equations
{x≡a1(modn1)x≡a2(modn2), |
is solvable if and only if gcd(n1,n2)∣a1−a2.
Lemma 2.2. Let k be the minimal positive integer such that the following congruence equation
{t≡−2k(modm)t≡2k(modn) |
has a solution t0. Then,
gcd(t0,l)={d⋅gcd(2,l),2∤dd,2∣d,4∤dd2,4∣d. |
Proof. If 2∤d, then k=d and
{t0≡−2d(modm)t0≡2d(modn). |
Without loss of generality, we may assume that 2∤n. So, gcd(t0d,md)=gcd(−2,md)=gcd(2,l) and gcd(t0d,nd)=gcd(2,nd)=1. Hence,
gcd(t0,l)=dgcd(t0d,mnd2)=dgcd(2,l). |
If d≡2(mod4), then k=d2. So, gcd(t0,l)=dgcd(t0d,mnd2)=d.
If 4∣d, then k=d4 and gcd(t0,l)=d2gcd(2t0d,2mnd2)=d2. This finishes the proof.
Suppose m=∏ri=1ptii and n=∏ri=1psii are the prime factorizations of m and n. Define f(m,n):=∏ri=1puii, where
ui={max{ti,si},si≠ti0,si=ti. |
The following lemma gives many information about the labeling of the diagonals and the magic constant for a group magic labeling of →Cm◻→Cn. Recall that the order of an element x of a finite abelian group, which is denoted by o(x), is equal to the minimal positive integer k such that kx=0.
Lemma 2.3. Suppose that φ:V(→Cm◻→Cn)⟶Γ is a Γ-distance magic labeling with magic constant c. Let xij=φ((i,j)R) and aij=xij−xi+1,j+1 for any integer i,j. Let
d′={d⋅gcd(2,l),2∤dd,2∣d,4∤dd2,4∣d. |
Then,
(1) d′ is a period of the sequence {ai+k,j+k}∞k=0;
(2) {xi+kd′,j+kd′}∞k=0 is an arithmetic sequence of common difference hij, whose order is equal to ld′;
(3) If (i,j)R and (i′,j′)R are in the same diagonal of →Cm◻→Cn, then hij=hi′,j′;
(4) The set of the labeling on the diagonal which contained (i,j)R is a union of d′ cosets of the cyclic group generated by hij;
(5) If 2∤l, then o(c)=l;
(6) If 2∣l and 4∤d, then f(l2,d′2)∣o(c)∣l2.
Proof. (1) By hypothesis, we have
w((i,j)R)=xi−1,j−xi,j+1+xi,j−1−xi+1,j=ai−1,j+ai,j−1=c, |
for any i,j. Replacing i,j by i+1,j−1 respectively in the above equation, we obtain ai−2,j+1+ai−1,j=c, and thus ai−1,j=ai+1,j−2. It follows that aij=ai−2k,j+2k for any integers i,j,k. By Lemma 2.2, there exist integers k and t0 such that
{t0≡−2k(modm)t0≡2k(modn), |
and gcd(t0,l)=d′. We obtain aij=ai−2k,j+2k=ai+t0,j+t0. Since both l and t0 are periods of {ai+k,j+k}∞k=0, it follows that d′=gcd(t0,l) is also a period of {ai+k,j+k}∞k=0.
(2) Now, for any i,j,k, we have
xi+kd′,j+kd′−xi+(k+1)d′,j+(k+1)d′=d′−1∑r=0(xi+kd′+r,j+kd′+r−xi+kd′+r+1,j+kd′+r+1)=d′−1∑r=0ai+kd′+r,j+kd′+r=d′−1∑r=0ai+r,j+r=xij−xi+d′,j+d′. |
Thus, {xi+kd′,j+kd′}ld′−1k=0 is an arithmetic sequence of common difference hij=−∑d′−1r=0ai+r,j+r. Since φ is a bijection, xi+kd′,j+kd′=xij+khij=xij if and only if l∣kd′. It follows that ld′hij=0 and rhij≠0 for any positive integer r<ld′. So, o(hij)=ld′.
(3) Assume that i′≡i+t(modm) and j′≡j+t(modn) for some integers t. By (1), the sum of any consecutive d′ terms in the sequence {ai+k,j+k}∞k=0 are equal. Combining this with the discussion in (2), we have
hi′,j′=−d′−1∑r=0ai+t+r,j+t+r=−d′−1∑r=0ai+r,j+r=hij. |
(4) By (1) and (2), we have
{xi+t,j+t:0≤t≤l−1}=d′−1⋃r=0{xi+r+kd′,j+r+kd′:0≤k<ld′}=d′−1⋃r=0{xi+r,j+r+khij:0≤k<ld′}=d′−1⋃r=0(xi+r,j+r+<hij>). |
This proves (4).
(5) Since 2∤l, we have d′=d. Recall that ai−1,j+1=ai−1−2k,j+1+2k for any i,j,k. Setting k=d−12, one has
ai−1,j+1=ai−d,j+d. |
Let t satisfy that
{t≡−d(modm)t≡d(modn). |
Then, d divides t, and we obtain that ai−1,j+1=ai−d,j+d=ai+t,j+t=aij by (1). It follows that 2aij=ai−1,j+1+aij=c. Therefore, we deduce that 2aij=2ai′j′=c for any i,j,i′,j′. Since 2∤mn=|Γ|, one has aij=ai′,j′=a. Thus, the sequence {xi+k,j+k}l−1k=0 is an arithmetic sequence of common difference −a with pairwise distinct terms. So, the order of −a is exactly l, and o(c)=o(2a)=o(a)gcd(2,o(a))=o(a)=l.
(6) We have d′≡2(mod4) in this case. So,
ai−1,j+1=ai−1−2⋅d′−24,j+1+2⋅d′−24=ai−d′2,j+d′2. |
Let t satisfy that
{t≡−d′2(modm)t≡d′2(modn). |
Since 2∣l and d′2 is odd, at least one of m,n is even and t is odd. There exists r∈Z such that t=d′2(2r+1). So, we have ai−1,j+1=ai+t,j+t=ai+d′2,j+d′2 by (1). Hence,
aij+ai+d′2,j+d′2=aij+ai−1,j+1=w(i,j+1)=c. |
Hence,
xij−xi+d′,j+d′=d′−1∑k=0(xi+k,j+k−xi+k+1,j+k+1)=d′−1∑k=0ai+k,j+k=d′2−1∑k=0(ai+k,j+k+ai+k+d′2,j+k+d′2)=d′2c. |
Combining with (2), we obtain l2c=ld′⋅d′2c=ld′(−hij)=0, and thus o(c)∣l2. Suppose l2=∏ri=1ptii, d′2=∏ri=1psii, and o(c)=∏ri=1puii are the prime factorizations of l2, d′2, and o(c). Since o(d′2c)=o(c)gcd(o(c),d′2)=ld′=∏ri=1pti−sii, we obtain ui−min{si,ui}=ti−si. It implies that ui=ti if ti>si. Therefore, f(l2,d′2)∣o(c).
In this section, we present and prove the main result of this paper. We begin with two useful lemmas.
Lemma 3.1 ([3]). Let B be a subgroup of an abelian group Γ such that |Γ||B|=2k. Then, there exist xi,yi,c∈Γ, i=0,1,…,k−1 such that xi+yi=c and
Γ=(k−1⋃i=0(xi+B))⋃(k−1⋃i=0(yi+B)). |
We need the following lemma in the construction of magic labeling in our main result.
Lemma 3.2. Let H be an abelian group. Suppose |H|=l is even and d is an odd divisor of l. Suppose c∈H and f(l2,d)∣o(c)∣l2. Then we can arrange the elements in H as a sequence z0,z1,…,zl−1 such that
zi−zi+1+zi+d−zi+d+1=c |
for all i, where the subscripts are calculated modulo l.
Proof. Let C=<c> and B=<dc>=<d1c> be the cyclic group generated by c and dc, where d1=gcd(o(c),d). We first compute |B|=o(dc). Let l=2m0⋅∏ki=1pmii and d=∏ki=1pnii be the prime factorization of l and d, where pi≥3, mi>ni for i∈{1,2,…,t}, and mi=ni for i∈{t+1,t+2,…,k}. Then, f(l2,d)=2m0−1∏ti=1pmii. Since f(l2,d)∣o(c)∣l2, we may assume that o(c)=2m0−1∏ki=1psii, where si=mi for i∈{1,2,…,t} and si≤mi for i>t. It follows that
o(dc)=o(c)gcd(o(c),d)=2m0−1∏ki=1psii∏ki=1pmin{si,ni}i=2m0−1k∏i=1psi−min{si,ni}i=2m0−1t∏i=1pmi−nii=l2d. |
We obtain |H||C|=2dd1. By Lemma 3.1, there exists x0,x1,…,x2dd1−1,b∈H such that H=∪2dd1−1i=0(xi+C), and xi+xi+dd1=b for each i calculated modulo 2dd1. Combining this with that C=∪d1−1j=0(jc+B), we have
H=2dd1−1⋃i=0(xi+C)=2dd1−1⋃i=0d1−1⋃j=0(xi+jc+B). |
We first claim that there exist integers t0,t1 such that such that t0+t1=dd1 and gcd(t0,d1)=gcd(t1,d1)=1.
Let d1=∏ri=1peii be the prime factorization of d1. Suppose dd1≡yi(modpeii) where 0≤yi≤peii−1. Let
(ui,vi)={(1,yi−1),pi∤yi−1(2,yi−2),pi∣yi−1. |
By the Chinese Remainder Theorem, there exist t0,q such that t0≡ui(modpi) and q≡vi(modpi). Since t0+q≡yi≡dd1(modpeii), we have d1∣dd1−t0−q, and there exists an integer k such that kd1=dd1−t0−q. Let t1=q+kd1. Then, dd1=t0+t1 and gcd(t0,pi)=gcd(t1,pi)=1.
Now we define a sequence zi for any integer i as follows. Write
i=2qd+kdd1+s,0≤k<2d1,0≤s<dd1. | (3.1) |
Then, by the division algorithm, we set
zi:={xi+(qd+s+kt0)c,2∣k,0≤k<d1xi+(qd+s+(k−d1)t0)c,2∣k,d1≤k<2d1xi+(qd+kt1)c,2∤k,0≤k<d1xi+(qd+(k−d1)t1)c,2∤k,d1≤k<2d1. | (3.2) |
Recall that the subscript of x′i is calculated modulo 2dd1. We see that i↦zi is well-defined and l is a period of {zi}i∈Z. For i given in the form (3.1), we have
i+d={2qd+(k+d1)dd1+s,0≤k<d12(q+1)d+(k−d1)dd1+s,d1≤k<2d1. |
Hence,
zi+d={xi+d+(qd+kt1)c,2∣k,0≤k<d1xi+d+((q+1)d+(k−d1)t1)c,2∣k,d1≤k<2d1xi+d+(qd+s+kt0)c,2∤k,0≤k<d1xi+d+((q+1)d+s+(k−d1)t0)c,2∤k,d1≤k<2d1. | (3.3) |
Combining (3.2) and (3.3), we obtain that
zi+zi+d=b+(2qd+kdd1+s)c=b+ic, |
for any i. Therefore,
zi−zi+1+zi+d−zi+d+1=−c. |
Replacing zi by −zi, we may assume that zi−zi+1+zi+d−zi+d+1=c.
It remains to show that H={zi:0≤i<l}.
We claim that:
(i) {zi+2jd:0≤j<l2d}=zi+B is a coset of B for i=0,1,…,2d−1;
(ii) Xi={zi+j2dd1:0≤j<ld12d}=xi+C is a coset of C for i=0,1,…,2dd1−1.
Indeed, we have zi+2jd−zi=jdc by (3.2) for any j. It follows that {zi+2jd:0≤j<l2d}={zi+jdc:0≤j<l2d}=zi+B. This proves (i).
For j1∈{0,1,…,ld12d−1}, write j1=rd1+j, where 0≤r<l2d, 0≤j<d1. By (i) of the claim, we have
{zi+j12dd1:0≤j1<ld12d}={zi+(rd1+j)2dd1:0≤r<l2d,0≤j<d1}=d1−1⋃j=0{zi+j2dd1+2dr:0≤r<l2d}=d1−1⋃j=0(zi+j2dd1+B). |
The proof of (ii) is divided into two cases.
If 0≤i<dd1, by (3.2), we obtain that
zi+j2dd1={xi+(i+2jt0)c,0≤j<d1+12xi+(i+(2j−d1)t0)c,d1+12≤j<d1. |
Hence, {zi+j2dd1:0≤j<d1}={xi+(i+jt0)c:0≤j<d1} and
Xi=d1−1⋃j=0(zi+j2dd1+B)=d1−1⋃j=0(xi+(i+jt0)c+B). | (3.4) |
If dd1≤i<2dd1, then i+j2dd1=(2j+1)dd1+(i−dd1). By (3.2) again, we deduce that
zi+j2dd1={xi+(2j+1)t1c,0≤j<d1−12xi+(2j+1−d1)t1c,d1−12≤j<d1. |
In this case, we have {zi+j2dd1:0≤j<d1}={xi+jt1c:0≤j<d1} and
Xi=d1−1⋃j=0(zi+j2dd1+B)=d1−1⋃j=0(xi+jt1c+B). | (3.5) |
Note that both {i+jt0:0≤j<d1−1} and {jt1:0≤j<d1} are complete systems of residues modulo d1 since gcd(t0,d1)=gcd(t1,d1)=1. Recall that C=<c> and B=<d1c>. So,
C=d1−1⋃j=0(jc+B)=d1−1⋃j=0((i+jt0)c+B)=d1−1⋃j=0(jt1c+B). | (3.6) |
Coming with (3.4), (3.5), and (3.6), we obtain that
Xi=d1−1⋃j=0(xi+jc+B)=xi+C |
for i=0,1,…,2dd1−1. Finally, {zi:0≤i<l}=∪2dd1−1i=0Xi=∪2dd1−1i=0(xi+C)=H. The proof is finished.
Theorem 3.3. →Cm◻→Cn is Γ-distance magic if and only if l1∣exp(Γ), where
l1={2ld,4∣d12f(l,d),2∣l,4∤d,2∣ldf(l,d),l≡d≡2(mod4)l,2∤l. |
Proof. Let
d′={d⋅gcd(2,l),2∤dd,d≡2(mod4)d2,4∣d. |
It is straightforward to verify that
f(l2,d′2)={12f(l,d),2∣l,4∤d,2∣ldf(l,d),l≡d≡2(mod4). |
So, the necessity follows from (2),(5), and (6) of Lemma 2.3.
Let H be a subgroup of Γ with order l, and let V=V(→Cm◻→Cn). We have the following claim.
Claim 1: Suppose there exists a labeling ψ:V⟶H with the following properties.
(i) The restriction ψ|Ds is a bijection for s=0,1,…,d−1;
(ii) There exists c∈H such that the weight of any vertex with respect to ψ is c.
Then, there exists a Γ-distance magic labeling of →Cm◻→Cn with magic constant c.
Proof of the Claim 1: Since |Γ||H|=d, there exist b0,b1,…,bd−1∈Γ such that Γ=∪d−1i=0(bi+H). We define φ:V⟶Γ by
φ((i,j)R):=ψ((i,j)R)+bs,(i,j)R∈Ds. |
Then, φ is a bijection by (i), and
φ((i−1,j)R)−φ((i,j+1)R)+φ((i,j−1)R)−φ((i+1,j)R)=ψ((i−1,j)R)−ψ((i,j+1)R)+ψ((i,j−1)R)−ψ((i+1,j)R)=c. |
Claim 2: We have Ds={(i,i+s)R:0≤i<l}. Let v=(i,i+s)R∈Ds. Then,
(1) If 1≤s≤d−2, then N+(v)={(i−1,i+s)R,(i,i+s−1)R};
(2) If s=0, then N+(v)={(i−1,i)R,(i+k0,i+k0+d−1)R};
(3) If s=d−1, then N+(v)={(i−k0−1,i−k0−1)R,(i,i+d−2)R};
where m∣k0 and k0≡−d(modn).
Proof of the Claim 2: (1) is obvious. If s=0, then N+(v)={(i−1,i)R,(i,i−1)R}. By the choice of k0, we see that
{i≡i+k0(modm)i−1≡i+k0+d−1≡−d(modn). |
So, (i,i−1)R=(i+k0,i+k0+d−1)R. The proof of (3) is similar.
We divide the proof into three cases.
Case 1: If 2∤l, then l∣exp(Γ). Let h∈Γ with order l, and let H be the cyclic subgroup of Γ generated by h. We label the (i,i+s)R↦xi,i+s:=ih for (i,i+s)R∈Ds. It is straightforward to check that this labeling satisfies the conditions in Claim 1.
Case 2: 4∣d. Since 2ld∣exp(Γ), there exists an element h∈Γ with order 2ld. Let H be a subgroup of Γ such that |H|=l and h∈H. Suppose H=∪d2−1j=0(zj+<h>). We first label D2s by
(i,i+2s)R↦xi,i+2s:=(−1)s(zr+qh), |
where 0≤s<d2, i+s=qd2+r,0≤r<d2.
For (i,j)R∈D2s+1, we label (i,j)R by xij:=xi,j−1, which is a translation of the labeling on D2s.
It is straightforward to verify that
xi,i+2s−xi+1,i+2s+1={(−1)s(zr−zr+1),0≤r<d2−1(−1)s(zd2−1−z0−h),r=d2−1. |
Now we compute the weight of v=(i,i+2s+1)∈D2s+1 with respect to the labeling. Suppose i+s=qd2+r,0≤r<d2.
If s<d−22, then (i−1,i+2s+1)R,(i,i+2s+2)R∈D2s+2 and (i,i+2s)R,(i+1,i+2s+1)R∈D2s. Then,
w(v)=xi−1,i+2s+1−xi,i+2s+2+xi,i+2s−xi+1,i+2s+1={(−1)s+1(zr−zr+1)+(−1)s(zr−zr+1),0≤r<d2−1(−1)s+1(zd2−1−z0−h)+(−1)s(zd2−1−z0−h),r=d2−1=0. |
If s=d−22, then N+(v)={(i−k0−1,i−k0−1)R,(i,i+d−2)R} by (3) of Claim 2, where m∣k0 and k0≡−d(modn). So, N−(v)={(i−k0,i−k0)R,(i+1,i+d−1)R}. In this case, we have
xi−k0−1,i−k0−1−xi−k0,i−k0={zr−zr+1,0≤r<d2−1zd2−1−z0−h,r=d2−1. |
Hence,
w(v)=xi−k0−1,i−k0−1−xi−k0,i−k0+xi,i+d−2−xi+1,i+d−1=0. |
Case 3: 2∣l and 4∤d. Note that l1=f(l2,d′2)∣exp(Γ) and d′2 is odd. Fix an element c∈Γ such that f(l2,d′2)∣o(c)∣l2. There exists a subgroup H of Γ with order l containing c. By Lemma 3.2, we can order the elements in H as a sequences z0,z1,…,zl−1 such that
zi−zi+1+zi+d′2−zi+d′2+1=c, | (3.7) |
where the subscript is calculated modulo l.
It is easy to deduce that
zi−zi+1+zi+(2k+1)d′2−zi+(2k+1)d′2+1=c | (3.8) |
from (3.7).
We divide the remains of the proof of Case 3 into two subcases. Without loss of generality we may assume that 2∣m.
Subcase 3.1: 2∣d and d=d′. We label Ds by
(i,i+s)R↦{zi+s2(d+1),2∣szi+(s+d2)(d+1),2∤s,0≤i≤l−1. |
It is clear that the labeling satisfies (i) of Claim 1. Note that the labeling on Ds for odd s is a translation of the labeling of Ds for even s. So, we only need to compute the weight of the vertices on D2s+1.
Let v=(i,i+2s+1)R∈D2s+1. If s≤d−32, then
w(v)=zi+s(d′2+1)−zi+s(d′2+1)+1+zi+(s+1)d′2+s−zi+(s+1)d′2+s+1=c |
by Eq (3.7) and the definition of the labeling.
If s=d−32 and v=(i,i+d−1)R, then N+(v)={(i−k0−1,i−k0−1)R,(i,i+d−2)R} by (3) of Claim 2.
Note that (i,i+d−2)R↦zi+d−22(d2+1) and (i−k0−1,i−k0−1)R↦zi−k0−1. Recalling that 2∣m and m∣k0, we obtain
d−22(d2+1)+k0+1≡d22(modm), |
and thus d−22(d2+1)+k0+1 is an odd multiple of d2. By Eq (3.8), we have
w(v)=zi+d−22(d2+1)−zi+d−22(d2+1)+1+zi−k0−1−zi−k0=c. |
Subcase 3.2: 2∤d and d′=2d. We label Ds in the following way. Set
(i,i+s)R↦{zi+s2(d+1),2∣szi+(s+d2)(d+1),2∤s,0≤i≤l−1. |
By the same discussion as in subcase 3.1, the weight of each vertex with respect to the labeling in Dj is also c, for j=1,2,…,d−2. We only write the details for j=0,d−1.
Let v0=(i,i)∈D0 and v1=(i,i+d−1)∈Dd−1. By Claim 2, N+(v)={(i−1,i)R,(i+k0,i+k0+d−1)R} and N+(v)={(i−k0−1,i−k0−1)R,(i,i+d−2)R}, where m∣k0 and k0≡−d(modn). By the construction of the labeling, we have
w(v0)=zi−1+(d+1)22−zi+(d+1)22+zi+k0+(d−1)(d+1)2−zi+k0+1+(d−1)(d+1)2, |
and
w(v1)=zi−k0−1−zi−k0+zi+(d−1)(d+1)−zi+1+(d−1)(d+1). |
By a simple computation, we see that
n0=(d+1)22−1−k0−(d−1)(d+1)2≡d(modm), |
and
n1=(d−1)(d+1)+k0+1≡d2(modm). |
Since 2∣m and 2∣d, both n0 and n1 are odd multiples of d=d′2. We get
w(v0)=w(v1)=c |
from (3.8).
For v=(i,i)∈D0, we have (i−1,i)↦zi−1+d+12(d+1) and (i,i−1)=(i−k0−1,i−k0+d−2)↦zi−k0−1+d−12(d+1). Again, we observe that
(i−1+d+12(d+1))−(i−k0−1+d−12(d+1))=k0+d+1 |
is an odd multiple of d. Hence, the weight of v is also c by Claim 2.
Finally, we construct the labeling satisfied Claim 1 in Cases 1–3. So, →Cm◻→Cn is Γ-distance magic. The proof is complete.
It is natural to study the same problem on the Cartesian product of several cycles. But, it seems hard to obtain a full characterization for the existence of the group distance magic labeling product on Cartesian product of several cycles. However, we can prove an analogous result to Theorem 2.1 in [2], which describes a relation between the labeling of two graphs G1,G2 and the labeling of their Cartesian product G1◻G2. This is a sufficient condition.
We say the a directed graph →G is locally regular if |N+(x)|=|N−(x)| for any x∈V(→G).
Theorem 4.1. Let →Gi be directed graphs and let Γi be abelian groups, i=1,2. Suppose both →G1 and →G2 are locally regular and Gi is Γi-distance magic. Then, →G1◻→G2 is Γ1⊕Γ2-distance magic.
Proof. Let φi:V(→Gi)⟶Γi be the Γi-distance magic labeling with magic constant ci, i=1,2. For convenience, we identity Γ1 as the subgroup {(x,0):x∈Γ1} and identity Γ2 as the subgroup {(0,y):y∈Γ2} of Γ1⊕Γ2. Define the labeling φ:V(→G1◻→G2)⟶Γ1⊕Γ2, as:
φ((x,y))=φ1(x)+φ2(y). |
It is clear that φ is bijective. For any v=(x,y)∈V(→G1◻→G2), we have
w(v)=∑w∈N+(v)φ(w)−∑w∈N−(v)φ(w)=[∑z∈N+(x)(φ1(z)+φ2(y))+∑z∈N+(y)(φ1(x)+φ2(z))]−[∑z∈N−(x)(φ1(z)+φ2(y))+∑z∈N−(y)(φ1(x)+φ2(z))]=[∑z∈N+(x)φ1(z)−∑z∈N−(x)φ1(z)]+[∑z∈N+(y)φ1(z)−∑z∈N−(y)φ1(z)]+(|N+(y)|−|N−(y)|)φ1(x)+(|N+(x)|−|N−(x)|)φ2(y)=c1+c2. |
Hence, →G1◻→G2 admits a Γ1⊕Γ2-distance magic labeling.
The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.
This work was supported by the Guangxi Natural Science Foundation (2025GXNSFAA069810) and the National Natural Science Foundation of China (12161059).
The authors declare there is no conflicts of interest.
[1] | D. Froncek, Group distance magic labeling of Cartesian product of cycles, Australas. J. Comb., 55 (2013), 167–174. |
[2] |
S. Cichacz, P. Dyrlaga, D. Froncek, Group distance magic Cartesian product of two cycles, Discrete Math., 343 (2020), 111807. https://doi.org/10.1016/j.disc.2019.111807 doi: 10.1016/j.disc.2019.111807
![]() |
[3] |
X. Zeng, G. Deng, C. Luo, Characterize group distance magic labeling of Cartesian product of two cycles, Discrete Math., 346 (2023), 113407. https://doi.org/10.1016/j.disc.2023.113407 doi: 10.1016/j.disc.2023.113407
![]() |
[4] | B. Freyberg, M. Keranen, Orientable Zn-distance magic labeling of the Cartesian product of two cycles, Australas. J. Comb., 69 (2017), 222–235. |
[5] |
S. Cichacz, B. Freyberg, D. Froncek, Orientable ZN-distance magic graphs, Discuss. Math. Graph Theory, 39 (2019), 533–546. https://doi.org/10.7151/dmgt.2094 doi: 10.7151/dmgt.2094
![]() |
[6] |
P. Dyrlaga, K. Szopa, Orientable Zn-distance magic regular graphs, AKCE Int. J. Graphs Comb., 18 (2021), 60–63. https://doi.org/10.1016/j.akcej.2019.06.005 doi: 10.1016/j.akcej.2019.06.005
![]() |
[7] | B. Freyberg, M. Keranen, Orientable Zn-distance magic graphs via products, Australas. J. Comb., 70 (2018), 319–328. |
[8] | K. H. Rosen, Elementary Number Theory and Its Applications, 6th edition, Addison Wesley, 2010. |