Ramsey and Gallai-Ramsey numbers for linear forests and kipas111Supported by the National Natural Science Foundation of China (Nos. 12201375, 12061059).
Abstract
For two graphs , the Ramsey number is the minimum integer such that any red/blue edge-coloring of contains either a red copy of or a blue copy of . For two graphs , the Gallai-Ramsey number is defined as the minimum integer such that any -edge-coloring of must contain either a rainbow copy of or a monochromatic copy of . In this paper, the classical Ramsey numbers of linear forest versus kipas are obtained.
We obtain the exact values of , where is either a path or a kipas and and is the
graph consisting of with one extra edge incident with inner vertex.
Keywords: Ramsey number; Gallai-ramsey number;
Path; Kipas
1 Introduction
All graphs considered in this paper are undirected, finite and simple. We refer to the book [1] for graph theoretical notation and terminology not described here. For a graph , let , , , and denote the set of vertices, the set of edges, the number of vertices, the number of edges and the minimum degree of , respectively. We also call and the order and the size of , respectively. The neighborhood set of a vertex is , and its closed neighborhood set is . For two subsets and of we denote by the set of edges of with one endpoint in and the other endpoint in . Let . Let be the complement of . For any integers , we use the convenient notation for the set , specially, we denote as . For a path , we call and center vertices of . For a graph and a vertex , let be a graph obtained from by connecting each vertex of and . If is a path of order , then is called a kipas with center , and denote it by .
Definition 1.
For two graphs , the Ramsey number is the minimum integer such that any red/blue edge-coloring of contains either a red copy of or a blue copy of .
Definition 2.
Let be a set of graphs. The Ramsey number is the minimum integer such that any red/blue edge-coloring of contains either a red copy of or a blue copy of graph in .
For more details on Ramsey numbers, we refer to the survey paper [23] and some papers [2, 4, 5, 10].
1.1 Ramsey and Gallai-Ramsey numbers
The Gallai--coloring (or Gallai-coloring for short) is a -edge-coloring of a complete graph without rainbow triangles. The following result gives the structure of Gallai-coloring.
Theorem 1.1.
Let be the smallest positive integer such that every Gallai--coloring of contains a receiving at most distinct colors. In [6], Fox et al. studied the integer when is fixed, and got the following asymptotic result.
Theorem 1.2.
[6] Let and be fixed positive integers with . Every Gallai--coloring of contains a set of order which uses at most colors, where is only depending on and . Moreover, this bound is tight apart from the constant factor.
Note that is the minimum integer such that every Gallai--coloring of contains a monochromatic . The is also denoted by .
Definition 3.
For two graphs , the Gallai-Ramsey number is defined as the minimum integer such that for any and any exact -edge-coloring (using colors) of must contain either a rainbow copy of or a monochromatic copy of .
Definition 4.
Define as the minimum integer such that for all , every edge-coloring of using at most colors contains either a rainbow copy of or a monochromatic copy of .
It is obvious that . On the other hand, we have that . Otherwise, there exists an integer () such that . By the definition of , there is a -edge-coloring of such that there is neither rainbow copy of nor monochromatic copy of . However, , which implies that there is either a rainbow copy of or a monochromatic copy of in any -edge-coloring of , a contradiction. Therefore, , and we only need to talk about the parameter .
Fox et al. [6] proposed the following conjecture.
Conjecture 1.
[6] For integers and ,
1.2 Structural theorems and our methods
The Gallai--coloring, a -edge-coloring of without rainbow , has an interesting structure. Fujita and Magnant [7] consider the structures of -edge-coloring of without rainbow , where is a graph obtain from by adding a pendent edge. Thomason and Wagner [25] got the structures of -edge-coloring of without rainbow . In addition, Gyárfás et al. [11] investigated the local Ramsey number of stars, which implies the structures of -edge-coloring of without a rainbow star or a rainbow tree , respectively, where is the graph consisting of with one extra edge incident with a center vertex.
In this paper, we study the Gallai-Ramsey number , where and is a path or a kipas. The following are the structures of -edge-colored without rainbow and , respectively.
Given an edge coloring of , let be the set of edges colored and let be the vertices at which an edge of color appears. The following are the structures of -edge-coloring of without a rainbow .
Theorem 1.3.
[25] Let be two integers with and . Let be a -edge-colored graph so that it contains no rainbow . Then, after renumbering the colors, one of the following must hold:
-
color 1 is dominant, meaning that the sets , , are disjoint;
-
is monochromatic for some vertex ;
-
there are three vertices such that , , contains plus perhaps some edges incident with , and every other edge is in ;
-
there are four vertices such that , , and every other edge is in ;
-
, , , , and .
Let be a -edge-coloring of such that can be partitioned into three parts (at most one of them is empty) such that each edge of is colored by either or , each edge of is colored by either or , and each edge of is colored by either or . Moreover, each edge between is colored by , each edge between is colored by and each edge between is colored by .
Let be a -edge-coloring of such that there is exactly one edge, say , having color . All other edges incident with are colored by , and all other edges incident with are colored by . All edges not incident to vertices have color .
Let be a -edge-coloring of such that there exists a rainbow (say the vertices in the triangle are , where has color , has color and has color ). In addition, any other edge has color .
Remark 1.1.
If is an edge-coloring of of , then the graph induced by edges with color is a star forest.
The following are the structures of -edge-coloring of without a rainbow .
Theorem 1.4 ([11]).
For positive integers and , if is a -edge-coloring of without rainbow , then after renumbering the colors, one of the following holds.
and ;
and Item in Theorem 1.3 holds.
The following are the structures of -edge-coloring of without rainbow .
Theorem 1.5 ([11]).
For positive integers and , if is a -edge-coloring of without rainbow , then after renumbering the colors, one of the following holds.
and ;
and Item in Theorem 1.3 holds.
Recall Theorem 1.1 and definition of , the structure of Gallai-coloring is important for . Analogously, the structures of -edge-colorings in Theorem 1.3 is important for . However, there are five structures, and it is complicated if we consider the five structures at the same time. Observe that the structures are simple since they contain a large monochromatic complete graph (the monochromatic complete graph can obtained by deleting at most three vertices), and structure is simple since there are only five vertices. Therefore, the structures is very important for . Similarly, in Theorem 1.4, the structures and are important; in Theorem 1.5, the structure is important and structures and are clear. By above discussion, and are key structures in -edge-colored without rainbow or .
Firstly, we observe the structure . Suppose . It is clear that can be partitioned into parts such that each edge between different parts is colored by , and each edge of is colored by either or . Therefore, contains all edges of color and for . We denote the set of all such -edge-colorings on by .
Definition 5.
Let be the minimum number such that any edge-coloring of contains a monochromatic .
For the structure , can be partitioned into three parts as the definition, and at most one part is empty. If there is an empty part, then . Thus, we only consider that are all nonempty sets. We denote the set of all such 3-edge-colorings on by .
Definition 6.
Let be the minimum number such that any edge-coloring of contains a monochromatic .
Remark 1.2.
In order to determine the , where , the main work is to determine or . It is easy to verify whether contains a monochromatic copy of under the other structures.
1.3 Progress and our results
Li et al. [18] got some exact values of for small and bounds for general . Recently, Wei et al. [26] got the exact values of for small and upper and lower bounds for general , where is either a general fan or a general wheel graph. The motivation of this paper is whether we can obtain exact values for such that is not just a graph but belongs to a class of graphs.
In this paper, we first study the new parameters and , and further get the exact values of and , where .
We call a linear forest a -linear forest if any component of the linear forest is a path of order at least . We first get a classical Ramsey number for and the set of -linear forests, and the result is useful and will be used in Section 5.
Theorem 1.6.
If and is the set of linear forest of size at least , then
In addition, if and is the set of -linear forest of size at least , then
The Gallai-Ramsey numbers are list as follows.
Theorem 1.7.
If , then
Theorem 1.8.
If , then
Theorem 1.9.
If and , then
If and , then
Remark 1.3.
We do not discuss and when and , since it is easily to obtain. In fact, if and , then must contain a monochromatic when the edge-coloring of belongs to . However, other edge-colorings and are simple.
Theorem 1.10.
For , we have that if is odd, and if is even.
2 Preliminaries
As we know, the study of Gallai-Ramsey numbers deeply depend on the classical Ramsey number. Therefore, we list some useful classical Ramsey numbers in this section, which can be found in the survey paper [23].
Theorem 2.1.
[10] If , then .
The following theorem is a generalization of Theorem 2.1.
Theorem 2.2.
[5] Suppose are -linear forests having components of odd order, respectively. Then
Theorem 2.3.
[22] if , and otherwise.
Theorem 2.4.
[14] If , then
Li et al. [16] got a closing gap on path-kipas Ramsey numbers.
Theorem 2.5.
[16] For and , we have
Salman and Broersma [24] obtained the following result for path-kipas Ramsey numbers.
Theorem 2.6.
[24] If and , then .
Li et al. [15] obtained an exact formula for all star-kipas Ramsey numbers.
The following is a result about decomposition of the complete graph.
Theorem 2.8.
[19] For , can be decomposed into edge-disjoint Hamiltonian cycles; can be decomposed into edge-disjoint Hamiltonian cycles and a perfect matching.
The following result will be used in the subsequent proofs, and we give a simple proof here, although it may be proved somewhere.
Lemma 2.1.
Suppose that is a complete -partite graph with parts and is one maximum part.
-
1.
If , then contains a Hamiltonian cycle.
-
2.
If , contains a Hamiltonian path.
Proof.
The result is true for bipartite graphs. So, suppose . Without loss of generality, let . Then there exists an such that . The proof proceeds by induction on . If , then the result holds obviously. If , then is a complete graph and the result follows. So, suppose that and . Choose a vertex from for . Let for and for , and let . Then is a maximum part in . Since , each is nonempty.
We prove the first statement. Since , it follows that . By induction, contains a Hamiltonian cycle . Note that induces a complete graph. Since , there are three integer such that there are two adjacent edges and of with , and . If , then we can assume that , and hence is a Hamiltonian cycle of . If (resp. ), then there is a cycle in (resp. an edge of ). There is an integer of which is not in (say ), and one of is not equal to (without loss of generality, suppose that ). Then (resp. ) is a Hamiltonian of .
Now we prove the second statement. In this case, and . So, has a Hamiltonian cycle by the first result. Let and suppose that by symmetry. Then is a Hamiltonian path of . ∎
3 Technique results and the proof of Theorem 1.6
In this section, we prove two critical lemmas, which will be used in Section 5.
Lemma 3.1.
Suppose that , and . If is a red/blue edge-coloring of such that does not contain a red copy of , then the following results hold.
If , then contains either a blue copy of or a blue copy of .
If and , then contains either a blue copy of , or a blue copy of , or a blue copy of vertex-disjoint and .
Proof.
Suppose that are the graphs with the common vertex set and their edges sets are red edges and blue edges, respectively. Note that does not contains a copy of . For convenience, we use to denote vertex-disjoint and throughout this proof.
For , if , then contains either a or a , since . If , then there exists a vertex in such that , and hence does not contain a Hamiltonian path (otherwise there is a red , a contradiction). Suppose that is the maximum path of with endpoints . Then . By the maximality of , we have for each , and hence contains a .
For , suppose to the contrary that does not contain , or . We first assume that has at most one vertex of degree greater than one (if the vertex exists, denote it by ). It is clear that and if exists. If exists and contains a perfect matching , then there is a blue with center . Otherwise, there are two vertex of such that is an isolated vertex of and . In fact, if exists and does not contain a perfect matching , then there is an isolated vertex of (we can see as ) and ; if does not exist, then , and for an edge of , is an isolated vertex of (we can see as , respectively). Hence, the vertices are obtained. Let and . Then is a red star. Since , it follows that . Since , by Dirac’s Theorem, contains a Hamiltonian path . Hence, is a red , a contradiction.
Now we assume that there are at least two vertices, say , of degree at least two in . Without loss of generality, we can choose such that is as large as possible. We use to denote the graph induced by blue edges incident with . If , then contains a , unless is a double star. If , then contains a , unless is a graph obtained form , , by adding an edge of (the resulting graph is denoted by ). If , then contains a , unless is either a , or a , or a , where is a graph obtained from by deleting an edge. If , then contains a . Recall that does not contain or by assumption. Hence, either is a double star or . For convenience, let denote the subgraph of induced by . Then either is a double star or .
If , then each edge between and is red; otherwise there is a blue , a contradiction. It is obvious that is a red complete graph; otherwise there is a blue , a contradiction. Choose a vertex , contains a red when . For , since , it follows that . By Dirac’s Theorem, contains a red . Note that connects every other vertex by red an edge. For , there is a red , a contradiction.
If (in other words, is a triangle), then . without loss of generality, suppose that . By the maximality of , we have that . Since does not contain , . If , then there is a vertex of such that . Since all edges between and are red, it is clear that there is a red between and . Hence, is a red , a contradiction. If , then choose a vertex and let . Since , it follows that , and connects every vertex of by an red edge. Then . Hence, contains a Hamiltonian path , and contains a , a contradiction.
If , where , then we can assume that the edges in are
It is obvious that contains only one edge ; otherwise there is either a blue or a blue , a contradiction. Therefore, . By Dirac’s Theorem, contains a Hamiltonian path . Since is an isolated vertex in , it follows that contains a , a contradiction.
If is a double star, then . If contains an edge , then contains either a or a , unless is a and (say the edges in are and ). By the maximality of , we have that , and hence is a with . Recall that the case have discussed since is a . Therefore, assume that is the empty graph. Since , either or (say ). Then . Choose two vertices of . It is obvious that connects every vertex of by a red edge and is a red edge. Note that is a complete graph. Hence, there is a Hamiltonian path of with one endpoint , and hence is a red . Now we obtain a red , a contradiction. ∎
Let be the number components of -linear forest . Note that .
Lemma 3.2.
Suppose that and . For any red/blue edge-coloring of , there is either a red copy of or a blue copy of -linear forest such that .
Proof.
Suppose that is a red/blue edge-colored containing no red . Our aim is to obtain a blue -linear forest with in . Let and be graphs induced by red edges and blue edges, respectively. If does not contain -linear forest, then . We can choose a vertex of and such that . Since , contains a . Hence has a with center , a contradiction. Therefore, . We choose a -linear forest from such that is maximum. Subjects to above, suppose that is maximum.
Let . Then the following result holds.
Claim 1.
For each component of (say, ), the following results hold.
-
If , then .
-
If , then either or there is a vertex of such that . Moveover, if exists, then is a center vertex of and contains a Hamiltonian path.
Proof.
Suppose that . We first prove the following result.
Fact 1.
For each and , and at most one of belongs to .
Proof.
If or , then we can find a -linear forest or which is larger than , a contradiction. For , if , then we can get a larger -linear forest in , a contradiction. ∎
Suppose to the contrary that there exists some and such that . Without loss of generality, suppose that . Then is a new -linear forests of with and , which contradicts the choose of .
If , then the result holds. Thus, suppose that there exists a vertex and a vertex such that .
If , then by Fact 1, and is the unique vertex such that . Moreover, we have ; otherwise is a path of and we can find a -linear forest larger than , a contradiction. Thus, is a Hamiltonian path of .
If , then by Fact 1, . Without loss of generality, assume that . If there is a vertex of with , then by Fact 1. Hence, . By the same discussion as above, we get that ; otherwise there is a -linear forest larger than , a contradiction. So, is a Hamiltonian path of .
If , then . Otherwise, either or is a -linear forest with and , a contradiction. Hence, and . It is obvious that ; otherwise, we can find a larger -linear forest than , a contradiction. Therefore, is a Hamiltonian path of . ∎
We call the unique vertex in Claim 1 the removable vertex of . Note that our aim is to prove that . For convenience, the proof is proceeded by contradiction, that is, . In the following proof, in order to get a contradiction, we need to find a red .
If , then and . Since , it follows that , the result follows. Thus, suppose that . Choose a vertex such that is as small as possible. By the maximality of , we have that , and hence . Moreover, if , then is a perfect matching of . Let . Then .
In order to get a contradiction, we need to find a red with center , that is, to find a path in .
Let be the set of components of such that , and let be the set of other components of . By Claim 1, for each , we have .
The following claim is immediate, which will be used later.
Claim 2.
If , then there is no in .
Proof.
Assume, to the contrary, that contains a path . Then there exists a vertex such that . Recall that implying is a perfect matching of . Thus, there exists a vertex such that . Let be a -linear forest obtained from by deleting and then adding . Then is a -linear forest larger than , a contradiction. ∎
From Claim 2, if , then for each , .
Since , it suffices to find a path in obtained from two vertex disjoint paths , which will be defined below, by adding some edges to connect them.
We first construct . Let and be all the paths in . Then
Let be the removable vertex of . By Claim 1, each contains a path such that . Then for each and . Let be the endpoints of . Since , we can choose a subset of . Let
Then and is a path of with endpoints and . It is worth noting that if , then let be the empty graph.
Now we construct . Let and . It follows from that . Let be a subset of and be a subset of such that . It is obvious that contains a red path of order . Moreover, one endpoint of is in (say ) and the other endpoint is in (say ). Since , if , then , and let be the empty graph.
We construct a red path as follows. If both are not empty, then we let ; if is the empty graph, then let ; if is the empty graph, then let . It is clear that is a red path of with order and . If , then and
(note that since is a -linear forest). Thus, contains a red , a contradiction. Hence, we assume that below (then ).

Claim 3.
contains a path of order .
Proof.
Let . Since and , it follows that . Let be a maximum path in . Since , it follows that is a Hamiltonian path of (say the endpoints of are ; if , then ), unless and the two vertices of forms a blue edge.
If is a Hamiltonian path of , then is a path of and . Otherwise, (say ) and . Thus, we assume that . Then . Note that one endpoint of is and the other endpoint is (if is the empty graph, then ; otherwise ). Since , we have that one of is in (by symmetry, suppose ). If is not the empty graph, then is a path of , and ; if is the empty graph, then is a path of , and . ∎
By Claim 3, in order to get a in , we only need to prove that
Suppose, to the contrary, that . Then
and hence . If , then . Recall that . Then , a contradiction. If , then it follows from Claim 2 that each path of has order at least , and hence . Then , which contradicts that . Therefore, we get a in , and hence there is a in , a contradiction. ∎
Now we give the proof of Theorem 1.6.
Proof of Theorem 1.6: Let and . We partition into two parts such that and . Let be a red/blue edge-coloring of such that each edge of is red and the other edges are blue. It is easy to verify that there is no a red copy of . Suppose that is a blue linear forest with maximum number of edges. Since each edge of incidents to at least one vertex of and each vertex of incidents to at most two edges of , it follows that , and hence does not contain blue linear forests of size at least . Therefore, and . By Lemmas 3.1 and 3.2, we have and by assuming that . Hence, .
4 Proof of Theorems 1.7, 1.8 and 1.9
In order to prove Theorems 1.7, 1.8 and 1.9, we need the exact values of and first. The following is the exact value of .
Lemma 4.1.
If and , then
Proof.
Let be a positive integer and be an edge-colored such that the edge-coloring belongs to . Let be all the parts. Without loss of generality, let . Let .
If , then let . It is obvious that . By Lemma 2.1, contains a Hamiltonian path with color 1. Thus, . Therefore, let in the following discussion.
We first prove the upper bounds. Let . If , then by Lemma 2.1, contains a monochromatic path with color . If , then
(1) |
Thus, by Theorem 2.1, there is an integer such that , and hence contains either a monochromatic with color or a monochromatic with color . If the latter holds, then the monochromatic is obtained. Hence, suppose that the former holds. If , then the result follows. Thus, let and contains a monochromatic with color . Then . Since and , it follows that contains a monochromatic that is obtained from the by adding two edges between and , where joins one endpoint of and a vertex of (say is the endpoint of belonging to ), and joins and a vertex of . This implies that contains a monochromatic when . Hence, we assume that below.
Case 1.
is odd.
Let . If , then contains a monochromatic path with color , and hence contains a monochromatic obtained form the monochromatic paths and by adding an edge joins one endpoint of and the endpoint of belonging to . Since , contains a monochromatic . If , then contains a monochromatic copy of . It suffices to prove that . Since is odd, it follows that , and hence . So
Case 2.
is even and .
Let , where and are odd. Since and , it follows from Theorem 2.2 that , and hence contains either a monochromatic path with color , or a monochromatic path with color . If the former holds, then contains a monochromatic . Hence, suppose that the latter holds. Assume that . Let and . If , then contains a monochromatic path with color . We can choose the two endpoints of as and . Without loss of generality, suppose that the two endpoints of are and the two endpoints of are . Then is a monochromatic with color . Note that
by the inequality (1). It follows that contains a monochromatic copy of with color . If , then contains a monochromatic copy of . We need to prove that . Since and is even, it follows that , and hence
Case 3.
is even and .
In this case, and . Since , if does not contain a monochromatic copy of with color , the monochromatic is obtained. Otherwise, contain monochromatic with color . We can choose a subset of such that , since . Then contains a monochromatic with color , and there is a monochromatic with color that is obtained by connecting the endpoint of belonging to and an endpoint of . Since , there is a monochromatic with color .
Now we prove the lower bounds. Let and . We partition into parts such that and . Let for , and let , where is the disjoint union of and . Choose a -edge-coloring such that is colored by for and is a monochromatic graph with color , and the other edges are colored by . It is easy to verify that there is no monochromatic with color . For color , it is clear that the edges with color induces a spanning complete -partite graph with parts . Let be a minimum monochromatic path. Since is an independent set in the complete -partite graph, each edge of incidents with a vertex of , and hence Thus, , and there is no monochromatic with color . Therefore, there is no monochromatic in , which implies that . ∎
The following is the exact value of .
Lemma 4.2.
If , then
Proof.
We first prove the lower bounds. Suppose that if is even, and if is odd. Let be an edge-coloring of and the three parts are . If is even, then let and . If is odd, then let . Moreover, let be a complete graph with color . Then does not contain a monochromatic copy of . Therefore, the lower bounds are obtained.
Now we prove the upper bounds. Suppose that if is even, and if is odd. Let be an edge-coloring of with the three parts . Without loss of generality, suppose that . Note that .
Let . If , then . If , then there is a monochromatic between and . Otherwise, suppose that . Then . Since , it follows that is odd and . However, , a contradiction. Therefore, suppose below.
Let . Then . Otherwise, if , then
a contradiction. Thus, . By Theorem 2.1, we have that . Hence, contains either a monochromatic copy of with color or a monochromatic copy of with color .
Suppose that contains a monochromatic copy of with color (say is an endpoint of ). Let and let . Then there is a monochromatic between and with color . Without loss of generality, suppose that are endpoints of the path with . Then monochromatic path of order (see Figure 2 (1)). We only need to verify that below. If , then . If , then

Suppose that contains a monochromatic with color . Let . Then we can choose a subpath of with (say is an endpoint of ). Let . Then . Then there is a monochromatic between and with color . Without loss of generality, suppose that is the endpoint of the path with . Then monochromatic path of order (see Figure 2 (2)). We only need to verify that below. Note that
If , then . If , then . ∎
Proof of Theorem 1.7: Let be an edge-coloring of such that does not contain rainbow . From Theorem 1.3, one of holds if , and one of holds if . Note that if , then contains a monochromatic with color whenever one of holds.
For , let . Since , contains a monochromatic with color whenever one of holds. By Lemma 4.1, . So, . Since we can choose a of such that does not contain monochromatic , .
For , let . By Lemma 4.1, . Since , it follows that , and hence contains a monochromatic copy of whenever satisfies one of . Therefore, .
Proof of Theorem 1.8: Let be an edge-coloring of such that does not contain rainbow . By Theorem 1.5, if , then either or holds; if , then holds.
Suppose . Then . By Lemma 4.1, the result holds. Thus, we talk about the case below. If , then the maximum monochromatic path in is when , and is when . Thus, when . If , then , and hence . If , then , and hence .
Proof of Theorem 1.9: Let be an edge-coloring of such that does not contain rainbow . If , then either or . Therefore, . If , then and hence .
5 Proof of Theorem 1.10
In order to prove Theorem 1.10, we need the exact values of and a upper bound of . The following is the exactly value of .
Lemma 5.1.
If and is odd, then ; if and is even, then .
Proof.
The following claim indicates the lower bounds of .
Claim 4.
Let if is odd, and let if is even. There exists an -edge-coloring of such that does not contain monochromatic .
Proof.
We construct as follows.
-
•
Partition into four parts such that , if is odd, and and if is even.
-
•
Let . Each edge of is colored by , each edge of is colored by , each edge between the three parts is colored , and each edge in , and are colored by .
Clearly, this edge-coloring belongs to and the two parts are and . It is easy to verify that there is no monochromatic with color or . Now we prove that there is no monochromatic with color . Suppose to the contrary that there is a monochromatic with color , where is a monochromatic with color and is the center of the . Let be the subgraph of induced by all edges with color . Since does not contain monochromatic , . Thus, for some . Then is a subgraph . However, since is a complete bipartite graph with two parts and , and since , it follows that the maximum path in is , a contradiction. ∎
Now we prove the upper bound. Suppose that . Let be an edge-colored and the edge-coloring belong to . Then can be partitioned into two parts with such that each edge of is colored with or , each edge of is colored with or , and each edge between and is colored with .
Case 1 .
In this case, by Theorem 2.5. Then there is either a monochromatic copy of with color or a monochromatic copy of with color in , and hence there is either a monochromatic copy of with color , or a monochromatic copy of with color which is obtained form the monochromatic copy of with color and a vertex by adding all possible edges between and .
Case 2 .
Clearly, . Thus, there is either a monochromatic copy of with color or a monochromatic copy of with color in . If the latter holds, then the result follows. If the former holds, then let be the center and be the set of leaves of the star . Since , and each edge between and is colored by , it follows that there is a monochromatic path with color and , and hence is a monochromatic copy of with color .
Case 3 .
Clearly, also holds. Suppose that there is no monochromatic with color or . We will show that there is a monochromatic with color below. Let and , where . Since , it follows that . Since , we have that and . By Theorem 2.7, and hence there is a monochromatic copy of with color in . Let be the center and let be the set of leaves in . Then .

By Lemma 3.1 and Lemma 3.2, one of the following statements holds.
-
•
and there is a -linear forest in with color such that , where is the number of components of .
-
•
and there is either a or a in with color .
-
•
and there is either a (the vertex disjoint union of and ), or a , or a in with color .
In above cases, . If , then we can choose the -linear forest such that , where .
Claim 5.
when and when . Moreover, .
Proof.
If , then is a -linear forest and hence . Thus, . Since , it follows that
If or , it is easy to verify that and . Hence, , since . ∎
By Claim 5, we can choose vertices of (say ). Let , where .

Claim 6.
.
Proof.
If , then and
Since , . If , then and
∎
By Claim 6, we can choose a subset of such that . We assume that consists of paths , and the two endpoints of are and . Observe that we can construct a monochromatic path that is obtained from and by connecting and , where . On the other hand, since the edges between and are colors by , we can get a monochromatic of order with one endpoint in and the other endpoint in (say is the endpoint of belonging to ). Then there is a monochromatic path with color that is obtained from and by adding the edge . Hence, is monochromatic kipas (see Figure 4). Note that
If , then . Hence, , and contains a monochromatic with color . If , it is easy to check that . Hence, . ∎
The following is an upper bound of .
Lemma 5.2.
If , then if is odd, and if is even.
Proof.
Suppose that if is odd, and if is even. Let . Choose an edge-coloring of with parts . Without loss of generality, let and let and . Then .
If , then , and hence there is a monochromatic copy of in colored by or . Since are both nonempty sets, it follows that there is a monochromatic copy of in . Thus, suppose that . Then and . The proof will be given by contradiction, that is, does not contain a monochromatic copy of . Suppose that are two subgraphs induced by edges in and with color , respectively. Let be a star in such that is maximum. Let be the center of . Let be a path in such that is maximum. Let , and . Then and .
Claim 7.
and contain a monochromatic copies of and with color , respectively.
Proof.
If and , then by Theorem 2.3, and by Theorem 2.4. For , since is an edge, we also have that . Since does not contain a monochromatic copy of and does not contain a monochromatic copy of with color by the choice of and , it follows that and contain a monochromatic copies of and with color , respectively. If or , then and contain a monochromatic copies of and with color , respectively. So, and contain a monochromatic copies of and with color , respectively. ∎
We use and to denote monochromatic copies of with color , respectively. Moreover, suppose that the center of and are , respectively.
Claim 8.
and . Moreover, if , then .
Proof.
If , then since , there is a monochromatic with color between and , and hence contains a monochromatic copy of with color , a contradiction. As the same reason, we have ; otherwise, there is a monochromatic with color , a contradiction. Moreover, if , then ; otherwise, there is a monochromatic with color , a contradiction. ∎
Let and . Then by Claim 8, . We have the following claim.
Claim 9.
There is no monochromatic with color in .
Proof.
We first prove that . If , then the result follows. If , then and hence
For the case and , by Claim 8, . Moreover, since . Let . Then . So,
as desired.
Assume, to the contrary, that contains a monochromatic with color (say one endpoint of is ). Then
We can choose a subset of with . Since , there is a monochromatic of order between and (say one endpoint of is ). Then is a monochromatic with color , and hence a monochromatic with color , a contradiction. ∎
Case 1 .
The following claim is useful for the calculation.
Claim 10.
.
Proof.
Suppose, to the contrary, that . Then . We can choose a subpath of such that (say one endpoint of is ). Since , it follows that . Choose a subset of such that (recall that is the set of leaves of the maximum star in ). Then there is a monochromatic path with color between and (say is an endpoint of ), and so is a monochromatic copy of with color , a contradiction. ∎
We have proved that does not contain a monochromatic copy of with color in Claim 9. In this case, we have the following claim.
Claim 11.
There is no monochromatic copy of with color in .
Proof.
Assume, to the contrary, that contains a monochromatic copy of with color (say one endpoint of is ). Then . We first prove that . Since by Claim 8, it follows that , and hence
as desired. Recall that
We can choose a subset of such that . Since , there is a monochromatic of order between and (say one endpoint of is ). Then is a monochromatic with color , and hence a monochromatic with color , a contradiction. ∎
By Claims 9 and 11, we have . However, if , then
Since and , we have , a contradiction. If , then
a contradiction.
Case 2 .
By Claim 9, does not contain monochromatic with color . Let
Since , it follows that contains a monochromatic copy of with color . Note that
Since , it follows that . Let be the center of and be the set of leaves of . Then . Since , there is a monochromatic with color between and . Hence, is a monochromatic copy of with color , a contradiction. ∎
If , then let . Let be an edge-coloring of with parts and . Then when and when . Suppose that each edge of is colored by or , and the edges between and are colored by . Let be the subgraph of induced by edges with color . For , if or and , then there is a monochromatic copy of with color ; if or and , then there is a monochromatic copy of with color . For , if , then there is a monochromatic copy of with color ; if , then there is a monochromatic copy of with color . Thus, we have that for . Let (resp. ) be an edge-coloring of (resp. ) such that the monochromatic graphs induced by color and are , and (resp. , and ), respectively. Then (resp. ) but there is not a monochromatic copy of (resp. ). Therefore, we have for .
If is an edge-coloring of with the maximum part , then , and hence contains a monochromatic copy of with color or , and so contains a monochromatic copy of , and hence for .
6 Acknowledgements
We gratefully thank the anonymous reviewers for their careful reading of our manuscript and their valuable comments and suggestions. This paper is supported by the National Natural Science Foundation of China (Nos. 12201375, 12061059)
References
- [1] J.A. Bondy, U.S.R. Murty, Graph Theory, GTM 244, Springer, 2008.
- [2] V. Chvátal, F. Harary, Generalized Ramsey theory for graphs. III. Small off-diagonal numbers, Pacific J. Math. 41(2) (1972), 335–345.
- [3] F.R.K. Chung, R.L. Graham, Edge-colored complete graphs with precisely colored subgraphs, Combinatorica 3 (1983), 315–324.
- [4] P. Erdős, R.J. McEliece, H. Taylor, Ramsey bounds for graph products, Pacific J. Math. 37(1) (1971), 45–46.
- [5] R.J. Faudree, R.H. Schelp, Ramsey numbers for all linear forests, Discrete Math. 16 (1976), 149–155.
- [6] J. Fox, A. Grinshpun, J. Pach, The Erdös-Hajnal conjecture for rainbow triangles, J. Combin. Theory Ser. B 111 (2015), 75–125.
- [7] S. Fujita, C. Magnant, Extensions of Gallai-Ramsey results, J. Graph Theory 70(4) (2012), 404–426.
- [8] S. Fujita, C. Magnant, K. Ozeki, Rainbow generalizations of Ramsey theory-A dynamic survey, Theory Appl. Graphs. 0(1), Article 1, (2014)
- [9] T. Gallai, Transitiv orientierbare Graphen, Acta Math. Acad. Sci. Hungar. 18 (1967), 25–66.
- [10] L. Gerencsér, A. Gyárfás, On Ramsey-Type Problems, Annales Universitatis Scientiarum Budapestinensis, Eötvös Sect. Math. 10 (1967), 167–170.
- [11] A. Gyárfás, J. Lehel, R.H. Schelp, Z.S. Tuza, Ramsey numbers for local colorings, Graphs Combin. 3 (1987), 267–277.
- [12] A. Gyárfás, G.N. Sárközy, A. Sebö, S. Selkow, Ramsey-type results for Gallai colorings, J. Graph Theory, 64 (2010), 233–243.
- [13] A. Gyárfás, G. Simonyi, Edge colorings of complete graphs without tricolored triangles. J. Graph Theory 46(3) (2004), 211–216.
- [14] F. Harary, Recent results on generalized Ramsey theory for graphs, Graph Theory and Applications, Springer, Berlin, 125–138 (1972)
- [15] B. Li, Y. Zhang, H. Broersma, An exact formula for all star-kipas Ramsey numbers, Graphs Combin. 33 (1), 141–148.
- [16] B. Li, Y. Zhang, H. Broersma, P. Holub, Closing the gap on path-kipas Ramsey numbers, Electron. J. Combin. 22(3) (2015), 3–21.
- [17] H. Liu, C. Magnant, A. Saito, I. Schiermeyer, Y.T. Shi, Gallai-Ramsey number for , J. Graph Theory 94 (2020), 192–205.
- [18] X. Li, L. Wang, X. Liu, Complete graphs and complete bipartite graphs without rainbow path, Discrete Math. 342 (2019), 2116–2126.
- [19] E. Lucas, Récreations Mathématiqués, Vol. II. Gauthier-Villars, Paris, (1892)
- [20] C. Magnant, P.S. Nowbandegani, Topics in Gallai-Ramsey theory, Springer Nature, Cham, Switzerland, 2020.
- [21] C. Magnant, I. Schiermeyer, Gallai-Ramsey number for , J. Graph Theory 101(3) (2022), 455–492.
- [22] T.D. Parsons, Path-star Ramsey numbers, J. Combin. Theory, Ser. B 17(1) (1974), 51–58.
- [23] S.P. Radziszowski, Small Ramsey numbers, Electron. J. Combin., Dynamic Survey, 1–30 (1994)
- [24] A.N.M. Salman, H.J. Broersma, Path-kipas Ramsey numbers, Discrete Applied Mathematics 155 (2007), 1878–1884
- [25] A. Thomason, P. Wagner, Complete graphs with no rainbow path. J. Graph Theory 54 (3) (2007), 261–266.
- [26] M. Wei, C. He, Y. Mao, X. Zhou, Gallai-Ramsey numbers for rainbow and monochromatic fans or wheels, Discrete Math. 345 (2022), 113092.