Dissecting the square into seven or nine congruent parts
Abstract.
We give a computer-based proof of the following fact: If a square is divided into seven or nine convex polygons, congruent among themselves, then the tiles are rectangles. This confirms a new case of a conjecture posed first by Yuan, Zamfirescu and Zamfirescu and later by Rao, Ren and Wang. Our method allows us to explore other variants of this question, for example, we also prove that no rectangle can be tiled by five or seven congruent non-rectangular polygons.
Key words and phrases:
Tiling; Congruent; Equiangular; Computational geometry1. Introduction
Let and be convex polygons. We say that can be tiled by copies of if there are convex polygons , all congruent to such that and the have disjoint interiors.
When can a polygon be tiled by copies of ? In this paper we are mainly interested in the case when is either a square or a rectangle.
It is easy to see that a square can always be tiled by congruent rectangles. This can be done by dividing the square by vertical lines. When is not prime, there are many other ways in which this can be done and tiles need not be constructed with vertical lines. However, it is not known if there is an odd number and a non-rectangular tile for which a square can be tiled by copies of . The standing conjecture, as stated in [RRW20], is as follows.
Conjecture 1.
If is an odd positive integer, then a square can be tiled by congruent copies of a convex polygon only if is a rectangle.
This conjecture, for , was posed as a problem by Rabinowitz in the journal Crux Mathematicorum and was answered by Maltby [Mal91]. Maltby later generalized his result by showing that it is impossible to tile a rectangle by copies of unless is also a rectangle [Mal94].
For , Conjecture 1 was verified by Yuan et al. [YZZ16]. They attribute a similar problem to Danzer, who conjectured that a square may not be tiled by congruent polygons (convex or not), except when is a rectangle. Danzer’s conjecture remains open. They also posed Conjecture 1 for prime numbers .
Apart from these two special cases, it is known that if a square can be tiled by an odd number of copies of , then cannot be a triangle. This follows from the work of Thomas and Monsky [Tho68, Mon70] who, independently, proved that a square cannot be tiled by an odd number of triangles with the same area. Recently Rao et al. showed that may not have more than sides and that may not be a right-angle trapezoid [RRW20].
In this paper we give a computer-based proof of the validity of Conjecture 1 for and .
Theorem 2.
Let or , then a square cannot be tiled by copies of a convex polygon unless it is a rectangle.
Using the same techniques, we are able to prove the following result for rectangles.
Theorem 3.
Let or , then no rectangle can be tiled by copies of a convex polygon unless it is also a rectangle.
Using slight modifications to our method, we are able to classify all tilings of the square using non-rectangular equiangular convex polygons. Here, two convex polygons are equiangular if there is a bijection between their vertices, respecting the order of the vertices, such that the angles at corresponding vertices be equal.
Theorem 4.
There are ways (in the sense described in Section 3) in which a square can be tiled by non-rectangular equiangular convex polygons.
Having this list, we are able to answer the first three open problems stated at the end of [YZZ16].
The rest of the paper is devoted to proving these theorems. The main layout is as follows. We assume that a square or rectangle can be tiled by copies of a convex polygon which is not a rectangle. In Section 2 we deduce properties that the tiles should have. In Section 3 we construct a polyhedral graph associated to a tiling of . In Section 4 we describe the algorithm we used to see which of these graphs could be obtained by a tiling of by congruent tiles. If there are no such graphs then the tiling does not exist. In Section 5 we mention the modifications needed to prove Theorem 4 and give several examples of such tilings. We give some final remarks in Section 6.
The code we used is available at https://github.com/XGEu2X/TilingSquare/. The Readme.md
file in this repository contains a small explanation of how the code works. It is possible to print out parts of the proof to see the steps taken to reach our conclusions.
2. Properties of tilings
We start by listing four properties that the tiles should have if they are to successfully tile a unit square. The first three properties are combinatorial and help to reduce the number of cases that must be analyzed later. The last property is geometric and is used later in the algorithm.
Lemma 5.
Let be an odd integer and let be a rectangle. Let be the (closed) sides of ordered cyclically, where the indices are taken mod . If can be tiled by copies of a convex body , then the following hold:
-
(1)
has at least sides.
-
(2)
If a tile intersects two consecutive sides and of , then contains the vertex of common to and .
Furthermore; if is a square, has exactly sides and is not a rectangle then:
-
(3)
A tile cannot have two sides such that and for some .
-
(4)
does not have two consecutive right angles.

Proof.
As mentioned before, if is a square then (1) follows immediately from the main results in [Tho68, Mon70]. If is a rectangle then we can apply a linear transformation which sends it to a square. Since linear transformations preserve areas, the same result holds.
Part (4) is Theorem 1.2 in [RRW20].
To prove (2), assume that intersects sides and but does not intersect the corner contained in . There are two cases to consider here. If touches two opposite corners of , as in Figure 1 (left), then the diameter of equals the diameter of . Consider the connected components of : there are at least two of them or would cover half of . One of these components must be properly contained in one of the right triangles obtained by splitting by its diagonal, but any tile contained in this component must have diameter smaller than . This leads to a contradiction. The argument when does not touch two opposite corners of , as in Figure 1 (middle), is similar. Let be a tile containing the corner of common to and . Then the diameter of must be smaller than the diameter of , leading to a contradiction.
Finally, assume that (3) does not hold. We consider two cases, the first is when some corner of is incident with exactly one tile, then must have a right angle. Since has two parallel sides, it has two consecutive right angles which contradicts (4). The second case is when every corner of is incident with at least two tiles. Then must have an interior angle of at most . But since has two vertices on and its other two vertices on , all of its interior angles are strictly greater than which is a contradiction. This is exemplified in Figure 1 (right). ∎
3. The graph associated to a tiling
In this section we construct a polyhedral graph that contains the combinatorial structure of a tiling of the square.
Let be convex polygons which tile a square or rectangle with closed sides in cyclic order.
Construct a graph , where . The edges of this graph are defined by the following rules:
-
•
if and is a segment of positive length.
-
•
if .
contains all the combinatorial properties of the tiling.
We can think of as the dual of a pyramid with a square or rectangular base in which the base has been tiled in the same way as . Furthermore, the following proposition gives us one more useful property.
Proposition 6.
The graph is -connected.
Proof.
Let ,, each is either a tile or a side of . We must prove that for every selection of these vertices, is connected. It is enough to prove that, for each and each , there is a path between and . In this way, any two vertices of may be connected by a path through some or some . Let be a point in the interior of a .
If and are both sides of , then choose a segment from to any point in the relative interior of . The segment is contained in . By taking the graph induced by tiles that intersect (including ) we obtain a connected subgraph of which contains and . Therefore is connected.
Otherwise, consider a line separating the relative interiors of and . Let be the line parallel to that contains . Since and are convex, the intersection between and is a segment, a point or the empty set. In any case, there is a segment contained in connecting and a side which does not intersect . As above, this implies that is connected. ∎
Steinitz’s theorem [Grü07] states that the family of polyhedral graphs (corresponding to convex polytopes) is precisely the family of -connected planar graphs. Therefore, our graph is a polyhedral graph.

Note that the degree of a tile in may not correspond to the number of sides of as a polygon. However, the number of sides of is a lower bound for the degree of in .
In this way we have associated a graph to each convex tiling of the square by tiles of at least sides. This graph has a distinguished set of vertices which form a cycle. Figure 2 shows an example of a tiling with its associated graph .
In what follows, we study pairs where is a -connected planar graph with vertices, and induces a -cycle in . Since these graphs come from tilings of the square, we simply refer to the vertices of in as sides and the vertices in as tiles. We say that two pairs and are isomorphic if there is an isomorphism between and such that .
To avoid confusion in the future, the union of the sets of vertices of the polygons are called tiling-vertices. The set of tiling-vertices in the boundary of a tile are called the tiling-vertices of ; the tile has internal angles at each of these, although some may be equal to .
Remark.
In practice, we need to generate all such graphs using plantri
[BM07]. To facilitate this, we add an extra vertex to which is adjacent to the vertices in . Since we deal mostly with quadrilateral tiles, we can specify that this new graph has minimum degree . It also simplifies checking isomorphisms, since we only need this new vertex to be fixed.
4. Exploring the tilings
Let be either a rectangle with sides of length and , or the unit square (in which case we take as a constant). Let be the set of sides of . Assume that can be tiled by copies of a convex body which is not a rectangle. By part (1) of Lemma 5, has at least sides. Therefore, as described in Section 3, there is a pair associated to this tiling where is a -connected planar graph on vertices such that its tiles have minimum degree .
Using plantri
it is possible to generate all graphs with these properties with .
Once this is done, we search each graph to find the possible distinguished -cycles. A single graph may have several possible distinguished -cycles, so we use the isomorphism algorithm in NetworkX
[HSS08] to avoid including two pairs which are isomorphic.
Now we filter these lists by using part (2) of Lemma 5. Since this is a purely combinatorial statement, it is easy to check it directly on .
At this point, the number of sides of becomes relevant. We split the analysis into cases. If is a quadrilateral then we use part (3) of Lemma 5 to filter the list once more. If not, then the tiles in necessarily have degree at least , so we may discard the graphs that do not satisfy this.
In order to filter this list further, we must use geometrical properties of such as the values of its angles and side-lengths. Let be the vertices of , the internal angle of at and be the length of the segment . The angles must satisfy the equation .
Recall that if is a tiling-vertex of a tile , then the internal angle of at is either or one of the . For every tiling-vertex , the sum of the internal angles at of the tiles that contain must be either , or depending on whether is in the interior, on a side or on a vertex of . This is shown in Figure 3. Therefore, the angles must satisfy a system of non-homogeneous linear equations.

Something similar happens for the side-lengths of . For every side of , take the tiles adjacent to . The sum of the sides of these tiles contained in must add up to the length of which is either or . We do not fix the value of but treat it as a variable. So this gives us four non-homogeneous linear equations for the and, if applicable, .
Furthermore, if two tiles and intersect in a segment such that and are consecutive corners of both and , then we can deduce an equation of the form . More generally, if there is a line which contains a side of the tiles and such that the and are on different sides of and the cover the same segment of as the , then we may deduce another linear equation for the (see Figure 3).
In the quadrilateral case we may also check non-linear equations which involve both sides and angles of . The area of is , so
and by computing the length of the diagonals of we obtain
All of these equations must be satisfied. The problem is that, from the graph , we do not know which tiling-vertices of a tile correspond to which vertices of . If the degree of in is larger than then we must also decide which tiling-vertices of have internal angles equal to . We could try computing all possibilities but the number of cases is too large even for a single graph, so instead we do something slightly more efficient which allows us to discard most of the remaining graphs.
Each angle of is labeled by or depending on whether the angle is acute, right or obtuse. We also label the angles of each tile at each tiling-vertex of with depending on whether the angle is acute, right, obtuse or plain (meaning that the internal angle at this point is ). We call the label of an angle its angle-type. We use the fact that the angles of each that are not labeled with must appear in the same cyclic order as the angles of .
There are several ways in which the internal angles of can be labeled. This depends on whether is a square or a rectangle, but they are easy to list. For example, if is a quadrilateral, the internal angles of , ordered cyclically and without taking orientation into account, can be labeled in exactly different ways: , , , , , , , and . In this case we are using property (4) of Lemma 5 to discard labels with two consecutive right angles. Since is not a rectangle, we do not include . If has sides, the number of ways to label the angles is greater.
There are several conditions which the angle-types of the tiles must satisfy. For example, assume that is a tiling-vertex of . If is also a corner of , then the angle-type of at is either or , depending on whether there are other tiles containing or not. To state another example, assume that and are the only two tiles containing a tiling-vertex which lies on a side of . Then either the angle-types of and at are both or one is and the other is . See Figure 4 for an example of a tiling with some angle-types.

In order to avoid listing these properties individually, we introduce the following definitions. Let be a small real number. Define as , , or depending on whether the angle-type of at is , , , or , respectively. Likewise, define as , , or depending on whether the angle-type of at is , , , or . If is small enough, then values of the angles of at are in the interval . Thus, for every tiling-vertex we have that
where is , or if is in a corner, side or interior of , respectively. In practice, this allows us to decide the angle-types of the tiles fairly quickly, even if we do not know the values of the angles of . Another useful observation comes from noting that each of the previous sums has at most terms; since we only work with , any value of smaller than allows us to discriminate between valid and invalid assignations of angle-types.
Now we are ready to filter the list of pairs . For each of these pairs, select one of the possible angle-type assignations for the internal angles of . For each tile , we wish to decide which tiling-vertices of correspond to which vertices of . So we assign to , where is a tiling-vertex of , a vertex of or a mark indicating that the angle-type of at is . In order to do this, we use a deep search algorithm to explore the tree of possibilities. The process is divided into three main steps:
- Selection:
-
Select a tile and one of its tiling-vertices such that is unassigned.
- Assignation:
-
Makes a list of valid assignations for taking into account the conditions that the angle-types must satisfy, described above.
- Equation verification:
-
For each assignation, check if a new equation for the angles or the sides of is generated. If so, verify that the equations still have solutions. This is done with
Sympy
[MSP+17] which works symbolically instead of numerically, this guarantees that we do not discard equations when solutions actually do exist. If possible, check that the non-linear equations are not violated. This final step is done numerically, so a small tolerance is allowed.
The surviving assignations are added to the stack for further exploration.
The order in which the tiles and tiling-vertices are explored is important. We always start with the corners of the rectangle and the tiles that contain them. We continue with tiles adjacent to a side of and tiling-vertices in this side in a cyclic order. In many cases, exploring these pairs of tiles and tiling-vertices is enough to discard for a given angle-type labeling of .
This does not eliminate all possible pairs , so we also check the additional geometric conditions. These are described in the following statements.
Lemma 7.

Proof.
It is easy to see that and , therefore
Thinking of as a function of and taking the derivative with respect to yields
Since , we have , so is negative and the extremal values for occur when and which gives the desired result.
The second part is straightforward. ∎
Lemma 8.
Let be a quadrilateral which tiles and has two angles labeled as . Assume some tile has a vertex on corner of with angle-type , then the acute angle of must be or .
Proof.
Let and be the values of the acute and obtuse angles of . In the tiling, the number of obtuse angles must be equal to the number of acute angles. Note that no obtuse angle coincides with a corner of and any obtuse angle which coincides with a side of shares a vertex with exactly one acute angle of a different tile. Since there is an acute angle which coincides with a corner, there exists a tiling-vertex in the interior of incident to more obtuse angles than acute angles. Assume that the number of acute, obtuse and right angles incident to are , and , respectively. The sum of angles in each interior tiling-vertex is , so . Since , we have that , so is of the form with and . From here we may conclude that the only possible values for are and and therefore is or . ∎
5. Equiangular pieces
Using the same method, we explore another variant of the conjecture. At the end of [YZZ16] there are four open problems:
-
(1)
Does every dissection of the square into five similar convex tiles use right isosceles triangles or rectangles as tiles?
-
(2)
Does every dissection of the square into five equiangular convex polygons use only angles measuring , , ?
-
(3)
Find all dissections of the square into five equiangular non-rectangular convex polygons.
-
(4)
Is every dissection of the square into congruent convex tiles necessarily the “standard” one (i.e. dividing it by vertical or horizontal lines) if is a prime number?
Our only contribution to the fourth problem is that of Theorem 2. However, we are able to solve the other three. The first two questions have a negative answer, this can be seen immediately after solving the third problem.
By slightly modifying the algorithm described in Section 4, we are able to list all the possible equiangular tilings (in the sense described in Section 3). These are shown in Figures 6 and 7.
The equivalence relation we use might not be the one one might expect. For example, in Figure 7 there are four pairs of tilings enclosed in dashed rectangles. The two tilings in each rectangle have the same pair , but one might argue that they are geometrically distinct.
The ways referred to in Theorem 4 can be separated into two types of tiling; then ones in which the tiles are triangles and the ones in which they are quadrilaterals.

Figure 6 shows the ways in which a square can be tiled using similar triangles. The tiles in each case are right triangles, let be the smallest angle of the triangles in each case. The top three tilings in Figure 6 (green) have , where is the real root of the polynomial . The tilings in the middle row (red) have . The bottom tilings (purple) have .

The quadrilateral case is shown in Figure 7. Here each pair can be realized as a continuum of tilings as there are always several degrees of freedom. As mentioned before, the tiles which are enclosed in dashed rectangles are equivalent and are included only to illustrate what the equivalence means. In total, there are families of tilings of the square into equiangular quadrilaterals such that the elements of each class produce the same pair . The families represented in the first row of Figure 7 (green) have angles . The rest have angles , where can be chosen, in all but two tilings, in the interval and can sometimes take more values. The first two tilings (blue) are the exception; can only be taken in the interval .
The obvious change is to ignore the side-lengths, so the equations only involve angles. Another helpful change, which greatly improves the running time of our algorithm, is to use more angle-types when tiling with triangles. In this case, instead of using to label an acute angle, we use the labels , and which correspond to acute angles smaller than , equal to and greater than , respectively. Analogously, we replace with , and which correspond to obtuse angles smaller than , equal to and greater than , respectively. Since Lemma 5 does not apply in this case, we use the following observations.
Lemma 9.
Let be an odd integer and be a square. Let be the (closed) sides of ordered cyclically, where the indices are taken mod . If can be tiled by convex polygons which are equiangular and the are triangles, then the following hold:
-
(1)
If a tile intersects a side in a segment of positive length and one of its vertices is in , then the angle of at satisfies .
-
(2)
If a tile contains a side and intersects (or ) in a segment of positive length, then the angle at the vertex of in (or ) of satisfies .
-
(3)
A tile cannot have two sides such that and for some .
If instead the are quadrilaterals, then
-
(4)
A tile intersecting three consecutive sides of in segments of positive length, cannot have an angle .
Proof.
In (1), the two sides adjacent to have length at least , so the side in is the smallest side of . Thus, the smallest angle of is and therefore . Statement (2) is straightforward from the fact that is a right triangle and is its smallest angle. Statement (3) follows from the fact that, in a triangle, every side is adjacent to the other two. Finally, in (4), suppose intersects , and . Since is a quadrilateral, must be one of its sides and the vertices of which are not in are in and . Therefore, the two angles incident to are right angles and each of the other two are greater than . ∎
After running the modified program, we are left with graphs in the triangular case and graphs in the quadrilateral case. Of these, graphs for the triangular case and graphs for the quadrilateral do not produce valid tilings. This can easily be checked by hand. All these graphs can be seen in our repository, it is also possible to examine the unrealizable and unfiltered graphs.
6. Final remarks
We decided to use Python in order to make the code more accessible. The execution time turned out not to be an issue. Since each graph can be explored separately, the code is easily parallelizable. Proving Theorem 2 for takes a couple of days in a modern home computer, the rest of cases take at most a few of hours.
In Theorems 2 and 3, the number of tiles may not be increased using our method. The number of graphs to be analyzed is simply too large. As for the equiangular case with tiles, our algorithm produces around possible valid graphs, however we were unable to find a systematic way of deciding whether a graph is valid or not.
Notice that this method can be used to find tilings (using congruent or equiangular pieces) of other polygons. We may use other observations in the way of Lemma 5 to optimize the process. It might be necessary to consider labellings using different angle-types. What is important is to check that the underlying graph is -connected or that there is some other condition which allows us to generate the list of possible graphs.
Returning to the general conjecture, we noticed that when the angles of are (cyclically) labeled as , we usually had to go deeper in the tree of possibilities before we could completely discard a given pair . We tried to rule out this case in general but failed. It seems that the corresponding tiles have more structure so it may be possible to discard them by other means.
7. Acknowledgments
We are thankful to the anonymous referee for his careful reading and fruitful suggestions. During this research the first author was supported by a CONACyT scholarship and the second author was supported by CONACyT project 282280.
References
- [BM07] Gunnar Brinkmann and Brendan D. McKay, Fast generation of planar graphs, MATCH Commun. Math. Comput. Chem. 58 (2007), no. 2, 323–357.
- [Grü07] Branko Grünbaum, Graphs of polyhedra; polyhedra as graphs, Discrete Mathematics 307 (2007), no. 3-5, 445–463.
- [HSS08] Aric A. Hagberg, Daniel A. Schult, and Pieter J. Swart, Exploring network structure, dynamics, and function using NetworkX, Proceedings of the 7th Python in Science Conference (Pasadena, CA USA) (Gaël Varoquaux, Travis Vaught, and Jarrod Millman, eds.), 2008, pp. 11 – 15.
- [Mal91] Samuel J. Maltby, Problem 875, Crux Mathematicorum 5 (1991), no. 17, 141–146.
- [Mal94] by same author, Trisecting a rectangle, Journal of Combinatorial Theory, Series A 66 (1994), no. 1, 40–52.
- [Mon70] Paul Monsky, On dividing a square into triangles, The American Mathematical Monthly 77 (1970), no. 2, 161–164.
- [MSP+17] Aaron Meurer, Christopher P. Smith, Mateusz Paprocki, Ondřej Čertík, Sergey B. Kirpichev, Matthew Rocklin, AMiT Kumar, Sergiu Ivanov, Jason K. Moore, Sartaj Singh, Thilina Rathnayake, Sean Vig, Brian E. Granger, Richard P. Muller, Francesco Bonazzi, Harsh Gupta, Shivam Vats, Fredrik Johansson, Fabian Pedregosa, Matthew J. Curry, Andy R. Terrel, Štěpán Roučka, Ashutosh Saboo, Isuru Fernando, Sumith Kulal, Robert Cimrman, and Anthony Scopatz, SymPy: symbolic computing in Python, PeerJ Computer Science 3 (2017), e103.
- [RRW20] Hui Rao, Lei Ren, and Yang Wang, Dissecting a square into congruent polygons, Discrete Mathematics & Theoretical Computer Science 22 (2020), no. 1, 1–17.
- [Tho68] John Thomas, A dissection problem, Mathematics Magazine 41 (1968), no. 4, 187–190.
- [YZZ16] Liping Yuan, Carol T. Zamfirescu, and Tudor I. Zamfirescu, Dissecting the square into five congruent parts, Discrete Mathematics 339 (2016), no. 1, 288–298.