877
Views
0
CrossRef citations to date
0
Altmetric
Pages 319-334 | Received 06 Oct 2022, Accepted 13 Apr 2023, Published online: 09 Jan 2024

Abstract

Consider the graph with the residue classes modulo n as vertices, and the following edges: “additive” edges from a to a + 1; “multiplicative” edges from a to ab for some fixed b. This graph illustrates a criterion for divisibility by n for numbers written in base b. By varying n and b, we see a great variety of structures: this topic connects arithmetic to graph theory and has the beauty of string art. For divisibility graphs we investigate the existence of triangles and other cycles, the girth, the minimum/maximum of the vertex degree, the chromatic number, and the planarity.

1 Introduction

It is natural to display the residue classes modulo n as the vertices of a regular n-gon in cyclic order. Thus adding 1 to a residue lets us move to the next residue along a side of the n-gon, while multiplying by some integer b lets us usually move along a diagonal of the n-gon (occasionally we move along a side or we do not move at all). The divisibility graph Dn,b, which is the object of our investigation, is the graph defined as follows: its vertices are the vertices of the regular n-gon; the “additive” edges are the oriented sides from a to a + 1; the “multiplicative” edges go from a to ba and are usually diagonals (occasionally they can be a loop or a side). Our goal is to study the family of divisibility graphs Dn,b by varying n and b: as expected, the graph properties depend on the arithmetic properties of the pair n, b. We also consider the corresponding simplified graphs Dn,b, where double edges and loops are removed and edge orientation is neglected. For divisibility graphs, we investigate the existence of cycles (triangles and rectangles in the canonical representation), the girth, the minimum/maximum vertex degree, the chromatic number, and planarity. See Section 2 for a summary of our results.

One motivation for considering the graph Dn,b is that, for b2, it illustrates a divisibility criterion for an integer to be divisible by n that makes use of the digits in base b, see Remark 2. It seems that divisibility graphs were introduced by David Wilson in 2009 to illustrate the divisibility criterion for n = 7 in base b = 10, according to Tanya Khovanova [Citation4]. Another motivation for studying these graphs is that they connect graph theory with arithmetic in a fascinating way, and they are beautiful objects with a great variety of structures by varying n and b, see, for example, .

Fig. 1 D125,51.

Fig. 1 D′125,51.

Fig. 2 D200,99.

Fig. 2 D′200,99.

Fig. 3 D500,322.

Fig. 3 D′500,322.

Considering only the multiplicative edges of Dn,b, one obtains the graph of modular multiplication by b, which has previously been considered to popularize mathematics. These other graphs are optically similar, as to obtain back Dn,b one only needs to include all sides of the n-gon. Nevertheless, the graph structures are very different: for example, having the additive edges ensures the existence of cycles. These other graphs are not our object of study, so we refer the reader to the book by Daniel Shanks [Citation9] and to online resources like [Citation6, Citation7]. In particular, these works provide a geometrical explanation for the (b1)-foil pattern that will also be seen in our divisibility graphs, see . Let us also mention the existence of websites like [Citation5] which show the graph of modular multiplication by b, all based on the parameters n and b entered by the user.

Fig. 4 D125,3.

Fig. 4 D′125,3.

Fig. 5 D125,4.

Fig. 5 D′125,4.

Fig. 6 D125,5.

Fig. 6 D′125,5.

There is still a great deal to explore about divisibility graphs, and this work seems to offer the first deep investigation on the subject. Beyond our conjectures, some of our results can be improved upon, and there are surely features of divisibility graphs that we have not yet considered. We hope that some of our readers will embrace this challenge. Moreover, we hope that many readers introduce divisibility graphs to a wider audience, because it is an accessible topic (related to known divisibility criteria) that connects arithmetic to graph theory and that possesses the beauty of string art.

2 Mathematical Overview

Definition 1.

Given two integers n, b with n1, the divisibility graph Dn,b is the directed multigraph with vertices (amodn) for 0a<n and with the following edges: additive edges from (amodn) to (a+1modn); multiplicative edges from (amodn) to (abmodn). The simplified divisibility graph Dn,b is obtained from Dn,b by neglecting edge directions and by removing loops and double edges.

We canonically represent the vertices of a divisibility graph as the vertices of a regular polygon in cyclic order, see for example .

Fig. 7 D7,3.

Fig. 7 D7,3.

Fig. 8 D11,6.

Fig. 8 D′11,6.

Replacing b by its remainder modulo n does not affect the divisibility graph. Thus, to avoid trivial cases, we will assume that n3 and 1<b<n. Moreover, we shall denote a vertex by any integer in the given residue class modulo n.

Remark 2.

The divisibility graph Dn,b provides a divisibility criterion by n considering the digits of a number expressed in base b. This is because the number ckbk++c1b1+c0b0 (with k,c0,,ck0) corresponds to the end vertex of the following walk in Dn,b: start at 0; for i=k,,0, take ci additive edges and in case i > 0, take one more multiplicative edge. This assertion can be proven by induction on k: the base case k = 0 is obvious; for the induction step, write the given number as ba+c0 with a=ckbk1++c1b0, and complete the known walk for a by taking one multiplicative edge and c0 additive edges.

For example, 21=2·32+1·31+0·30 is divisible by 7 because in D7,3 we walk from 0 to 0 by taking two additive edges, one multiplicative edge, one additive edge, and once more a multiplicative edge, see .

To ease notation, we call d the greatest common divisor of n and b, we understand that congruences are modulo n (unless specified otherwise), we call an integer a unit if its residue class modulo n is a unit, and we say that two edges overlap if, neglecting their orientation, they coincide. We now recall some notions from graph theory (for references, see for example [Citation1, Citation3]).

Definition 3.

Let G be an undirected graph. A triangle in G is a cycle of length 3. The girth of G is the length of a smallest cycle. The vertex degree deg(a) for a vertex a of G is the number of incident edges. We denote by δ(G) (respectively, Δ(G)) the minimum (respectively, maximum) degree, namely the minimum (respectively, maximum) among all vertex degrees. The chromatic number of G, denoted by χ(G), is the smallest positive integer k such that G admits a k-coloring, namely a map from the vertex set to {0,,k1} such that any two adjacent vertices have distinct images. The graph G is called planar if it can be drawn on the plane without crossing edges.

Our main results are the following assertions:

Main Theorem. For simplified divisibility graphs, the following hold:

  1. The graph Dn,b contains a triangle for every b if and only if n = 4, n is prime, or n is a power of 3.

  2. There is a rectangle in the canonical representation of Dn,b for some value 1<b<n if and only if n = 4 or n0,±2,±6mod16.

  3. The girth of Dn,b is at most 7. It is at most 5 if b21, and at most 4 if b2b. The girth equals 3 if b–1 is a unit or b=n1 or b20.

  4. We have δ(Dn,b){2,3} and Δ(Dn,b){d+1,d+2,d+3}. Moreover, we have δ(Dn,b)=2 if and only if b or b–1 is a unit. Further, all vertex degrees in Dn,b lie in {2,3,d+1,d+2,d+3}.

  5. We have χ(Dn,b)4. Further, χ(Dn,b)=2 holds if and only if n2mod4 and b=n2+1.

The outline of the paper is as follows: after some preliminary results in Section 3, we consider cycles in Dn,b in Section 4 and the vertex degree in Section 5. Finally, in Sections 6 and 7, we respectively consider the chromatic number of Dn,b and investigate whether Dn,b is planar. In particular, we provide evidence for the following two conjectures:

Conjecture 4. We have χ(Dn,b)3.

Conjecture 5. For n13 odd, Dn,b is planar if and only if b=n1. For n16 even, Dn,b is planar if and only if b{n21,n2,n1}.

3 Preliminaries

We begin with some general observations. For a prime number p, the p-adic valuation of a nonzero integer k is the biggest exponent vp(k) of p dividing k.

Remark 6.

The simplified divisibility graph Dn,b (with the additive edges forming a regular n-gon) is symmetric with respect to the line connecting 0 to the center of the n-gon. Indeed, the symmetry maps the n-gon to itself, and it maps the multiplicative edge (a, ba) to the edge (na,b(na)).

Moreover, Dn,b passes through the center of the n-gon if and only if for the 2-adic valuation we have v2(b1)<v2(n). Indeed, we precisely need the congruence bxx+n2 to be solvable. Notice that in D125,51 (see ) the multiplicative edges do not connect vertices that are almost opposite.

Remark 7.

Consider the divisibility graph Dn,b and some vertex a. The outgoing multiplicative edge at a is a loop if and only if (b1)a0, thus we have a loop at 0, and this is the only loop if and only if b–1 is a unit. The outgoing multiplicative edge at a can overlap an additive edge: this happens if and only if (b1)a±1, so it happens only if b–1 is a unit and in this case there is precisely one multiplicative edge that equals an additive edge (respectively, the reverse of an additive edge), namely the edge ((b1)1,(b1)1+1) (respectively, the edge ((b1)1,(b1)11)).

Remark 8.

A vertex in Dn,b has no incoming multiplicative edge unless it is a multiple of d (as n and b are multiples of d), and in this case it has precisely d incoming multiplicative edges (a solution for bxd being given by Bézout’s identity).

Consider the multiplication by b on the residue classes modulo n, represented by the multiplicative edges of Dn,b. Notice that all vertices are preperiodic under iterates of this map. Moreover, a vertex a is periodic if and only if we have gcd(ba,n)=gcd(a,n), hence all vertices are periodic if and only if b is a unit.

Notice that the vertices a with the property gcd(ba,n)=gcd(a,n) are precisely the multiples of g, where g is the largest integer of the form gcd(bx,n) for some positive integer x, so that for every prime number p, the p-adic valuation vp(g) equals vp(n) if p divides b, and it is 0 otherwise. Then we are claiming that the periodic vertices are precisely the multiples of g. For example, if n is even, then n2 is periodic if and only if b is odd.

A periodic vertex a must be a multiple of g because the quantity gcd(bxa,n) does not decrease by increasing x and thus it is constant if a is periodic. Conversely, if a:=ag is a multiple of g, then the congruence (bx1)a0modng is solvable (because b is a unit modulo ng), hence the congruence (bx1)a0 is solvable and a is periodic.

If G is a graph, then a minor of G is a graph that can be obtained from G by deletion and contraction of edges, as well as deletion of some isolated vertices. Given a subset of the vertices of G, the induced subgraph has precisely those vertices, and it has as edges all edges of G between them.

Remark 9.

If m > 1 is a divisor of n, then Dn/m,b is a minor of Dn,b. Indeed, by contracting the edges between multiples of m we obtain a graph with n/m vertices such that Dn/m,b is a subgraph (notice that bkk mod nm implies bkmkm for all integers k,k).

Remark 10.

The subgraph Dn,b× of Dn,b obtained by removing the additive edges is the union of orbits for the multiplication by b. A periodic orbit is a cycle (possibly consisting of one or two vertices). Two orbits are either disjoint or have their periodic cycle in common. A connected component of Dn,b× is as follows: there is one periodic cycle and attached to each vertex of the cycle there are d–1 vertices outside the cycle (one incoming multiplicative edge belongs to the cycle). Each of the above vertices outside the cycle is the root of a d-ary tree: these trees are pairwise disjoint and do not intersect the cycle.

Remark 11.

If m > 1 is a divisor of n, then we define Gm as the induced subgraph on the vertices of Dn,b that are multiples of m. Thus Gm can be obtained from Dn/m,b (identifying multiples of m modulo n and residue classes modulo n/m) by removing additive edges and loops, and neglecting edge directions. Moreover, Gm can be obtained from Dn,b× as the induced subgraph on the multiples of m, removing loops and neglecting edge directions (for m = d, the induced subgraph only loses leaves with respect to Dn,b×). An example for Gd can be found in .

4 Cycles

To study cycles, we first classify triangles in Dn,b according to the number of additive edges:

Lemma 12.

Let n be a positive, composite, odd integer and let p > 3 be a prime factor of n. Then there exists a positive integer x<np such that p2x2+3px+3 is coprime to n.

Proof.

If n is a power of p we can take x:=1, while if n is a multiple of 3 we can take x:=n3v3(n)p because n has no prime factor in common with p2x2+3px+3=n232v3(n)+3n3v3(n)+3 .

Finally, if n is coprime to 3 and it has a prime factor q > 3 different from p, we may take x:=tnpqvq(n) for some integer 0<t<q. Indeed, n and p2x2+3px+3 can have at most the prime factor q in common and, for some choice of t, the latter integer is not divisible by q: that polynomial in x has at most two roots modulo q, and different choices for t give different values of x modulo q. □

Proof

of Main Theorem 1. For the “if” implication, we can check by hand the case n = 4 and the above classification allows us to deal with n5 prime. Now suppose that n is a power of 3 and write k:=v3(n) and v:=v3(b1). If v = 0, we may resort to the above classification, so suppose v > 0. Notice that a:=3kv1 is an integer and a(b31)0. So the vertices a, ab, ab2 form a triangle, as they are pairwise distinct: aab because 3kv1(b1)0; aab2, else abab3a; one similarly argues that abab2.

For the “only if” implication, assume that n4 is neither prime, nor a power of 3. If n is even and b=n2+1, then Dn,b contains no triangle because ab is congruent to a or a+n2. Now suppose that n is odd, take p and x as in Lemma 12 and set b:=px+1. There is no triangle in Dn,b with additive edges because, for instance, aba+2 implies apx2; this is impossible because 2 is a unit and p divides n. We also exclude triangles with zero additive edges because ab3a means apx(p2x2+3px+3)0, implying apx0 and hence aba(px+1)a. □

and show that the girth of Dn,b can be as large as 7. It can, however, not be greater:

Proof

of Main Theorem 3. By the above classification, Dn,b contains a triangle whenever b–1 is a unit, so we may exclude this case. For b=n1 or b20 we have the triangle (0,1,b). For b21, we have the following cycle in Dn,b (in case two vertices are the same, we take a shorter cycle): 01b(b1)·b(1b)(b)(1)0 .

For b2b, we have the cycle (0,1,b,b1). For b not a unit, there is an integer a0,1,1 such that we have the cycle (0,1,b,a+1,a) (if ba+1, we take a cycle of length 4 instead). For b a unit such that b21, calling a its inverse, we consider the following cycle: 1b(b+1)·b(a+1)a·b1 .

It is of length 5. □

Remark 13.

Consider those triangles inside Dn,b that are equilateral triangles in the canonical representation, as in . For n > 3 there is such a triangle based at some vertex a if and only if n is divisible by 3 and the three numbers (b1)a,(b1)ba,(b1)b2a are congruent to n3. So we must have (b1)an3 and b1mod3. We deduce that there is an equilateral triangle if and only if n = 3 or 1v3(b1)v3(n)1. Similarly, to find a regular k-gon inside the canonical representation of Dn,b (beyond n = k) it is necessary and sufficient that for any prime divisor p of k we have vp(k)vp(b1)vp(n)vp(k).

Fig. 9 D81,19.

Fig. 9 D′81,19.

Fig. 10 D21,8 has girth 7.

Fig. 10 D′21,8 has girth 7.

Fig. 11 D56,43 has girth 7.

Fig. 11 D′56,43 has girth 7.

Fig. 12 G2 for D52,10.

Fig. 12 G2 for D52,10.

Fig. 13 A rectangle with four multiplicative edges in D64,3.

Fig. 13 A rectangle with four multiplicative edges in D′64,3.

Now we turn our attention to rectangles in the canonical representation of simplified divisibility graphs. For example D64,3 contains a rectangle built with sides and diagonals of a regular octagon. Observe that a 4-cycle (x,y,z,w) in Dn,b forms a rectangle if and only if xzywn2 (i.e., there are two pairs of diametrically opposite vertices). In particular, there is no rectangle in Dn,b if n is odd hence we will suppose that n is even.

Remark 14.

We present a modification of the criterion due to Neeyanth Kopparapu in [Citation11] to have a rectangle of the form (a,ba,b2a,b3a) for some vertex a that is a unit. In short, we must have b410 and v2(b21)<v2(n) (in particular, n0mod16 and φ(n)0mod8). See Remark 16 for a more general criterion for the existence of a k-cycle (a,ba,,bk1a) in Dn,b.

Having all additive edges in a rectangle is only possible for n = 4. If n > 4 is even, then there is no rectangle in Dn,b containing an edge which is both additive and multiplicative. Indeed, assume otherwise that a rectangle in Dn,b contains the edge (a,a±1) which is both additive and multiplicative. As n is even, a must be odd and b must be even. We can write the rectangle as (a,a±1,a+n2,a±1+n2). Since n6, a and a±1+n2 are not consecutive modulo n, and thus (a±1+n2,a) must be a multiplicative edge, contradicting the parity of a and b. It thus follows that if there are any additive edges in a rectangle of Dn,b, then two of its edges are additive and two of them are multiplicative. This is treated in the following:

Remark 15.

We classify the rectangles with precisely two edges that are not multiplicative (they must be opposite). If the two multiplicative edges have the same orientation, then the rectangle is without loss of generality of the form (bx,x,x+1,bx1) with b(x+1)bx1 and xbx+1n2, which means b=n1 and 2x+1n2. In particular, n2mod4 and we may take x=n24. Now suppose that the two parallel edges have opposite orientation, and let (x,x+1) be an additive edge. If the multiplicative edge is incoming at x, the vertices are (bx,x,x+1,bx1). We have b(bx1)x+1 and bx1xn2. Else, the vertices are (x,x+1,bx+b,bx+b+1) and we have b(bx+b+1)x and bx+bxn2. Notice that Dn,b either contains rectangles of both cases, or of none: given a rectangle of one case, one obtains a rectangle of the other case by replacing its vertices by their opposites modulo n.

Proof

of Main Theorem 2. Clearly there is no rectangle for n = 3, while the additive edges form a square for n = 4. Now suppose that n5 is even. By Remark 15 there is a rectangle in Dn,n1 if n2 is odd. Moreover, if n0mod16, then Dn,3 contains the rectangle (x,3x,9x,27x) where x=n16. To conclude we have to prove that there is no rectangle if n±4,8mod16.

If Dn,b contains a rectangle of the form (x,bx,b2x,b3x), then we must have x(b21)n2x(b3b), so that bn2n2, hence n2(b1)0 and b must be odd. Since x(b21)n2 and b21 is a multiple of 8, also n2 is a multiple of 8 and hence n0mod16.

If Dn,b contains a rectangle with two multiplicative edges of the same direction, it holds that n2mod4 and thus n±4,8mod16.

By Remark 15, the only remaining case to consider is Dn,b containing a rectangle of the form (bx,x,x+1,bx1). We prove that n0mod4 by contradiction. Write n=4k. Now b(bx1)x+1 and bx1xn2 imply b(bx1)x+1n2+bx, so that bn2b(bxx1)b2xbxbn2 and 2k(b1) is a multiple of 4k, meaning b is odd. But bx1xn2 gives x(b1)2k10, whose left member is odd, a contradiction. □

We conclude this section with two remarks on k-cycles:

Remark 16.

Let k3. In [Citation10] Hans-Peter Stricker gives a criterion to have a k-cycle of the form (a,ba,b2a,b3a,,bk1a) for some vertex a. Replace n by m:=ngcd(n,a) and hence suppose that a is a unit. Then we precisely need that b is a unit with multiplicative order k. So the general criterion becomes that there exists a divisor m of n such that (bmodm) is a unit with multiplicative order k.

Remark 17.

Let k3. Assume that nk and that b–1 is a unit. Then there exists a k-cycle: for example, the vertices (a,a+1,,a+k1) where a:=(b1)1(k1) form a k-cycle because we have baa+k1.

5 Vertex Degree

An oriented graph is Eulerian if and only if there are the same number of outgoing and incoming edges at each vertex.

Remark 18.

The graph Dn,b is Eulerian if and only if b is a unit. Indeed, if b is a unit, then there is precisely one incoming multiplicative edge at every vertex. If b is not a unit, then there is no incoming multiplicative edge at 1.

Remark 19.

The vertex degree is at most 3 for vertices that are not multiples of d by Remark 8. Moreover, by Remark 7, for d1 no additive edge at 0 overlaps a multiplicative edge. Thus the vertex degree at 0 is d + 1 (the outgoing multiplicative edge is a loop).

Proof

of Main Theorem 4. Recall Remark 7. If b is a unit (respectively, b is not a unit and b–1 is a unit), then 0 (respectively, the multiplicative inverse of b–1) has vertex degree 2. Now suppose that b and b–1 are not units: no multiplicative edge overlaps an additive edge; we have δ(Dn,b)3 because, if the outgoing multiplicative edge is a loop, then there is an incoming multiplicative edge that is not a loop (baa implies b(a+c)a for any c0 such that bc0).

We have Δ(Dn,b)d+3 because at every vertex there are at most d incoming multiplicative edges; we show that the vertex degree of b is at least d + 1. For 0i<d, the d incoming multiplicative edges (1+ind,b) are distinct; if one of them is a loop, they do not overlap additive edges (b2b implies bb(b±1)). Assume both additive edges at b overlap incoming multiplicative edges. Then b(b+1)bb(b1), in particular implying that b20. The outgoing multiplicative edge at b thus ends at 0 and is not equal to any incoming multiplicative edge at b. Therefore the vertex degree at b is at least d + 1 in all cases.

Finally, suppose that a is a vertex. If d does not divide a, then deg(a){2,3} by Remark 19. If d does divide a, then d+1deg(a)d+3 by the above argument given for a = b. □

Remark 20.

An integer n3 is a prime power if and only if for all b we have δ(Dn,b)=2. Indeed, by Main Theorem 4 the latter condition means that, for every integer a, at least one of a and a–1 is a unit (if n had distinct prime factors p, q, then the congruences a0modp and a1modq have a common solution).

are examples for the three cases in the following result:

Fig. 14 A rectangle with two multiplicative edges in D62,5.

Fig. 14 A rectangle with two multiplicative edges in D′62,5.

Fig. 15 D10,3 has maximum degree d + 3.

Fig. 15 D′10,3 has maximum degree d + 3.

Fig. 16 D10,4 has maximum degree d + 2.

Fig. 16 D′10,4 has maximum degree d + 2.

Fig. 17 D10,5 has maximum degree d + 1.

Fig. 17 D′10,5 has maximum degree d + 1.

Theorem 21.

If b–1 is not a unit, then we have Δ(Dn,b)={d+1if bddd+2if bdd and b2ddd+3if bdd and b2dd .

Proof.

By Remark 19 and Main Theorem 4, to determine Δ(Dn,b) we may neglect the vertex 0. Moreover, if d > 1, or if there is a vertex of degree d + 2, then we may neglect the vertices which are not a multiple of d.

If bdd (hence d > 1), then for every k we have bkdkd hence the vertex degree of kd is d + 1. Now suppose that bdd, and notice that b2dd holds if and only if for every integer k we have b2kdkd. The latter condition means that the outgoing multiplicative edge at kd overlaps an incoming multiplicative edge. By our assumption on b–1, the additive edges at d do not overlap multiplicative edges. The result follows. □

Theorem 22.

Suppose that b–1 is a unit. Then Δ(Dn,b)=d+1 holds if and only if either n=2d or we have n=3d and bd0. Moreover, we have Δ(Dn,b)=d+3 if and only if n6,n4d, and b2dd.

Proof.

As in the proof of Theorem 21, we can neglect the vertex 0 and if d > 1, we can also neglect those vertices that are not divisible by d. If n=2d, then d = b and b is even, and we only need to remark that the vertex degree for d is d + 1 (the additive edges at d overlap multiplicative ones).

Now suppose n=3d. If d = 1, then δ(D3,2)=Δ(D3,2)=2=d+1. Suppose that d > 1 and bd0. Then b0mod3 and b = d or b=2d. Since b1 is a unit, b=2d if d1mod3 and b = d if d2mod3. In each case, b2mod3 and bd2d. We have bd2d and 2bdd, hence the outgoing multiplicative edge at each of the vertices d and 2d overlaps an incoming multiplicative edge at this vertex. We further note by Remark 7 that exactly two multiplicative edges overlap additive edges, namely the edge ((b1)1,(b1)1+1) and the edge ((b1)1,(b1)11). Then (b1)1+1 is d or 2d modulo n. If (b1)1+1d, then (b1)112d, while (b1)11d if (b1)1+12d. Thus both d and 2d have vertex degree equal to d + 1.

Now suppose that bd0. Then the vertex degree of both d and 2d is equal to d + 2. There are d distinct incoming multiplicative edges and an outgoing multiplicative edge (towards 0) at each of the vertices d and 2d. By our argument above, exactly one multiplicative edge overlaps an additive edge at each of d and 2d. Thus the vertex degree at d and 2d is equal to d + 2. We note that if n = 4, then b = 2 (since b1 is a unit), a case we have already treated. By inspection, we see that Δ(D5,b)=3=d+2 for 2b4.

Finally, suppose n6 and n4d. By Remark 7, there exist exactly two multiplicative edges that overlap additive edges. Hence there exists k such that the additive edges at kd do not overlap a multiplicative edge at kd. Thus the vertex degree at kd is at least d + 2 for this value of k. If b2dd, then for every k, the outgoing multiplicative edge at kd overlaps an incoming multiplicative edge, and the degree of kd is at most d + 2. From now on, supposing b2dd, we find a vertex with vertex degree d + 3. We first suppose that d = 1 (thus b is a unit). Then n7, because b and b1 cannot be both units modulo 6 if 2b5. Moreover, there exist three nonconsecutive vertices that are units. If n is odd, this is because we can take the vertices (1,4,n1). If n is even, this is because φ(n)4 and each unit modulo n is odd. At least one of the three vertices is suitable because there are at most two additive edges that overlap a multiplicative edge.

If bd0, there exists k such that the additive edges at kd do not overlap multiplicative ones. Now suppose bd0, and call d:=gcd(nd,d).

If d=1, then for 1kknd1 we have bkd0 and hence bkdbkd unless k=k. In particular, (b1)b4d0 (as b–1 is a unit). Thus the vertices d,bd,b2d are distinct and their outgoing multiplicative edges do not overlap incoming multiplicative edges: they are not connected by additive edges (as d > 1), and for at most two of them an additive edge overlaps a multiplicative edge.

Finally, let d>1 and set k:=ndd hence bkd0. In particular, the outgoing multiplicative edge at kd does not overlap an additive edge, and neither does an incoming multiplicative edge, else we would have b(kd±1)kd hence b±kd, thus bd0, contradiction. □

The maximum and minimum degree in Dn,b may also coincide:

Theorem 23.

We have δ(Dn,b)=Δ(Dn,b) if and only if n = 3 and b = 2, in which case all vertex degrees in Dn,b equal 2, or n2mod4 and b=n2+1, in which case all vertex degrees in Dn,b equal 3.

Proof.

Assume that δ(Dn,b)=Δ(Dn,b). By Main Theorem 4, we have δ(Dn,b){2,3} and Δ(Dn,b){d+1,d+2,d+3}. Thus δ(Dn,b)<Δ(Dn,b) if d3, hence d = 1, 2.

Suppose d = 1. Then b is a unit and δ(Dn,b)=2 by the proof of Main Theorem 4. If b–1 is not a unit, then bd=b1 by Theorem 21, which is impossible. If b1 is a unit, then n = 3 and b = 2 by Theorem 22.

Now suppose that d = 2. Then Δ(Dn,b)3 by Main Theorem 4. Since δ(Dn,b){2,3}, we have that δ(Dn,b)=Δ(Dn,b)=3. Since δ(Dn,b)=3, it follows by Main Theorem 4 that b1 is not a unit. We now see by Theorem 21 that bd=2bd=2. Hence b1modn2, implying that b=n2+1. Since d = 2, we observe that n2+1 is even, yielding n2mod4.

We now show that if n2mod4 and b=n2+1, then in fact we have δ(Dn,b)=Δ(Dn,b)=3. Let a be a vertex not divisible by d = 2. Then there are no incoming multiplicative edges at a by Remark 8. The outgoing multiplicative edge at a is (a,a+n2). Since n23, we see that this edge is not an additive edge, and thus deg(a)=3. Now suppose that the vertex a is divisible by d = 2. Then ba=(n2+1)aa and there is a loop at a. Since b1 is not a unit, no multiplicative edge at a overlaps an additive edge by Remark 7. Since there are d = 2 incoming multiplicative edges at a by Remark 8, it follows that deg(a)=3 in this instance also. □

We were further able to characterize the vertices of degree 2:

Theorem 24.

A vertex a of Dn,b has degree 2 if and only if one of the following holds:

  1. b is a unit and a = 0.

  2. b is not a unit, b1 is a unit, and a(b1)1 or a(b1)1.

  3. b is a unit, b1 is not a unit, and (b1)a0.

  4. n is odd, b=n1, and a=n±12.

Proof.

By the proof of Main Theorem 4, δ(Dn,b)=2 if and only if b or b1 is a unit. Moreover, by the same proof, deg(0)=2 if b is a unit.

Now suppose that b is not a unit and b1 is a unit. By the proof of Main Theorem 4 and by Remark 7, deg((b1)1)=deg((b1)1)=2. Furthermore, the multiplicative edge ((b1)1,(b1)1+1) and the multiplicative edge ((b1)1,(b1)11) are the only multiplicative edges that overlap an additive edge. Let a be a vertex such that a±(b1)1. Then the outgoing multiplicative edge at a does not overlap an additive edge. Suppose that a0. Since b1 is a unit, there is no loop at a. Since the outgoing multiplicative edge at a does not overlap an additive edge, we see that deg(a)>2. Next suppose that a = 0. Then there is a loop at 0 and the additive edges (0, 1) and (b1,0) are not multiplicative edges. Moreover, there are d2 incoming multiplicative edges at 0. It follows that deg(0)>2 in this case.

Next suppose that b is a unit and b1 is not a unit. Let a be a vertex such that (b1)a0. Then there is a loop at a. Further, no multiplicative edge at a overlaps an additive edge because b1 is not a unit. Since d = 1, there is exactly one incoming multiplicative edge at a. Thus deg(a)=2. Now suppose that a is a vertex such that (b1)a0. Then there is no loop at a. By the argument above, the outgoing edge at a does not overlap an additive edge. Hence deg(a)>2 in this instance.

Finally, suppose that both b and b1 are units. Then n must be odd and we have d = 1. Let a be a nonzero vertex such that deg(a)=2. Since b1 is a unit, there is no loop at a. Since b is a unit, there is exactly one incoming multiplicative edge at a. It follows that deg(a)=2 if and only if the incoming multiplicative edge at a is an additive edge and the outgoing multiplicative edge at a is also an additive edge. Since b1 is a unit, it follows by Remark 7 that the edges ((b1)1,(b1)1+1) and ((b1)1,(b1)11) are the only multiplicative edges that overlap an additive edge. Thus, deg(a)=2 if and only if (b1)1+1(b1)1, which implies that 2(b1)11. It now follows that b12. Hence b=n1 and either a(b1)1n12ora(b1)1n+12.

6 Chromatic Number

For n4 the simplified divisibility graph Dn,b is connected, and neither an odd cycle nor a complete graph, so Brooks’ theorem gives χ(Dn,b)Δ(Dn,b).

Proof

of Main Theorem 5. For the first assertion we may suppose that n5 and also by Main Theorem 4 that d > 1. The subgraph Gd induced by the multiples of d admits a 3-coloring by Remark 11, and we can extend it to a 4-coloring of Dn,b. Indeed, there are no incoming multiplicative edges for the vertices outside Gd, so for 0knd1 we can iteratively color the vertices kd + i for 1id1: the vertex kd + i sees at most two (respectively, three) previously chosen colors for id1 (respectively, i=d1).

If n2mod4, then Dn,n2+1 has a 2-coloring given by mapping a vertex to its remainder modulo 2 (the multiplication by b maps odd vertices to even vertices, and it maps any even vertex to itself). If χ(Dn,b)=2, then (considering the additive edges) n is even and w.l.o.g. the 2-coloring maps a vertex to its remainder modulo 2. If bn2+1 (respectively, b=n2+1 and n0mod4), the vertices 2 and 2b (respectively, 1 and b) are distinct, adjacent, and have the same color. □

Conjecture 4 has been verified with SageMath [Citation8] for n291. Moreover, it has been proven in the following cases:

Proposition 25.

If b21,bdd, or bd0, then χ(Dn,b)3.

Proof.

In the first case, we can check by hand D3,2,D4,3, D5,4, and for n6 we have Δ(Dn,b)d+2=3 by Theorems 21 and 22. In the second case, we get a 3-coloring by assigning to each multiple of d the color 0 and by alternating between 1 and 2 on each interval between two multiples of d. In the third case, we obtain a 3-coloring as follows: assign the color 0 to the vertex 0 and the color 1 to all the other multiples of d; assign colors to the vertices between two multiples of d by alternating between colors 0 and 2 and by assigning the color 1 to vertices adjacent to 0. □

Example 26.

If n0mod4, then (n21)21 hence χ(Dn,n21)3 by Proposition 25. Moreover, we have the following 3-colorings for Dn,n2 and n2mod4, for Dn,n2 and n0mod4, and for Dn,n21 and n2mod4, respectively:

Above, the polygon consists of the additive edges, with 0 at the bottom.

If n2mod3 (respectively, n1mod6), then a 3-coloring for Dn,n2 can be defined by mapping a vertex to its remainder modulo 3 (respectively, additionally replacing the color of 0 to be 2). Indeed, for all a the vertices a1,a,a+1 have distinct colors, so we are left to show that a and ba have distinct colors for every a0: the remainder of ba modulo n is n2a or 2n2a, thus not congruent to a modulo 3.

Similarly, if k2 is not divisible by 3, then D3k,k+1 and D3k,2k+1 have a 3-coloring by mapping a vertex to its remainder modulo 3 (as b1mod3 and n0mod3, the remainder of ba modulo n is not congruent to a modulo 3 if 3 does not divide a; furthermore, if 3 does divide a there is a loop at the vertex a).

7 Planarity

To investigate planarity for divisibility graphs, we may consider simplified divisibility graphs instead, as planarity is not affected by loops nor by multiple edges.

Example 27.

The graph Dn,n1, and for n even the graphs Dn,n2 and Dn,n21 are planar. Indeed, Dn,n1 can be drawn as in , while the graph Dn,n2 (respectively, Dn,n21) can be drawn as in (respectively, ), where the dashed edge (n2,0) is not present if n2 is odd (respectively, even).

Fig. 18 Dn,n1 for n odd and for n even.

Fig. 18 D′n,n−1 for n odd and for n even.

Fig. 19 Dn,n2.

Fig. 19 D′n,n2.

Fig. 20 Dn,n21.

Fig. 20 D′n,n2−1.

Wagner’s theorem states that a graph is planar if and only if it does not contain as a minor K5 nor K3,3, which are the following graphs:

For example, D15,6 contains a minor isomorphic to K5. We will often exhibit a minor isomorphic to K3,3: the vertices will be listed in cyclic order; the vertices are {x1,x2,x3,bx1,bx2,bx3}, and x1,x2,x3 will be marked in bold.

Proposition 28.

If b = 2 and n10, or b = 3 and n12, or b4 and n3b, then Dn,b is nonplanar.

Proof.

The minors isomorphic to K3,3 are (3,4,5,6,8,10),(2,3,4,6,9,12), and (1,2,3,b,2b,3b), respectively. □

By Example 27, an odd integer n13 (respectively, an even integer n16) satisfies Conjecture 5 if and only if Dn,b is nonplanar for all bn1 (respectively, bn2,n21,n1). We verified with SageMath [Citation8] that all prime numbers in the range from 13 to 4391 and all integers n1186 satisfy Conjecture 5.

Proposition 29.

If Conjecture 5 holds for all n that are prime numbers, then it holds for all n.

To prove this, we make use of the following:

Lemma 30.

If n satisfies Conjecture 5, then the same holds for 2n. If n is odd and it satisfies Conjecture 5, then the same holds for kn for every positive odd integer 1<kn.

Proof.

For n odd, D2n,n+1 is nonplanar, as can be seen by considering the minor (1,3,5,n+1,n+3,n+5). For n even, D2n,n21 and D2n,n2 are nonplanar by Proposition 28, while the graphs D2n,n+n21 and D2n,n+n2 are nonplanar because of the minor (1,4,n+2,n+n21,2n4,2n1) and the minor (1,n2,n,n+n2,2n5,2n2), respectively. Remark 9 settles all remaining cases of the first assertion, and the cases b0,1,n1 of the second assertion. To conclude, we may suppose that b{ln,ln+1,ln1} where 1lk1. If b=n+1 and k > 3, then Dkn,n is nonplanar by Proposition 28. In the remaining cases Dkn,n is not planar because of the following minors:

Above, a denotes a multiple of k such that knln<a<ln. □

Proof of Proposition 29.

An odd number 13 is an odd multiple of a number 13 which is prime or 121, so we conclude by Lemma 30. An even number 16 is a number for which the conjecture has been verified or it is a power of 2 times an odd number 13, so we conclude by Lemma 30 and the previous case. □

Notice that, in case the lower bound for n in Conjecture 5 gets updated, one could still reduce to prime numbers and an explicit finite number set.

In this article we have raised several questions and we have answered some of them. The interested reader can try to prove or disprove our conjectures. Moreover, there are other notions for graphs that deserve to be investigated for divisibility graphs hence there are many open research directions. Some of these investigations are accessible to students, so they are suitable for undergraduate research.

Acknowledgments

We thank MATH-segnale for introducing divisibility graphs with [Citation2]. We thank Anne-Julie Bertinchamps, Tia De Waha, Sergei Merkulov, Hugo Parlier, Emiliano Torti, and last but not least, the anonymous referees for their very valuable comments and also for supporting our project with enthusiasm.

Additional information

Notes on contributors

Antonella Perucca

ANTONELLA PERUCCA studied at Scuola Normale Superiore in Pisa and then continued her career as a number theorist in Italy, Switzerland, Belgium, Germany, and Luxembourg. She is also active in recreational mathematics, didactics, and outreach.

Department of Mathematics, University of Luxembourg, 4634 Esch, Luxembourg

[email protected]

Tim Seuré

TIM SEURÉ has received his Bachelor in mathematics in 2021 and is about to finish his Master’s studies. Afterwards, he will be working towards a Ph.D. in computational number theory and cryptography.

Department of Mathematics, University of Luxembourg, 4634 Esch, Luxembourg

[email protected]

Vincent Wolff

VINCENT WOLFF entered the University of Luxembourg in 2016. He is now doing a Ph.D. in Mathematical Physics under the supervision of Prof. Dr. Sergei Merkulov.

Department of Mathematics, University of Luxembourg, 4634 Esch, Luxembourg

[email protected]

References