Vanishing sums of roots of unity
The Accidental Mathematician 2023-03-01
A root of unity is a complex number such that
for some positive integer
. This means that
for some integer
; if
is relatively prime to
, we say that
is a primitive
-th root of unity, meaning that
is not a
-th root of unity for any
.
Here’s a question: when can we have
if are roots of unity?
This is a little bit vague, in that I did not say what kind of tentative characterization we are looking for. If you were inclined to play devil’s advocate, you could say that equation (1) provides a good enough description. There are, however, less obvious answers that have come in handy in various parts of my research, so let’s look at some of them.
The Rédei-de Bruijn-Schoenberg structure theorem. The first thing to notice is that if is the complete set of
-th roots of unity (so that
for all
), then
. Geometrically,
form the vertices of a regular
-gon in the complex plane with the center at 0. The picture1 at the top of this post illustrates this with
.
If I rotate the pentagon (or more generally, an -gon) around the origin, then the center of the rotated
-gon will still be at 0. Since I want the rotated vertices to be roots of unity, I’m only going to allow rotations by rational multiples of
. Furthermore, if I add several rotated polygons like that, then the resulting sum of vanishing sums of roots of unity is, again, a vanishing sum of roots of unity.
Does this exhaust all possibilities? Yes, but with a twist: we need to be able not only to add rotated polygons, but also subtract them. Here’s an example. We start with the same pentagon as above: . Then we subtract a regular triangle with one vertex at 1, removing the point 1 and introducing two new points
with negative weights. But I do not want any negative weights in my final sum, so I’m going to add two line segments (“rotated 2-gons”), or, equivalently, write
and
. I’m left with 6 roots of unity that add up to 0:
.

In the picture above, the circled points were added and removed. The final configuration consists of the 6 points marked solid blue. This sum is minimal, meaning that if I remove any of the 6 roots in the final sum, the rest of them cannot add up to 0. This also means that I cannot write the final sum as a combination of rotated polygons with only positive signs (without subtraction).
An additional simplification is that it suffices to use “prime polygons”, regular -gons whose number of vertices is prime. Any other regular polygon can be written as a combination of these: for example, a regular hexagon (6 is not prime) can be written as the sum of two triangles (3 is prime), one of them as above with one vertex at 1, and the other rotated by 60 degrees. Putting everything together, we have the following basic structure theorem.
Theorem (Rédei-de Bruijn-Schoenberg). Any vanishing sum of roots of unity can be written as a linear combination of rotated “prime polygons”, with integer (but not necessarily positive) coefficients.
The Chinese Remainder Theorem and its consequences. The Rédei-de Bruijn-Schoenberg theorem is a good start, but we can do more. For example, I like to use pictures and physical models. Since it’s a bit difficult to draw overlapping rotated -gons (they all look like a circle once
is greater than 9 or so), I prefer to use a different geometric representation, as follows.
First, we choose so that all
in (1) are
-th roots of unity: if
, let
be a common multiple of
. Rewrite
as
etc., relabel the numerators
, and now (1) looks like this:
, where
.
With fixed, we may rewrite our conditions on
in terms of the numbers
. Since
and
represent the same root of unity, we will consider
as elements of the cyclic group2
.
Assume for the moment that is square-free, meaning that
, where
are distinct primes. The Chinese Remainder Theorem3 says that, in this case, we can represent
as a direct sum
. In plain language, this means that a number in
can be identified uniquely based on its residues mod
. Moreover, those residues can serve as a
-dimensional system of coordinates on
. Here is a picture of how it works for
. For example,
modulo both 2 and 3,
mod 3 and 0 mod 2, and so on.

Remember regular polygons? Previously, we represented the sum
as a regular triangle. Let’s now rewrite it as a sum of 6-th roots of unity:
(For just this triangle, I could have used . I’m setting up
instead so that I can also encode a rotated triangle and rotated 2-gons, aka line segments, in the same picture. We’ll see in a moment.) This corresponds to the numerators
; these are the numbers that constitute the first row in the table above. If I rotate the triangle by 60 degrees, I get the sum
with the numerators from the second row in the table. Vanishing sums of two 6-th roots of unity, such as
correspond to the columns in the table.
This is a special case of a general rule. If we set up , where
are distinct primes, then the Chinese Remainder Theorem represents
as a
-dimensional table with one direction for each prime. Prime
-gons, possibly rotated, correspond to columns in the
direction in that table; we will refer to such columns as
–fibers.
For the purpose of drawing pictures, it is more convenient to represent the elements of as lattice points instead of entries in a multidimensional table. The picture below shows a 3-fiber and a 2-fiber (in the polygonal representation, a triangle and a line segment) in two separate copies of
. The numbers that these points represent can be recovered from the coordinate system.

In the next picture, we set , and draw a 5-fiber and two 2-fibers (next to each other) in
.

Notice that three of the indicated points – one from the 5-fiber and two from the 2-fibers – happen to form a 3-fiber, circled in the picture below.

If we now subtract (remove) that 3-fiber, we get a new configuration of 6 points, shown below, that does not contain any fibers at all. This is the same “pentagon minus triangle plus two line segments” configuration that we looked at previously.

Here are some additional pictures from this paper with Itay Londner.


Cyclotomic polynomials. Why would vanishing sums of roots of unity appear in a paper about integer tilings? In my earlier post, I wrote about the connection between integer tilings and cyclotomic polynomials. (I also provided a short introduction to both subjects there, so I’m not going to repeat it here.) But cyclotomic polynomials are also very closely related to vanishing sums of roots of unity. Let’s go back to equation (2),
, where
,
with , and set up the polynomial
. Then (2) says that
. The magic of algebra tells us that
must in fact be divisible by the whole minimal polynomial of
, that is, the cyclotomic polynomial
!
In a tiling , each
with
and
has to divide at least one of
and
. This means many vanishing sums of roots of unity, on all intermediate scales between 1 and
, associated with the projections of
and/or
on those scales. On the other hand, there are many vanishing sums of roots of unity that do not correspond to any tiling at all. For example, the set pictured below (consisting of three fibers in
, one in each direction) represents a vanishing sum of roots of unity, but we can prove that it cannot tile
.

Cuboids. How can we tell whether a set represented in this manner corresponds to a vanishing sum or roots of unity as in (2)? If the set is given explicitly, we can of course use a calculator to add up the roots of unity and see if we get 0. But there is also a nice geometric way to do it, and it still works well when we want to prove various properties of vanishing sums (or cyclotomic polynomials) without restricting to specific numerical values.
We will work again in the square-free setting, with , where
are distinct primes. For the purpose of drawing pictures, we will assume that
, but the general theory does not require that. We will also continue to use the lattice representation above.
A cuboid is a -dimensional rectangular box
with all edges in the cardinal direction, vertices at lattice points, and with alternating + and – signs attached to its vertices. (It can be placed anywhere in
.)

If , the
-evaluation of
is
where ranges over all vertices of the cuboid, and the + or – signs are chosen according to the sign placed at each vertex. In other words,
= (the number of points of
placed at the vertices with + sign) – (the number of points of
placed at the vertices with – sign). In the example below,
is the set of indicated points in
(we assume that there are no points “hiding” in the back), and
is the cuboid in the top right corner with signs as indicated. Then
includes 1 vertex of
with + sign, and 3 vertices with – sign. We get that
.


But look what happens when our set is a fiber (in any direction). Then any cuboid meets
in exactly two points, one with + sign and the other with – sign, so that all cuboid evaluations of
are zero.

Since cuboid evaluations are additive, if a set can be represented as a linear combination of fibers (possibly with cancellations), then all of its cuboid evaluations should be 0. This means that the set in the example above is not a linear combination of fibers, therefore does not correspond to a vanishing sum of roots of unity. (And yes, this can be strengthened to an “if and only if” statement.)
There’s more! With applications to questions in other areas of mathematics! But this is a bit long already, so we’ll stop here for today and come back to the subject in a future post.
1 I’m not using alt-text for the images because the image description is already provided, to the best of my ability, in the main text. I have also tried to make the images legible if rendered without colour. But please let me know if there’s anything I missed.
2 Also denoted by in the literature. In some research areas, including those where I usually hang out, the shorter notation
is preferred. However,
with
prime can also mean p-adic numbers, so that in any situation where these might come up, the preferred notation for cyclic groups is
.
3 There is some controversy as to whether this theorem should be named after a specific Chinese scholar instead, and if so, then how the name of that scholar should be transliterated in English. See, for example, this MathOverflow thread or this article. I would be happy to hear from anyone here, especially of Chinese descent, who might be more knowledgeable about it.