397
Views
0
CrossRef citations to date
0
Altmetric
Articles

On constant sum partitions and applications to distance magic-type graphs

Abstract

Let G be an additive abelian group of order n and let n=a1+a2+...+ap be a partition of n where 1a1a2ap. A constant sum partition (or t-sum partition) of G is a pairwise disjoint union of subsets A1,A2,,Ap such that G=A1A2Ap, |Ai|=ai, and aAia=t, for some fixed tG and every 1ip. In 2009, Kaplan, Lev, and Roditty proved that a 0-sum partition of the cyclic group Zn exists for n odd if and only if a22. In this paper, we address the case when n is even. In particular, we show that a n2-sum partition of Zn exists for n even and p odd if and only if a22. Moreover, we provide applications to distance magic-type graphs including the classification of Zn-distance magic complete p-partite graphs for p odd.

1 Constant sum partitions

Let n=a1+a2++ap be a partition of the positive integer n, where 1a1a2ap. Let G be an additive abelian group of order n and gG. A constant sum partition (or g-sum partition) of G is a pairwise disjoint union of subsets A1,A2,,Ap such that G=A1A2Ap, |Ai|=ai, and aAia=g, for every 1ip. If such a partition of G can be found for every partition of n with a22, we say that G has the constant sum property, CSP(p). If G has the CSP(p) property and g=0, then we say G has the ZSP(p) property. Kaplan et al. proved the following in Citation[1].

Theorem 1

Citation[1] The cyclic group Zn has the ZSP(n) property if and only if n is odd.

In this paper, we focus on constant sum partitions of the cyclic group of even order. We begin with a necessary condition.

Observation 2

Let n=a1+a2++ap be a partition of the integer n. If n is even and a g-sum partition of Zn exists, then pgn2(modn).

Proof

Since a g-sum partition of Zn exists, pg=aGa=n2n2(modn).□

Because the constant sum partition of any group is trivial when p=1, we will assume p2 from now on. From Observation 2, we obtain the following corollaries. Proofs of the corollaries are left to the reader.

Corollary 3

Let n=a1+a2++ap be a partition of the integer n. If n2(mod4) and there exists a g-sum partition of Zn, then both g and p are odd.

Corollary 4

Let n=a1+a2++ap be a partition of the integer n. Ifn4(mod8) and there exists a g-partition of Zn, thenp0(mod4).

Our next result identifies necessary and sufficient conditions for the existence of a constant sum partition of the cyclic group for an even integer with an odd number of parts. Let S be a set of integers. For any subset A of S, we say A is a t-sum subset of A if the sum of all the elements in A is t. We denote by S the set {a|aS}.

Theorem 5

If n is even and p is odd, then Zn has the CSP(p) property.

Proof

Let n=a1+a2++ap with 1a1a2ap, and A={1,2,,n}. We will prove the theorem by partitioning A into pairwise disjoint subsets A1,A2,,Ap such that |Ai|=ai and aAian2(modn), for every 1ip. The necessity of a22 is obvious. Relabel indices so that n=a1+a2++ad+ad+1++ad+t with 2a1ad, 1ad+1ad+t, where ai is even for i=1,2,,d and odd for i=d+1,d+2,,d+t. The assumption of n even and p odd implies t is even and d is odd.

Observe that since every element in A{n,n2} can be written as n2+a for a unique aS={±1,±2,,±(n21)}, it suffices to partition the set S into (t2) 0-sum subsets of size 3, (d+1) n2-sum subsets of size 2, and (n3t2d+22) 0-sum subsets of size 2, all pairwise disjoint.

First we construct the n2-sum subsets of size 2. Let C1={t2,nt2},C2={t2+1,nt22},Cd+12={t+d12,ntd+12},and Cd+2i+12=Ci for i=1,2,,d+12.

If t4 and t0(mod4), construct the 0-sum subsets of size 3 as follows. Let B1={1,3t+2d24,(3t+2d+24)},B2={2,2nt44,(2nt+44)},B3={3,3t+2d64,(3t+2d+64)},B4={4,2nt84,(2nt+84)},Bt24={t24,nt+42,(n22)},Bt23={t23,t+d+32,(2t+d32)},Bt22={t22,nt+22,(n21)}.Bt21={t21,t+d+12,(2t+d12)}.

Whereas if t2 and t2(mod4), let B1={1,2nt24,(2nt+24)},B2={2,3t+2d44,(3t+2d+44)},B3={3,2nt64,(2nt+64)},B4={4,3t+2d84,(3t+2d+84)},Bt24={t24,nt+42,(n22)},Bt23={t23,t+d+32,(2t+d32)},Bt22={t22,nt+22,(n21)}.Bt21={t21,t+d+12,(2t+d12)}.

In either case, let Bt2+i1=Bi for i=1,2,,t21. These sets are pairwise disjoint as long as ntd+12>t+d12 (from the Cis), t+d+12>t21 and nt+22>2t+d12 (from the Bi’s). All three inequalities are satisfied by assumption since n3t+2d. Also, notice the integer cCi if and only if cCd+2i+12, and the integer bBi if and only if bBt2+i1. Therefore, the n3t2d+2 remaining elements in SiBijCj may be partitioned into n3t2d+22 pairwise disjoint 0-sum pairs, completing the desired partition of S. Place these 0-sum pairs arbitrarily into d+t sets (keeping the 0-sum pairs together) Di so that |Di|=ai2 for i=1,2,,d and if ad+1=1, then Dd+1= and |Di|=ai3 for i=d+2,d+3,,d+t. Whereas if ad+13, then |Di|=ai3 for i=d+1,d+2,,d+t1 and |Dd+t|=ad+t1.

If ad+1=1, let Ai={n2+a:aCiDi}fori=1,2,,d,Ad+1={n2},Ad+2={n,n2+a:aCd+1Dd+2},andAi={n2+a:aBid2Di}fori=d+3,d+4,,d+t.If ad+13, let Ai={n2+a:aCiDi}fori=1,2,,d,Ad+i={n2+a:aBiDd+i}fori=1,2,,t2.Ad+t1={n,n2+a:aCd+1Dd+t1},andAd+t={n2,n2+a:aDd+t},

In both cases, we have partitioned A into pairwise disjoint subsets A1,A2,,Ad+t such that |Ai|=ai and aAian2(modn), for every 1id+t, proving the theorem.□

Example 6

Find a constant sum partition of Z42 for the partition 42=2+2+4+4+6+3+3+3+3+5+7.

We have n=42, d=5, and t=6. The partition of S={±1,±2,,±20} is C1={3,18},D1=,C2={4,17},D2=,C3={5,16},D3={7,7},C4={3,18},D4={9,9},C5={4,17},D5={10,10,11,11},C6={5,16},D6=,B1={1,19,20},D7=,B2={2,6,8},D8=,B3={1,19,20},D9=,B4={2,6,8},D10={12,12},D11={13,13,14,14,15,15}.The corresponding constant sum partition of A={1,2,,42} is A1={24,39},A7={23,27,13},A2={25,38},A8={20,2,41},A3={26,37,28,14},A9={19,15,29},A4={18,3,30,12},A10={42,16,5,33,9},A5={17,4,31,11,32,10},A11={21,34,8,35,7,36,6}.A6={22,40,1},Replacing the integer 42 in A10 with 0, we obtain a 21-sum partition of Z42. □

One may wonder what can be said of the existence of constant sum partitions of the cyclic group for even integers having an even number of parts. If all partite sets are the same size, the following can be said.

Theorem 7

Let n=c+c++c=cp be a partition of the positive integer n. If c is even, thenZn can be partitioned into pairwise disjoint subsets A1,A2,,Ap such that |Ai|=c and aAia=c2, for every 1ip.

Proof

Define disjoint 1-sum pairs Pi={i,i+1} for i=1,2,,n2. Let Ai=P1P2Pc2 for i=1,2,,p. Since |Ai|=c and aAia=c2 for every 1ip, we have proved the theorem.□

2 Distance magic-type graphs

Let G=(V,E) be a simple graph with |V|=n. Let f:V{1,2,,n} be a bijection and for all xV, define the weight of the vertex as w(x)=y:xyEf(y). If w(x)=μ for some number μ and all x, we say f is a distance magic labeling of G (with magic constant μ) and call G a distance magic graph.

If instead of using integers as labels group elements are used, then the following generalization of distance magic labeling is possible. Let Γ be an additive abelian group of order n and let g:VΓ be a bijection. If there exists γΓ such that w(x)=γ for all xV, we say g is a Γ-distance magic labeling of G and call G a Γ-distance magic graph.

A further generalization to directed graphs is possible as follows. Let G=(V,A) be a directed graph and let l:VΓ be a bijection. Define the weight of a vertex, w(x)=y:xyAl(y)y:yxAl(y), for all xV. If w(x)=g for some gΓ and all x, we say l is a directedΓ-distance magic labeling of G and call the underlying simple graph G an orientable Γ-distance magic graph.

shows side-by-side labelings of each of the three magic-type labelings of the 4-cycle, C4.

Fig. 1 Magic-type labelings of C4.

Fig. 1 Magic-type labelings of C4.

3 Complete p-partite graphs

It is an easy observation that the complete p-partite graph is not Zn-distance magic when p=1. The next theorem completely classifies Zn-distance magic labelings of complete bipartite graphs Citation[2], complete tripartite graphs Citation[3], and complete p-partite graphs for n odd Citation[2].

Theorem 8

Citation[2,3] Let G=Kn1,n2,,np be a complete p-partite graph with 1n1n2np, and n=n1+n2++np. Ifp=2, the graphG isZn-distance magic if and only if n2(mod4). If p=3,G isZn-distance magic if and only if n22. If n is odd, G isZn-distance magic if and only if n22.

The following three theorems apply our results from Section 1.

Theorem 9

Let G=Kn1,n2,,np be a complete p-partite graph such that p is odd, 1n1n2np, andn=n1+n2++np is even. The graph G isZn-distance magic if and only if n22.

Proof

Let G=Kn1,n2,,np with vertex set V. Denote each independent set of vertices V1,V2,,Vp so that V=V1V2Vp and identify the jth vertex in Vi by xij.

Suppose first that n22. Partition the elements of Zn into pairwise disjoint subsets A1,A2,,Ap such that |Ai|=ni and aAia=n2 for every 1ip. Such a partition exists by Theorem 5. Define f:VZn so that f:ViAi is an arbitrary bijection for i=1,2,,p. The weight of any vertex vVi is w(xij)=(p1)n2.Therefore, f is a Zn-distance magic labeling and G is Zn-distance magic.

Suppose on the other hand that G is Zn-distance magic with (bijective) labeling . If n2=1, then w(x11)=gZng(x11) and w(x21)=gZng(x21), which implies (x11)=(x21). But this contradicts the bijective property of . Therefore, n22.□

Combined with Theorem 8, we have completed the classification of Zn-distance magic labelings of complete odd-partite graphs.

Theorem 10

Let G=Kn1,n2,,np be a complete p-partite graph such that p is odd, 1n1n2np, andn=n1+n2++np. The graphG isZn-distance magic if and only if n22.

Proof

The proof is by Theorems 8 and 9.□

Next we turn our attention to complete even-partite graphs.

Theorem 11

Let n=cp wherec is even andp2. The completep-partite graph Kc,c,c,,c is Zn-distance magic.

Proof

The proof follows from Theorem 7 in a similar way as Theorem 9 followed from Theorem 5, so we omit the details.□

4 Directed complete p-partite graphs

For directed graphs, the orientable Zn-distance magic classification of complete p-partite graphs is finished only for p3 as the following theorem shows Citation[4].

Theorem 12

Citation[4] Let G=Kn1,n2,,np be a complete p-partite graph with 1n1n2np, and n=n1+n2++np. Ifp=1,G is orientableZn-distance magic if and only if n is odd. If p=2,G is orientableZn-distance magic if and only if n2(mod4). If p=3,G is orientableZn-distance magic for all n1,n2,n3.

The authors of Citation[4] cited Citation[1] to obtain the following observation regarding complete p-partite graphs of odd order.

Observation 13

Citation[4] Let G=Kn1,n2,,np be a complete p-partite graph with 1n1n2np, and n=n1+n2++np, an odd number. If n22, thenG is orientableZn-distance magic.

From Theorem 5, we obtain the following new result.

Theorem 14

Let G=Kn1,n2,,np be a complete p-partite graph with 1n1n2np, and n=n1+n2++np. Ifp3 is odd andn22, thenG is orientableZn-distance magic.

Proof

Let G=Kn1,n2,,np with vertex set V. Denote each independent set of vertices V1,V2,,Vp so that V=V1V2Vp and identify the jth vertex in Vi by xij. If n is odd, G is orientable Zn-distance magic by Observation 13, so we may assume from now on that n is even.

Construct a Zn-distance magic labeling of V using Theorem 9. Orient the edges of G as follows. Let H=Kp with vertex set V(H)={x1,x2,,xp}. Notice that since p is odd, H is Eulerian. Form the directed graph H by orienting the edges of H to form a flow (all arcs are joined head to tail) along the Eulerian cycle. Necessarily, every vertex xV(H) is adjacent to exactly p12 heads of arcs and exactly p12 tails of arcs. Now construct the directed graph G by orienting the edges of G so that the edge xijxklE(G) receives the same orientation as the corresponding edge xixk in E(H).

The weight of any vertex vVi is now w(xij)=(p1)2n2(p1)2n2=0.Therefore, f is an orientable Zn-distance magic labeling, and G is orientable Zn-distance magic.□

We complete this section by applying Theorem 7 to directed graphs.

Theorem 15

Let G=Kc,c,,c be a complete p-partite graph and n=cp. Ifc is even andp is odd, thenG is orientableZn-distance magic.

Proof

The proof follows from the Zn-distance magic labeling given in Theorem 11 and arguments similar to those in the proof of the previous theorem.□

Table 1 CSP(p) property classification for Zn

Table 1 CSP(p) property classification for Zn

5 Conclusion

We have considered the following question. Given a positive integer n, for which partitions of n=a1+a2++ap is it possible to partition the cyclic group Zn into p pairwise disjoint subsets A1,A2,,Ap such that |Ai|=ai, and aAia=t, for some fixed element tZn and every 1ip? Table 1 summarizes for which (feasible) pairs (n,p) we now have a complete answer. The cells shaded gray in the table reflect non-existence results and the cells that contain a “?” reflect open cases.

References

  • KaplanG.LevA.RodittyY., On zero-sum partitions and anti-magic trees Discrete Math. 3092009 2010–2014
  • CichaczS., Note on group distance magic complete bipartite graphs Central Eur. J. Math. 12 3 2014 529–533
  • CichaczS., On zero sum-partition of Abelian groups into three sets and group distance magic labeling Ars Math. Contemp. 13 2 2017 417–425
  • CichaczS.FreybergB.FroncekD., Orientable Zn-distance magic graphs Discuss. Math. Graph Theory. 39 2 2019 533–546